Edit

kc3-lang/angle/src/angle.gypi

Branch :

  • Show log

    Commit

  • Author : Vincent Scheib
    Date : 2014-07-01 13:32:11
    Hash : 8747afee
    Message : Fix d3dcompiler_46.dll case to be consistent, unblocks swarming. src/copy_compiler_dll.bat defines the case of the file copied to the build output directory. It is then referenced by build systems. The case must be consistent with the uses, in isolate files, and the .gypi file defining output. BUG=390210 Change-Id: I90c305a0c3663d46d2448e0adfa3103d0ce457d1 Reviewed-on: https://chromium-review.googlesource.com/206305 Reviewed-by: Shannon Woods <shannonwoods@chromium.org> Reviewed-by: Kenneth Russell <kbr@chromium.org> Tested-by: Geoff Lang <geofflang@chromium.org>

  • src/angle.gypi
  • # Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
    # Use of this source code is governed by a BSD-style license that can be
    # found in the LICENSE file.
    
    {
        'variables':
        {
            'angle_code': 1,
            'angle_post_build_script%': 0,
            'angle_gen_path': '<(SHARED_INTERMEDIATE_DIR)/angle',
            'angle_id_script_base': 'commit_id.py',
            'angle_id_script': '<(angle_gen_path)/<(angle_id_script_base)',
            'angle_id_header_base': 'commit.h',
            'angle_id_header': '<(angle_gen_path)/id/<(angle_id_header_base)',
            'angle_use_commit_id%': '<!(python <(angle_id_script_base) check ..)',
        },
        'includes':
        [
            'compiler.gypi',
            'libGLESv2.gypi',
            'libEGL.gypi'
        ],
    
        'targets':
        [
            {
                'target_name': 'copy_scripts',
                'type': 'none',
                'copies':
                [
                    {
                        'destination': '<(angle_gen_path)',
                        'files': [ 'copy_compiler_dll.bat', '<(angle_id_script_base)' ],
                    },
                ],
            },
        ],
        'conditions':
        [
            ['angle_use_commit_id!=0',
            {
                'targets':
                [
                    {
                        'target_name': 'commit_id',
                        'type': 'none',
                        'includes': [ '../build/common_defines.gypi', ],
                        'dependencies': [ 'copy_scripts', ],
                        'actions':
                        [
                            {
                                'action_name': 'Generate ANGLE Commit ID Header',
                                'message': 'Generating ANGLE Commit ID',
                                # reference the git index as an input, so we rebuild on changes to the index
                                'inputs': [ '<(angle_id_script)', '<(angle_path)/.git/index' ],
                                'outputs': [ '<(angle_id_header)' ],
                                'msvs_cygwin_shell': 0,
                                'action':
                                [
                                    'python', '<(angle_id_script)', 'gen', '<(angle_path)', '<(angle_id_header)'
                                ],
                            },
                        ],
                        'direct_dependent_settings':
                        {
                            'include_dirs':
                            [
                                '<(angle_gen_path)',
                            ],
                        },
                    }
                ]
            },
            { # angle_use_commit_id==0
                'targets':
                [
                    {
                        'target_name': 'commit_id',
                        'type': 'none',
                        'copies':
                        [
                            {
                                'destination': '<(angle_gen_path)/id',
                                'files': [ '<(angle_id_header_base)' ]
                            }
                        ],
                        'direct_dependent_settings':
                        {
                            'include_dirs':
                            [
                                '<(angle_gen_path)',
                            ],
                        },
                    }
                ]
            }],
            ['OS=="win"',
            {
                'targets':
                [
                    {
                        'target_name': 'copy_compiler_dll',
                        'type': 'none',
                        'dependencies': [ 'copy_scripts', ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'actions':
                        [
                            {
                                'action_name': 'copy_dll',
                                'message': 'Copying D3D Compiler DLL...',
                                'msvs_cygwin_shell': 0,
                                'inputs': [ 'copy_compiler_dll.bat' ],
                                'outputs': [ '<(PRODUCT_DIR)/d3dcompiler_46.dll' ],
                                'action':
                                [
                                    "<(angle_gen_path)/copy_compiler_dll.bat",
                                    "$(PlatformName)",
                                    "<(windows_sdk_path)",
                                    "<(PRODUCT_DIR)"
                                ],
                            },
                        ], #actions
                    },
                ], # targets
            }],
            ['angle_post_build_script!=0 and OS=="win"',
            {
                'targets':
                [
                    {
                        'target_name': 'post_build',
                        'type': 'none',
                        'includes': [ '../build/common_defines.gypi', ],
                        'dependencies': [ 'libGLESv2', 'libEGL' ],
                        'actions':
                        [
                            {
                                'action_name': 'ANGLE Post-Build Script',
                                'message': 'Running <(angle_post_build_script)...',
                                'msvs_cygwin_shell': 0,
                                'inputs': [ '<(angle_post_build_script)', '<!@(["python", "<(angle_post_build_script)", "inputs", "<(angle_path)", "<(CONFIGURATION_NAME)", "$(PlatformName)", "<(PRODUCT_DIR)"])' ],
                                'outputs': [ '<!@(python <(angle_post_build_script) outputs "<(angle_path)" "<(CONFIGURATION_NAME)" "$(PlatformName)" "<(PRODUCT_DIR)")' ],
                                'action': ['python', '<(angle_post_build_script)', 'run', '<(angle_path)', '<(CONFIGURATION_NAME)', '$(PlatformName)', '<(PRODUCT_DIR)'],
                            },
                        ], #actions
                    },
                ], # targets
            }],
        ] # conditions
    }