Home | History | Annotate | Download | only in src
      1 # Copyright (c) 2013 The ANGLE Project Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 {
      6     'targets':
      7     [
      8         {
      9             'target_name': 'preprocessor',
     10             'type': 'static_library',
     11             'includes': [ '../build/common_defines.gypi', ],
     12             'sources': [ '<!@(python <(angle_path)/enumerate_files.py compiler/preprocessor -types *.cpp *.h *.y *.l )' ],
     13         },
     14         {
     15             'target_name': 'translator_lib',
     16             'type': 'static_library',
     17             'dependencies': [ 'preprocessor' ],
     18             'includes': [ '../build/common_defines.gypi', ],
     19             'include_dirs':
     20             [
     21                 '.',
     22                 '../include',
     23             ],
     24             'sources':
     25             [
     26                 '<!@(python <(angle_path)/enumerate_files.py \
     27                      -dirs compiler/translator third_party/compiler common ../include \
     28                      -excludes compiler/translator/ShaderLang.cpp \
     29                      -types *.cpp *.h *.y *.l)',
     30             ],
     31             'conditions':
     32             [
     33                 ['OS=="win"',
     34                     {
     35                         'msvs_disabled_warnings': [ 4267 ],
     36                         'sources/': [ [ 'exclude', 'compiler/translator/ossource_posix.cpp' ], ],
     37                     },
     38                     { # else: posix
     39                         'sources/': [ [ 'exclude', 'compiler/translator/ossource_win.cpp' ], ],
     40                     }
     41                 ],
     42             ],
     43             'msvs_settings':
     44             {
     45               'VCLibrarianTool':
     46               {
     47                 'AdditionalOptions': ['/ignore:4221']
     48               },
     49             },
     50         },
     51 
     52         {
     53             'target_name': 'translator',
     54             'type': '<(component)',
     55             'dependencies': [ 'translator_lib' ],
     56             'includes': [ '../build/common_defines.gypi', ],
     57             'include_dirs':
     58             [
     59                 '.',
     60                 '../include',
     61             ],
     62             'defines':
     63             [
     64                 'ANGLE_TRANSLATOR_IMPLEMENTATION',
     65             ],
     66             'sources':
     67             [
     68                 'compiler/translator/ShaderLang.cpp'
     69             ],
     70         },
     71 
     72         {
     73             'target_name': 'translator_static',
     74             'type': 'static_library',
     75             'dependencies': [ 'translator_lib' ],
     76             'includes': [ '../build/common_defines.gypi', ],
     77             'include_dirs':
     78             [
     79                 '.',
     80                 '../include',
     81             ],
     82             'defines':
     83             [
     84                 'ANGLE_TRANSLATOR_STATIC',
     85             ],
     86             'direct_dependent_settings':
     87             {
     88                 'defines':
     89                 [
     90                     'ANGLE_TRANSLATOR_STATIC',
     91                 ],
     92             },
     93             'sources':
     94             [
     95                 'compiler/translator/ShaderLang.cpp'
     96             ],
     97         },
     98     ],
     99 }
    100