Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: third_party/flatbuffers/flatbuffers.gyp

Issue 1907603005: Add a dependency for FlatBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: testonly for generated files Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 'include_dirs': [
11 'src/include',
12 ],
13 'sources': [
14 'src/src/idl_gen_cpp.cpp',
15 'src/src/idl_gen_fbs.cpp',
16 'src/src/idl_gen_general.cpp',
17 'src/src/idl_gen_go.cpp',
18 'src/src/idl_gen_js.cpp',
19 'src/src/idl_gen_php.cpp',
20 'src/src/idl_gen_python.cpp',
21 'src/src/idl_gen_text.cpp',
22 'src/src/idl_parser.cpp',
23 'src/src/reflection.cpp',
24 'src/src/util.cpp',
25 'src/include/idl.h',
26 'src/include/util.h',
27 ],
28 },
29 {
30 'target_name': 'flatbuffers',
31 'type': 'static_library',
32 'include_dirs': [
33 'src/include',
34 ],
35 'direct_dependent_settings': {
36 'include_dirs': [
37 'src/include',
38 ],
39 },
40 'sources': [
41 'src/include/flatbuffers/flatbuffers.h',
42 'src/include/flatbuffers/hash.h',
43 'src/src/flathash.cpp',
44 ]
45 },
46 {
47 'target_name': 'flatc',
48 'type': 'executable',
49 'dependencies': [
50 'compiler_files',
51 'flatbuffers',
52 ],
53 'sources': [
54 'src/src/flatc.cpp',
55 ],
56 },
57
58 # The following is just for testing.
59 {
60 'target_name': 'flatbuffers_samplebuffer',
61 'type': 'static_library',
62 'sources': [
63 'src/tests/monster_test.fbs',
64 'src/tests/include_test1.fbs',
65 'src/tests/include_test2.fbs',
66 'src/tests/namespace_test/namespace_test1.fbs',
67 'src/tests/namespace_test/namespace_test2.fbs',
68 ],
69 'variables': {
70 'flatc_out_dir': '.',
71 },
72 'includes': [ 'flatc.gypi' ],
73 'dependencies': [
74 ':flatbuffers',
75 ],
76 },
77 {
78 # Note that you need to execute this test from the flatbuffers directory:
79 # cd third_party/flatbuffers/ && ../../out/Debug/flatbuffers_unittest
80 'target_name': 'flatbuffers_unittest',
81 'type': 'executable',
82 'dependencies': [
83 'compiler_files',
84 'flatbuffers'
85 ],
86 'sources': [
87 # The following files are not included in :flatbuffers
88 # but are listed here because test.cpp tests more than
89 # what will get included into Chrome (reflection and generation).
90 'src/include/reflection_generated.h',
91 'src/include/reflection.h',
92 # This is the actual test.
93 'src/tests/test.cpp',
94 ]
95 }
96 ],
97 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698