Edit

kc3-lang/angle/src/compiler.gypi

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2014-02-26 14:18:17
    Hash : d51df461
    Message : Remove the second translator target, only using static. Because libGLESv2 needs a static translator to link against internal types like Attribute and Varying, as well as using some other internal methods, we can for now disable the component build for the translator. In the future we can support a proper component build with exports across library boundaries. BUG=angle:568 Change-Id: Ie3efc0a29342d02491e91952c3c2398568f83576 Reviewed-on: https://chromium-review.googlesource.com/187699 Reviewed-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Zhenyao Mo <zmo@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',
                'include_dirs': [ ],
                'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py compiler/preprocessor -types *.cpp *.h *.y *.l )' ],
                # TODO(jschuh): http://crbug.com/167187 size_t -> int
                'msvs_disabled_warnings': [ 4267 ],
            },
    
            {
                'target_name': 'translator',
    
                # TODO(jmadill): https://code.google.com/p/angleproject/issues/detail?id=569 component build
                'defines':
                [
                    'ANGLE_TRANSLATOR_STATIC',
                ],
                'direct_dependent_settings':
                {
                    'defines':
                    [
                        'ANGLE_TRANSLATOR_STATIC',
                    ],
                },
    
                'type': 'static_library',
                'dependencies': [ 'preprocessor' ],
                'include_dirs':
                [
                    '.',
                    '../include',
                ],
                'sources':
                [
                    '<!@(python <(angle_build_scripts_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']
                  },
                },
            },
        ],
    }