Edit

kc3-lang/angle/src/compiler.gypi

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2014-04-11 13:33:57
    Hash : 8cc03bf7
    Message : Revert "Remove the second translator target, only using static." This reverts commit d51df461e52ac9421201234fff488104f788a7c3. Conflicts: projects/build/all.sln projects/samples/samples.sln src/compiler.gypi Change-Id: I6e1d77531df61de28e4402ed1916f6ecdebb68fd Reviewed-on: https://chromium-review.googlesource.com/192890 Reviewed-by: Geoff Lang <geofflang@chromium.org> Tested-by: Jamie Madill <jmadill@chromium.org>

  • src/compiler.gypi
  • # Copyright (c) 2013 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.
    
    {
        'targets':
        [
            {
                'target_name': 'preprocessor',
                'type': 'static_library',
                'includes': [ '../build/common_defines.gypi', ],
                'sources': [ '<!@(python <(angle_path)/enumerate_files.py compiler/preprocessor -types *.cpp *.h *.y *.l )' ],
            },
    
            {
                'target_name': 'translator',
                'type': '<(component)',
                'dependencies': [ 'preprocessor' ],
                'includes': [ '../build/common_defines.gypi', ],
                'include_dirs':
                [
                    '.',
                    '../include',
                ],
                'defines':
                [
                    'ANGLE_TRANSLATOR_IMPLEMENTATION',
                ],
                'sources':
                [
                    '<!@(python <(angle_path)/enumerate_files.py \
                         -dirs compiler/translator third_party/compiler common ../include \
                         -types *.cpp *.h *.y *.l)',
                ],
                'conditions':
                [
                    ['OS=="win"',
                        {
                            'msvs_disabled_warnings': [ 4267 ],
                            'sources/': [ [ 'exclude', 'compiler/translator/ossource_posix.cpp' ], ],
                        },
                        { # else: posix
                            'sources/': [ [ 'exclude', 'compiler/translator/ossource_win.cpp' ], ],
                        }
                    ],
                ],
                'msvs_settings':
                {
                  'VCLibrarianTool':
                  {
                    'AdditionalOptions': ['/ignore:4221']
                  },
                },
            },
    
            {
                'target_name': 'translator_static',
                'type': 'static_library',
                'dependencies': [ 'preprocessor' ],
                'includes': [ '../build/common_defines.gypi', ],
                'include_dirs':
                [
                    '.',
                    '../include',
                ],
                'defines':
                [
                    'ANGLE_TRANSLATOR_STATIC',
                ],
                'direct_dependent_settings':
                {
                    'defines':
                    [
                        'ANGLE_TRANSLATOR_STATIC',
                    ],
                },
                'sources':
                [
                    '<!@(python <(angle_path)/enumerate_files.py \
                         -dirs compiler/translator third_party/compiler common ../include \
                         -types *.cpp *.h *.y *.l)',
                ],
                'conditions':
                [
                    ['OS=="win"',
                        {
                            'msvs_disabled_warnings': [ 4267 ],
                            'sources/': [ [ 'exclude', 'compiler/translator/ossource_posix.cpp' ], ],
                        },
                        { # else: posix
                            'sources/': [ [ 'exclude', 'compiler/translator/ossource_win.cpp' ], ],
                        }
                    ],
                ],
                'msvs_settings':
                {
                  'VCLibrarianTool':
                  {
                    'AdditionalOptions': ['/ignore:4221']
                  },
                },
            },
        ],
    }