blob: a70fe20341786e67f8dcc1bdd3e1781ec65de492 [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': [ ],
Jamie Madillc9f140d2014-02-18 15:27:21 -050012 'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py compiler/preprocessor -types *.cpp *.h *.y *.l )' ],
Shannon Woods5cd47612013-12-02 19:13:14 -050013 # TODO(jschuh): http://crbug.com/167187 size_t -> int
Geoff Lang17732822013-08-29 13:46:49 -040014 'msvs_disabled_warnings': [ 4267 ],
15 },
16
17 {
18 'target_name': 'translator',
Geoff Lang2b6008c2013-10-08 10:44:05 -040019
Jamie Madilld51df462014-02-26 14:18:17 -050020 # TODO(jmadill): https://code.google.com/p/angleproject/issues/detail?id=569 component build
Geoff Lang17732822013-08-29 13:46:49 -040021 'defines':
22 [
Geoff Lang31f0dc02013-10-08 13:29:13 -040023 'ANGLE_TRANSLATOR_STATIC',
Geoff Lang17732822013-08-29 13:46:49 -040024 ],
Geoff Lang2b6008c2013-10-08 10:44:05 -040025 'direct_dependent_settings':
26 {
27 'defines':
28 [
29 'ANGLE_TRANSLATOR_STATIC',
30 ],
31 },
Jamie Madilld51df462014-02-26 14:18:17 -050032
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 Lang17732822013-08-29 13:46:49 -040046 '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 Madilld5ee05c2013-10-30 13:08:58 -040058 'msvs_settings':
59 {
60 'VCLibrarianTool':
61 {
62 'AdditionalOptions': ['/ignore:4221']
63 },
64 },
Geoff Lang17732822013-08-29 13:46:49 -040065 },
66 ],
67}