OLD | NEW |
| (Empty) |
1 # Copyright 2014 The Chromium 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 'target_name': 'compiler_files', | |
9 'type': 'static_library', | |
10 'toolsets': ['host'], | |
11 'include_dirs': [ | |
12 'src/include', | |
13 ], | |
14 'sources': [ | |
15 'src/src/idl_gen_cpp.cpp', | |
16 'src/src/idl_gen_fbs.cpp', | |
17 'src/src/idl_gen_general.cpp', | |
18 'src/src/idl_gen_go.cpp', | |
19 'src/src/idl_gen_js.cpp', | |
20 'src/src/idl_gen_php.cpp', | |
21 'src/src/idl_gen_python.cpp', | |
22 'src/src/idl_gen_text.cpp', | |
23 'src/src/idl_parser.cpp', | |
24 'src/src/reflection.cpp', | |
25 'src/src/util.cpp', | |
26 'src/include/flatbuffers/code_generators.h', | |
27 'src/include/flatbuffers/idl.h', | |
28 'src/include/flatbuffers/util.h', | |
29 ], | |
30 }, | |
31 { | |
32 'target_name': 'flatbuffers', | |
33 'type': 'none', | |
34 'toolsets': ['host', 'target'], | |
35 'include_dirs': [ | |
36 'src/include', | |
37 ], | |
38 'direct_dependent_settings': { | |
39 'include_dirs': [ | |
40 'src/include', | |
41 ], | |
42 }, | |
43 'sources': [ | |
44 'src/include/flatbuffers/flatbuffers.h', | |
45 'src/include/flatbuffers/hash.h', | |
46 ] | |
47 }, | |
48 { | |
49 'target_name': 'flatc', | |
50 'type': 'executable', | |
51 'toolsets': ['host'], | |
52 'dependencies': [ | |
53 'compiler_files', | |
54 'flatbuffers', | |
55 ], | |
56 'sources': [ | |
57 'src/src/flatc.cpp', | |
58 ], | |
59 }, | |
60 | |
61 # The following is just for testing. | |
62 { | |
63 'target_name': 'flatbuffers_samplebuffer', | |
64 'type': 'static_library', | |
65 'sources': [ | |
66 # Disabled as workaround for crbug.com/611351. | |
67 # 'src/tests/include_test1.fbs', | |
68 # 'src/tests/include_test2.fbs', | |
69 'src/tests/monster_test.fbs', | |
70 'src/tests/namespace_test/namespace_test1.fbs', | |
71 'src/tests/namespace_test/namespace_test2.fbs', | |
72 ], | |
73 'variables': { | |
74 'flatc_out_dir': '.', | |
75 }, | |
76 'includes': [ 'flatc.gypi' ], | |
77 'dependencies': [ | |
78 ':flatbuffers', | |
79 ], | |
80 }, | |
81 { | |
82 # Note that you need to execute this test from the flatbuffers directory: | |
83 # cd third_party/flatbuffers/ && ../../out/Debug/flatbuffers_unittest | |
84 'target_name': 'flatbuffers_unittest', | |
85 'type': 'executable', | |
86 'toolsets': ['host'], | |
87 'dependencies': [ | |
88 'compiler_files', | |
89 'flatbuffers' | |
90 ], | |
91 'sources': [ | |
92 # The following files are not included in :flatbuffers | |
93 # but are listed here because test.cpp tests more than | |
94 # what will get included into Chrome (reflection and generation). | |
95 'src/include/reflection_generated.h', | |
96 'src/include/reflection.h', | |
97 # This is the actual test. | |
98 'src/tests/test.cpp', | |
99 ] | |
100 } | |
101 ], | |
102 } | |
OLD | NEW |