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

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

Issue 2086213003: Data structures for Safe Browsing subresource filtering rules. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Data structures for Subresource Filter. Created 4 years, 5 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/BUILD.gn ('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
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'compiler_files', 8 'target_name': 'compiler_files',
9 'type': 'static_library', 9 'type': 'static_library',
10 'toolsets': ['host'],
10 'include_dirs': [ 11 'include_dirs': [
11 'src/include', 12 'src/include',
12 ], 13 ],
13 'sources': [ 14 'sources': [
14 'src/src/idl_gen_cpp.cpp', 15 'src/src/idl_gen_cpp.cpp',
15 'src/src/idl_gen_fbs.cpp', 16 'src/src/idl_gen_fbs.cpp',
16 'src/src/idl_gen_general.cpp', 17 'src/src/idl_gen_general.cpp',
17 'src/src/idl_gen_go.cpp', 18 'src/src/idl_gen_go.cpp',
18 'src/src/idl_gen_js.cpp', 19 'src/src/idl_gen_js.cpp',
19 'src/src/idl_gen_php.cpp', 20 'src/src/idl_gen_php.cpp',
20 'src/src/idl_gen_python.cpp', 21 'src/src/idl_gen_python.cpp',
21 'src/src/idl_gen_text.cpp', 22 'src/src/idl_gen_text.cpp',
22 'src/src/idl_parser.cpp', 23 'src/src/idl_parser.cpp',
23 'src/src/reflection.cpp', 24 'src/src/reflection.cpp',
24 'src/src/util.cpp', 25 'src/src/util.cpp',
25 'src/include/flatbuffers/code_generators.h', 26 'src/include/flatbuffers/code_generators.h',
26 'src/include/flatbuffers/idl.h', 27 'src/include/flatbuffers/idl.h',
27 'src/include/flatbuffers/util.h', 28 'src/include/flatbuffers/util.h',
28 ], 29 ],
29 }, 30 },
30 { 31 {
31 'target_name': 'flatbuffers', 32 'target_name': 'flatbuffers',
32 'type': 'static_library', 33 'type': 'none',
34 'toolsets': ['host', 'target'],
33 'include_dirs': [ 35 'include_dirs': [
34 'src/include', 36 'src/include',
35 ], 37 ],
36 'direct_dependent_settings': { 38 'direct_dependent_settings': {
37 'include_dirs': [ 39 'include_dirs': [
38 'src/include', 40 'src/include',
39 ], 41 ],
40 }, 42 },
41 'sources': [ 43 'sources': [
42 'src/include/flatbuffers/flatbuffers.h', 44 'src/include/flatbuffers/flatbuffers.h',
43 'src/include/flatbuffers/hash.h', 45 'src/include/flatbuffers/hash.h',
44 ] 46 ]
45 }, 47 },
46 { 48 {
47 'target_name': 'flatc', 49 'target_name': 'flatc',
48 'type': 'executable', 50 'type': 'executable',
51 'toolsets': ['host'],
49 'dependencies': [ 52 'dependencies': [
50 'compiler_files', 53 'compiler_files',
51 'flatbuffers', 54 'flatbuffers',
52 ], 55 ],
53 'sources': [ 56 'sources': [
54 'src/src/flatc.cpp', 57 'src/src/flatc.cpp',
55 ], 58 ],
59 'ldflags': [
60 '-pie',
61 ],
56 }, 62 },
57 63
58 # The following is just for testing. 64 # The following is just for testing.
59 { 65 {
60 'target_name': 'flatbuffers_samplebuffer', 66 'target_name': 'flatbuffers_samplebuffer',
61 'type': 'static_library', 67 'type': 'static_library',
62 'sources': [ 68 'sources': [
63 # Disabled as workaround for crbug.com/611351. 69 # Disabled as workaround for crbug.com/611351.
64 # 'src/tests/include_test1.fbs', 70 # 'src/tests/include_test1.fbs',
65 # 'src/tests/include_test2.fbs', 71 # 'src/tests/include_test2.fbs',
66 'src/tests/monster_test.fbs', 72 'src/tests/monster_test.fbs',
67 'src/tests/namespace_test/namespace_test1.fbs', 73 'src/tests/namespace_test/namespace_test1.fbs',
68 'src/tests/namespace_test/namespace_test2.fbs', 74 'src/tests/namespace_test/namespace_test2.fbs',
69 ], 75 ],
70 'variables': { 76 'variables': {
71 'flatc_out_dir': '.', 77 'flatc_out_dir': '.',
72 }, 78 },
73 'includes': [ 'flatc.gypi' ], 79 'includes': [ 'flatc.gypi' ],
74 'dependencies': [ 80 'dependencies': [
75 ':flatbuffers', 81 ':flatbuffers',
76 ], 82 ],
77 }, 83 },
78 { 84 {
79 # Note that you need to execute this test from the flatbuffers directory: 85 # Note that you need to execute this test from the flatbuffers directory:
80 # cd third_party/flatbuffers/ && ../../out/Debug/flatbuffers_unittest 86 # cd third_party/flatbuffers/ && ../../out/Debug/flatbuffers_unittest
81 'target_name': 'flatbuffers_unittest', 87 'target_name': 'flatbuffers_unittest',
82 'type': 'executable', 88 'type': 'executable',
89 'toolsets': ['host'],
83 'dependencies': [ 90 'dependencies': [
84 'compiler_files', 91 'compiler_files',
85 'flatbuffers' 92 'flatbuffers'
86 ], 93 ],
87 'sources': [ 94 'sources': [
88 # The following files are not included in :flatbuffers 95 # The following files are not included in :flatbuffers
89 # but are listed here because test.cpp tests more than 96 # but are listed here because test.cpp tests more than
90 # what will get included into Chrome (reflection and generation). 97 # what will get included into Chrome (reflection and generation).
91 'src/include/reflection_generated.h', 98 'src/include/reflection_generated.h',
92 'src/include/reflection.h', 99 'src/include/reflection.h',
93 # This is the actual test. 100 # This is the actual test.
94 'src/tests/test.cpp', 101 'src/tests/test.cpp',
95 ] 102 ]
96 } 103 }
97 ], 104 ],
98 } 105 }
OLDNEW
« no previous file with comments | « third_party/flatbuffers/BUILD.gn ('k') | third_party/flatbuffers/flatc.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698