Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 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 | 'include_dirs': [ ], |
| 12 | 'sources': [ '<!@(python enumerate_files.py compiler/preprocessor -types *.cpp *.h)' ], |
| 13 | 'msvs_disabled_warnings': [ 4267 ], |
| 14 | }, |
| 15 | |
| 16 | { |
| 17 | 'target_name': 'translator', |
Geoff Lang | 2b6008c | 2013-10-08 10:44:05 -0400 | [diff] [blame] | 18 | 'type': '<(component)', |
| 19 | 'dependencies': [ 'preprocessor' ], |
| 20 | 'include_dirs': |
| 21 | [ |
| 22 | '.', |
| 23 | '../include', |
| 24 | ], |
| 25 | 'defines': |
| 26 | [ |
Geoff Lang | 31f0dc0 | 2013-10-08 13:29:13 -0400 | [diff] [blame] | 27 | 'ANGLE_TRANSLATOR_IMPLEMENTATION', |
Geoff Lang | 2b6008c | 2013-10-08 10:44:05 -0400 | [diff] [blame] | 28 | ], |
| 29 | 'sources': [ '<!@(python enumerate_files.py compiler/translator third_party/compiler common -types *.cpp *.h *.y *.l )', ], |
| 30 | 'conditions': |
| 31 | [ |
| 32 | ['OS=="win"', |
| 33 | { |
| 34 | 'msvs_disabled_warnings': [ 4267 ], |
| 35 | 'sources/': [ [ 'exclude', 'compiler/translator/ossource_posix.cpp' ], ], |
| 36 | }, |
| 37 | { # else: posix |
| 38 | 'sources/': [ [ 'exclude', 'compiler/translator/ossource_win.cpp' ], ], |
| 39 | } |
| 40 | ], |
| 41 | ], |
Jamie Madill | d5ee05c | 2013-10-30 13:08:58 -0400 | [diff] [blame^] | 42 | 'msvs_settings': |
| 43 | { |
| 44 | 'VCLibrarianTool': |
| 45 | { |
| 46 | 'AdditionalOptions': ['/ignore:4221'] |
| 47 | }, |
| 48 | }, |
Geoff Lang | 2b6008c | 2013-10-08 10:44:05 -0400 | [diff] [blame] | 49 | }, |
| 50 | |
| 51 | { |
| 52 | 'target_name': 'translator_static', |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 53 | 'type': 'static_library', |
| 54 | 'dependencies': [ 'preprocessor' ], |
| 55 | 'include_dirs': |
| 56 | [ |
| 57 | '.', |
| 58 | '../include', |
| 59 | ], |
| 60 | 'defines': |
| 61 | [ |
Geoff Lang | 31f0dc0 | 2013-10-08 13:29:13 -0400 | [diff] [blame] | 62 | 'ANGLE_TRANSLATOR_STATIC', |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 63 | ], |
Geoff Lang | 2b6008c | 2013-10-08 10:44:05 -0400 | [diff] [blame] | 64 | 'direct_dependent_settings': |
| 65 | { |
| 66 | 'defines': |
| 67 | [ |
| 68 | 'ANGLE_TRANSLATOR_STATIC', |
| 69 | ], |
| 70 | }, |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 71 | 'sources': [ '<!@(python enumerate_files.py compiler/translator third_party/compiler common -types *.cpp *.h *.y *.l )', ], |
| 72 | 'conditions': |
| 73 | [ |
| 74 | ['OS=="win"', |
| 75 | { |
| 76 | 'msvs_disabled_warnings': [ 4267 ], |
| 77 | 'sources/': [ [ 'exclude', 'compiler/translator/ossource_posix.cpp' ], ], |
| 78 | }, |
| 79 | { # else: posix |
| 80 | 'sources/': [ [ 'exclude', 'compiler/translator/ossource_win.cpp' ], ], |
| 81 | } |
| 82 | ], |
| 83 | ], |
Jamie Madill | d5ee05c | 2013-10-30 13:08:58 -0400 | [diff] [blame^] | 84 | 'msvs_settings': |
| 85 | { |
| 86 | 'VCLibrarianTool': |
| 87 | { |
| 88 | 'AdditionalOptions': ['/ignore:4221'] |
| 89 | }, |
| 90 | }, |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 91 | }, |
| 92 | ], |
| 93 | } |