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

Side by Side Diff: third_party/flatbuffers/BUILD.gn

Issue 2740103002: Update FlatBuffers to version 1.5.0. (Closed)
Patch Set: Address comments from engedy@. Created 3 years, 9 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 | « DEPS ('k') | third_party/flatbuffers/README.chromium » ('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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 import("//testing/test.gni") 5 import("//testing/test.gni")
6 import("//third_party/flatbuffers/flatbuffer.gni") 6 import("//third_party/flatbuffers/flatbuffer.gni")
7 7
8 config("flatbuffers_config") { 8 config("flatbuffers_config") {
9 include_dirs = [ "src/include" ] 9 include_dirs = [ "src/include" ]
10
11 # This is to fix crbug.com/699958.
12 defines = [ "FLATBUFFERS_CPP98_STL" ]
10 } 13 }
11 14
12 source_set("flatbuffers") { 15 source_set("flatbuffers") {
13 sources = [ 16 sources = [
14 "src/include/flatbuffers/flatbuffers.h", 17 "src/include/flatbuffers/flatbuffers.h",
15 "src/include/flatbuffers/hash.h", 18 "src/include/flatbuffers/hash.h",
16 ] 19 ]
17 20
18 configs -= [ "//build/config/compiler:chromium_code" ] 21 configs -= [ "//build/config/compiler:chromium_code" ]
19 configs += [ "//build/config/compiler:no_chromium_code" ] 22 configs += [ "//build/config/compiler:no_chromium_code" ]
20 public_configs = [ ":flatbuffers_config" ] 23 public_configs = [ ":flatbuffers_config" ]
21 } 24 }
22 25
23 source_set("compiler_files") { 26 source_set("compiler_files") {
27 include_dirs = [ "src/grpc" ]
24 sources = [ 28 sources = [
29 "src/grpc/src/compiler/cpp_generator.cc",
30 "src/grpc/src/compiler/cpp_generator.h",
31 "src/grpc/src/compiler/go_generator.cc",
32 "src/grpc/src/compiler/go_generator.h",
33 "src/grpc/src/compiler/schema_interface.h",
25 "src/include/flatbuffers/code_generators.h", 34 "src/include/flatbuffers/code_generators.h",
26 "src/include/flatbuffers/idl.h", 35 "src/include/flatbuffers/idl.h",
27 "src/include/flatbuffers/util.h", 36 "src/include/flatbuffers/util.h",
28 "src/src/idl_gen_cpp.cpp", 37 "src/src/idl_gen_cpp.cpp",
29 "src/src/idl_gen_fbs.cpp", 38 "src/src/idl_gen_fbs.cpp",
30 "src/src/idl_gen_general.cpp", 39 "src/src/idl_gen_general.cpp",
31 "src/src/idl_gen_go.cpp", 40 "src/src/idl_gen_go.cpp",
41 "src/src/idl_gen_grpc.cpp",
32 "src/src/idl_gen_js.cpp", 42 "src/src/idl_gen_js.cpp",
33 "src/src/idl_gen_php.cpp", 43 "src/src/idl_gen_php.cpp",
34 "src/src/idl_gen_python.cpp", 44 "src/src/idl_gen_python.cpp",
35 "src/src/idl_gen_text.cpp", 45 "src/src/idl_gen_text.cpp",
36 "src/src/idl_parser.cpp", 46 "src/src/idl_parser.cpp",
37 "src/src/reflection.cpp", 47 "src/src/reflection.cpp",
38 "src/src/util.cpp", 48 "src/src/util.cpp",
39 ] 49 ]
40 visibility = [ ":*" ] 50 visibility = [ ":*" ]
41 deps = [ 51 deps = [
(...skipping 29 matching lines...) Expand all
71 test("flatbuffers_unittest") { 81 test("flatbuffers_unittest") {
72 sources = [ 82 sources = [
73 # The following files are not included in :flatbuffers 83 # The following files are not included in :flatbuffers
74 # but are listed here because test.cpp tests more than what will 84 # but are listed here because test.cpp tests more than what will
75 # get included into Chrome (reflection and generation). 85 # get included into Chrome (reflection and generation).
76 "src/include/reflection.h", 86 "src/include/reflection.h",
77 "src/include/reflection_generated.h", 87 "src/include/reflection_generated.h",
78 88
79 # This is the actual test. 89 # This is the actual test.
80 "src/tests/test.cpp", 90 "src/tests/test.cpp",
91
92 # TODO(pkalinnikov): Add "grpc/tests/grpctest.cpp" as well.
engedy 2017/03/09 17:39:32 nit: Could you please reference https://crbug.com/
81 ] 93 ]
82 deps = [ 94 deps = [
83 ":compiler_files", 95 ":compiler_files",
84 ":flatbuffers", 96 ":flatbuffers",
85 ":flatbuffers_samplebuffer", 97 ":flatbuffers_samplebuffer",
86 ] 98 ]
87 data = [ 99 data = [
88 "src/tests/", 100 "src/tests/",
89 ] 101 ]
102 defines = [ "FLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE" ]
90 } 103 }
OLDNEW
« no previous file with comments | « DEPS ('k') | third_party/flatbuffers/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698