blob: fcce8147c011a7619a700e71660499874911d2e1 [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',
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 Lang2b6008c2013-10-08 10:44:05 -040018 'type': '<(component)',
19 'dependencies': [ 'preprocessor' ],
20 'include_dirs':
21 [
22 '.',
23 '../include',
24 ],
25 'defines':
26 [
Geoff Lang31f0dc02013-10-08 13:29:13 -040027 'ANGLE_TRANSLATOR_IMPLEMENTATION',
Geoff Lang2b6008c2013-10-08 10:44:05 -040028 ],
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 Madilld5ee05c2013-10-30 13:08:58 -040042 'msvs_settings':
43 {
44 'VCLibrarianTool':
45 {
46 'AdditionalOptions': ['/ignore:4221']
47 },
48 },
Geoff Lang2b6008c2013-10-08 10:44:05 -040049 },
50
51 {
52 'target_name': 'translator_static',
Geoff Lang17732822013-08-29 13:46:49 -040053 'type': 'static_library',
54 'dependencies': [ 'preprocessor' ],
55 'include_dirs':
56 [
57 '.',
58 '../include',
59 ],
60 'defines':
61 [
Geoff Lang31f0dc02013-10-08 13:29:13 -040062 'ANGLE_TRANSLATOR_STATIC',
Geoff Lang17732822013-08-29 13:46:49 -040063 ],
Geoff Lang2b6008c2013-10-08 10:44:05 -040064 'direct_dependent_settings':
65 {
66 'defines':
67 [
68 'ANGLE_TRANSLATOR_STATIC',
69 ],
70 },
Geoff Lang17732822013-08-29 13:46:49 -040071 '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 Madilld5ee05c2013-10-30 13:08:58 -040084 'msvs_settings':
85 {
86 'VCLibrarianTool':
87 {
88 'AdditionalOptions': ['/ignore:4221']
89 },
90 },
Geoff Lang17732822013-08-29 13:46:49 -040091 },
92 ],
93}