blob: 72a2c93c304278bb4f5465a81d9e343df718af08 [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',
Jamie Madill8cc03bf2014-04-11 13:33:57 -040017 'type': '<(component)',
18 'dependencies': [ 'preprocessor' ],
19 'includes': [ '../build/common_defines.gypi', ],
20 'include_dirs':
21 [
22 '.',
23 '../include',
24 ],
25 'defines':
26 [
27 'ANGLE_TRANSLATOR_IMPLEMENTATION',
28 ],
29 'sources':
30 [
31 '<!@(python <(angle_path)/enumerate_files.py \
32 -dirs compiler/translator third_party/compiler common ../include \
33 -types *.cpp *.h *.y *.l)',
34 ],
35 'conditions':
36 [
37 ['OS=="win"',
38 {
39 'msvs_disabled_warnings': [ 4267 ],
40 'sources/': [ [ 'exclude', 'compiler/translator/ossource_posix.cpp' ], ],
41 },
42 { # else: posix
43 'sources/': [ [ 'exclude', 'compiler/translator/ossource_win.cpp' ], ],
44 }
45 ],
46 ],
47 'msvs_settings':
48 {
49 'VCLibrarianTool':
50 {
51 'AdditionalOptions': ['/ignore:4221']
52 },
53 },
54 },
Geoff Lang2b6008c2013-10-08 10:44:05 -040055
Jamie Madill8cc03bf2014-04-11 13:33:57 -040056 {
57 'target_name': 'translator_static',
58 'type': 'static_library',
59 'dependencies': [ 'preprocessor' ],
60 'includes': [ '../build/common_defines.gypi', ],
61 'include_dirs':
62 [
63 '.',
64 '../include',
65 ],
Geoff Lang17732822013-08-29 13:46:49 -040066 'defines':
67 [
Geoff Lang31f0dc02013-10-08 13:29:13 -040068 'ANGLE_TRANSLATOR_STATIC',
Geoff Lang17732822013-08-29 13:46:49 -040069 ],
Geoff Lang2b6008c2013-10-08 10:44:05 -040070 'direct_dependent_settings':
71 {
72 'defines':
73 [
74 'ANGLE_TRANSLATOR_STATIC',
75 ],
76 },
Jamie Madilld51df462014-02-26 14:18:17 -050077 'sources':
78 [
Jamie Madillf0b40602014-03-24 14:49:11 -040079 '<!@(python <(angle_path)/enumerate_files.py \
Jamie Madilld51df462014-02-26 14:18:17 -050080 -dirs compiler/translator third_party/compiler common ../include \
81 -types *.cpp *.h *.y *.l)',
82 ],
Geoff Lang17732822013-08-29 13:46:49 -040083 'conditions':
84 [
85 ['OS=="win"',
86 {
87 'msvs_disabled_warnings': [ 4267 ],
88 'sources/': [ [ 'exclude', 'compiler/translator/ossource_posix.cpp' ], ],
89 },
90 { # else: posix
91 'sources/': [ [ 'exclude', 'compiler/translator/ossource_win.cpp' ], ],
92 }
93 ],
94 ],
Jamie Madilld5ee05c2013-10-30 13:08:58 -040095 'msvs_settings':
96 {
97 'VCLibrarianTool':
98 {
99 'AdditionalOptions': ['/ignore:4221']
100 },
101 },
Geoff Lang17732822013-08-29 13:46:49 -0400102 },
103 ],
104}