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': [ ], |
Jamie Madill | c9f140d | 2014-02-18 15:27:21 -0500 | [diff] [blame] | 12 | 'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py compiler/preprocessor -types *.cpp *.h *.y *.l )' ], |
Shannon Woods | 5cd4761 | 2013-12-02 19:13:14 -0500 | [diff] [blame] | 13 | # TODO(jschuh): http://crbug.com/167187 size_t -> int |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 14 | 'msvs_disabled_warnings': [ 4267 ], |
| 15 | }, |
| 16 | |
| 17 | { |
| 18 | 'target_name': 'translator', |
Geoff Lang | 2b6008c | 2013-10-08 10:44:05 -0400 | [diff] [blame] | 19 | |
Jamie Madill | d51df46 | 2014-02-26 14:18:17 -0500 | [diff] [blame] | 20 | # 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] | 21 | 'defines': |
| 22 | [ |
Geoff Lang | 31f0dc0 | 2013-10-08 13:29:13 -0400 | [diff] [blame] | 23 | 'ANGLE_TRANSLATOR_STATIC', |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 24 | ], |
Geoff Lang | 2b6008c | 2013-10-08 10:44:05 -0400 | [diff] [blame] | 25 | 'direct_dependent_settings': |
| 26 | { |
| 27 | 'defines': |
| 28 | [ |
| 29 | 'ANGLE_TRANSLATOR_STATIC', |
| 30 | ], |
| 31 | }, |
Jamie Madill | d51df46 | 2014-02-26 14:18:17 -0500 | [diff] [blame] | 32 | |
| 33 | 'type': 'static_library', |
| 34 | 'dependencies': [ 'preprocessor' ], |
| 35 | 'include_dirs': |
| 36 | [ |
| 37 | '.', |
| 38 | '../include', |
| 39 | ], |
| 40 | 'sources': |
| 41 | [ |
| 42 | '<!@(python <(angle_build_scripts_path)/enumerate_files.py \ |
| 43 | -dirs compiler/translator third_party/compiler common ../include \ |
| 44 | -types *.cpp *.h *.y *.l)', |
| 45 | ], |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 46 | 'conditions': |
| 47 | [ |
| 48 | ['OS=="win"', |
| 49 | { |
| 50 | 'msvs_disabled_warnings': [ 4267 ], |
| 51 | 'sources/': [ [ 'exclude', 'compiler/translator/ossource_posix.cpp' ], ], |
| 52 | }, |
| 53 | { # else: posix |
| 54 | 'sources/': [ [ 'exclude', 'compiler/translator/ossource_win.cpp' ], ], |
| 55 | } |
| 56 | ], |
| 57 | ], |
Jamie Madill | d5ee05c | 2013-10-30 13:08:58 -0400 | [diff] [blame] | 58 | 'msvs_settings': |
| 59 | { |
| 60 | 'VCLibrarianTool': |
| 61 | { |
| 62 | 'AdditionalOptions': ['/ignore:4221'] |
| 63 | }, |
| 64 | }, |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 65 | }, |
| 66 | ], |
| 67 | } |