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

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: Addressed comments on license Created 4 years, 7 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
« no previous file with comments | « third_party/flatbuffers/flatbuffer.gni ('k') | third_party/flatbuffers/flatc.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ]
44 },
45 {
46 'target_name': 'flatc',
47 'type': 'executable',
48 'dependencies': [
49 'compiler_files',
50 'flatbuffers',
51 ],
52 'sources': [
53 'src/src/flatc.cpp',
54 ],
55 },
56
57 # The following is just for testing.
58 {
59 'target_name': 'flatbuffers_samplebuffer',
60 'type': 'static_library',
61 'sources': [
62 'src/tests/monster_test.fbs',
63 'src/tests/include_test1.fbs',
64 'src/tests/include_test2.fbs',
65 'src/tests/namespace_test/namespace_test1.fbs',
66 'src/tests/namespace_test/namespace_test2.fbs',
67 ],
68 'variables': {
69 'flatc_out_dir': '.',
70 },
71 'includes': [ 'flatc.gypi' ],
72 'dependencies': [
73 ':flatbuffers',
74 ],
75 },
76 {
77 # Note that you need to execute this test from the flatbuffers directory:
78 # cd third_party/flatbuffers/ && ../../out/Debug/flatbuffers_unittest
79 'target_name': 'flatbuffers_unittest',
80 'type': 'executable',
81 'dependencies': [
82 'compiler_files',
83 'flatbuffers'
84 ],
85 'sources': [
86 # The following files are not included in :flatbuffers
87 # but are listed here because test.cpp tests more than
88 # what will get included into Chrome (reflection and generation).
89 'src/include/reflection_generated.h',
90 'src/include/reflection.h',
91 # This is the actual test.
92 'src/tests/test.cpp',
93 ]
94 }
95 ],
96 }
OLDNEW
« no previous file with comments | « third_party/flatbuffers/flatbuffer.gni ('k') | third_party/flatbuffers/flatc.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698