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', |
Geoff Lang | d095bda | 2014-04-07 14:21:14 -0400 | [diff] [blame] | 11 | 'includes': [ '../build/common_defines.gypi', ], |
Jamie Madill | f0b4060 | 2014-03-24 14:49:11 -0400 | [diff] [blame] | 12 | 'sources': [ '<!@(python <(angle_path)/enumerate_files.py compiler/preprocessor -types *.cpp *.h *.y *.l )' ], |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 13 | }, |
| 14 | |
| 15 | { |
| 16 | 'target_name': 'translator', |
Geoff Lang | 2b6008c | 2013-10-08 10:44:05 -0400 | [diff] [blame] | 17 | |
Jamie Madill | d51df46 | 2014-02-26 14:18:17 -0500 | [diff] [blame] | 18 | # TODO(jmadill): https://code.google.com/p/angleproject/issues/detail?id=569 component build |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 19 | 'defines': |
| 20 | [ |
Geoff Lang | 31f0dc0 | 2013-10-08 13:29:13 -0400 | [diff] [blame] | 21 | 'ANGLE_TRANSLATOR_STATIC', |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 22 | ], |
Geoff Lang | 2b6008c | 2013-10-08 10:44:05 -0400 | [diff] [blame] | 23 | 'direct_dependent_settings': |
| 24 | { |
| 25 | 'defines': |
| 26 | [ |
| 27 | 'ANGLE_TRANSLATOR_STATIC', |
| 28 | ], |
| 29 | }, |
Jamie Madill | d51df46 | 2014-02-26 14:18:17 -0500 | [diff] [blame] | 30 | |
| 31 | 'type': 'static_library', |
| 32 | 'dependencies': [ 'preprocessor' ], |
Geoff Lang | d095bda | 2014-04-07 14:21:14 -0400 | [diff] [blame] | 33 | 'includes': [ '../build/common_defines.gypi', ], |
Jamie Madill | d51df46 | 2014-02-26 14:18:17 -0500 | [diff] [blame] | 34 | 'include_dirs': |
| 35 | [ |
| 36 | '.', |
| 37 | '../include', |
| 38 | ], |
| 39 | 'sources': |
| 40 | [ |
Jamie Madill | f0b4060 | 2014-03-24 14:49:11 -0400 | [diff] [blame] | 41 | '<!@(python <(angle_path)/enumerate_files.py \ |
Jamie Madill | d51df46 | 2014-02-26 14:18:17 -0500 | [diff] [blame] | 42 | -dirs compiler/translator third_party/compiler common ../include \ |
| 43 | -types *.cpp *.h *.y *.l)', |
| 44 | ], |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 45 | 'conditions': |
| 46 | [ |
| 47 | ['OS=="win"', |
| 48 | { |
| 49 | 'msvs_disabled_warnings': [ 4267 ], |
| 50 | 'sources/': [ [ 'exclude', 'compiler/translator/ossource_posix.cpp' ], ], |
| 51 | }, |
| 52 | { # else: posix |
| 53 | 'sources/': [ [ 'exclude', 'compiler/translator/ossource_win.cpp' ], ], |
| 54 | } |
| 55 | ], |
| 56 | ], |
Jamie Madill | d5ee05c | 2013-10-30 13:08:58 -0400 | [diff] [blame] | 57 | 'msvs_settings': |
| 58 | { |
| 59 | 'VCLibrarianTool': |
| 60 | { |
| 61 | 'AdditionalOptions': ['/ignore:4221'] |
| 62 | }, |
| 63 | }, |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 64 | }, |
| 65 | ], |
| 66 | } |