diff options
Diffstat (limited to 'chromium/third_party/angle/src/compiler.gypi')
-rw-r--r-- | chromium/third_party/angle/src/compiler.gypi | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/chromium/third_party/angle/src/compiler.gypi b/chromium/third_party/angle/src/compiler.gypi new file mode 100644 index 00000000000..df62d1171f2 --- /dev/null +++ b/chromium/third_party/angle/src/compiler.gypi @@ -0,0 +1,99 @@ +# 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_lib', + 'type': 'static_library', + 'dependencies': [ 'preprocessor' ], + 'includes': [ '../build/common_defines.gypi', ], + 'include_dirs': + [ + '.', + '../include', + ], + 'sources': + [ + '<!@(python <(angle_path)/enumerate_files.py \ + -dirs compiler/translator third_party/compiler common ../include \ + -excludes compiler/translator/ShaderLang.cpp \ + -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', + 'type': '<(component)', + 'dependencies': [ 'translator_lib' ], + 'includes': [ '../build/common_defines.gypi', ], + 'include_dirs': + [ + '.', + '../include', + ], + 'defines': + [ + 'ANGLE_TRANSLATOR_IMPLEMENTATION', + ], + 'sources': + [ + 'compiler/translator/ShaderLang.cpp' + ], + }, + + { + 'target_name': 'translator_static', + 'type': 'static_library', + 'dependencies': [ 'translator_lib' ], + 'includes': [ '../build/common_defines.gypi', ], + 'include_dirs': + [ + '.', + '../include', + ], + 'defines': + [ + 'ANGLE_TRANSLATOR_STATIC', + ], + 'direct_dependent_settings': + { + 'defines': + [ + 'ANGLE_TRANSLATOR_STATIC', + ], + }, + 'sources': + [ + 'compiler/translator/ShaderLang.cpp' + ], + }, + ], +} |