blob: a99de856333807a1a0edac012482830dccf1a6f2 [file] [log] [blame]
Geoff Lang17732822013-08-29 13:46:49 -04001# 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 Langd095bda2014-04-07 14:21:14 -040011 'includes': [ '../build/common_defines.gypi', ],
Jamie Madillf0b40602014-03-24 14:49:11 -040012 'sources': [ '<!@(python <(angle_path)/enumerate_files.py compiler/preprocessor -types *.cpp *.h *.y *.l )' ],
Geoff Lang17732822013-08-29 13:46:49 -040013 },
14
15 {
16 'target_name': 'translator',
Geoff Lang2b6008c2013-10-08 10:44:05 -040017
Jamie Madilld51df462014-02-26 14:18:17 -050018 # TODO(jmadill): https://code.google.com/p/angleproject/issues/detail?id=569 component build
Geoff Lang17732822013-08-29 13:46:49 -040019 'defines':
20 [
Geoff Lang31f0dc02013-10-08 13:29:13 -040021 'ANGLE_TRANSLATOR_STATIC',
Geoff Lang17732822013-08-29 13:46:49 -040022 ],
Geoff Lang2b6008c2013-10-08 10:44:05 -040023 'direct_dependent_settings':
24 {
25 'defines':
26 [
27 'ANGLE_TRANSLATOR_STATIC',
28 ],
29 },
Jamie Madilld51df462014-02-26 14:18:17 -050030
31 'type': 'static_library',
32 'dependencies': [ 'preprocessor' ],
Geoff Langd095bda2014-04-07 14:21:14 -040033 'includes': [ '../build/common_defines.gypi', ],
Jamie Madilld51df462014-02-26 14:18:17 -050034 'include_dirs':
35 [
36 '.',
37 '../include',
38 ],
39 'sources':
40 [
Jamie Madillf0b40602014-03-24 14:49:11 -040041 '<!@(python <(angle_path)/enumerate_files.py \
Jamie Madilld51df462014-02-26 14:18:17 -050042 -dirs compiler/translator third_party/compiler common ../include \
43 -types *.cpp *.h *.y *.l)',
44 ],
Geoff Lang17732822013-08-29 13:46:49 -040045 '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 Madilld5ee05c2013-10-30 13:08:58 -040057 'msvs_settings':
58 {
59 'VCLibrarianTool':
60 {
61 'AdditionalOptions': ['/ignore:4221']
62 },
63 },
Geoff Lang17732822013-08-29 13:46:49 -040064 },
65 ],
66}