Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 } | 10 } |
| 11 | 11 |
| 12 source_set("flatbuffers") { | 12 source_set("flatbuffers") { |
| 13 sources = [ | 13 sources = [ |
| 14 "src/include/flatbuffers/flatbuffers.h", | 14 "src/include/flatbuffers/flatbuffers.h", |
| 15 "src/include/flatbuffers/hash.h", | 15 "src/include/flatbuffers/hash.h", |
| 16 ] | 16 ] |
| 17 | 17 |
| 18 configs -= [ "//build/config/compiler:chromium_code" ] | 18 configs -= [ "//build/config/compiler:chromium_code" ] |
| 19 configs += [ "//build/config/compiler:no_chromium_code" ] | 19 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 20 public_configs = [ ":flatbuffers_config" ] | 20 public_configs = [ ":flatbuffers_config" ] |
| 21 } | 21 } |
| 22 | 22 |
| 23 source_set("compiler_files") { | 23 source_set("compiler_files") { |
| 24 include_dirs = [ "src/grpc" ] | |
| 24 sources = [ | 25 sources = [ |
| 26 "src/grpc/src/compiler/cpp_generator.cc", | |
| 27 "src/grpc/src/compiler/cpp_generator.h", | |
| 28 "src/grpc/src/compiler/go_generator.cc", | |
| 29 "src/grpc/src/compiler/go_generator.h", | |
| 30 "src/grpc/src/compiler/schema_interface.h", | |
| 25 "src/include/flatbuffers/code_generators.h", | 31 "src/include/flatbuffers/code_generators.h", |
| 26 "src/include/flatbuffers/idl.h", | 32 "src/include/flatbuffers/idl.h", |
| 27 "src/include/flatbuffers/util.h", | 33 "src/include/flatbuffers/util.h", |
| 28 "src/src/idl_gen_cpp.cpp", | 34 "src/src/idl_gen_cpp.cpp", |
| 29 "src/src/idl_gen_fbs.cpp", | 35 "src/src/idl_gen_fbs.cpp", |
| 30 "src/src/idl_gen_general.cpp", | 36 "src/src/idl_gen_general.cpp", |
| 31 "src/src/idl_gen_go.cpp", | 37 "src/src/idl_gen_go.cpp", |
| 38 "src/src/idl_gen_grpc.cpp", | |
| 32 "src/src/idl_gen_js.cpp", | 39 "src/src/idl_gen_js.cpp", |
| 33 "src/src/idl_gen_php.cpp", | 40 "src/src/idl_gen_php.cpp", |
| 34 "src/src/idl_gen_python.cpp", | 41 "src/src/idl_gen_python.cpp", |
| 35 "src/src/idl_gen_text.cpp", | 42 "src/src/idl_gen_text.cpp", |
| 36 "src/src/idl_parser.cpp", | 43 "src/src/idl_parser.cpp", |
| 37 "src/src/reflection.cpp", | 44 "src/src/reflection.cpp", |
| 38 "src/src/util.cpp", | 45 "src/src/util.cpp", |
| 39 ] | 46 ] |
| 40 visibility = [ ":*" ] | 47 visibility = [ ":*" ] |
| 41 deps = [ | 48 deps = [ |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 71 test("flatbuffers_unittest") { | 78 test("flatbuffers_unittest") { |
| 72 sources = [ | 79 sources = [ |
| 73 # The following files are not included in :flatbuffers | 80 # The following files are not included in :flatbuffers |
| 74 # but are listed here because test.cpp tests more than what will | 81 # but are listed here because test.cpp tests more than what will |
| 75 # get included into Chrome (reflection and generation). | 82 # get included into Chrome (reflection and generation). |
| 76 "src/include/reflection.h", | 83 "src/include/reflection.h", |
| 77 "src/include/reflection_generated.h", | 84 "src/include/reflection_generated.h", |
| 78 | 85 |
| 79 # This is the actual test. | 86 # This is the actual test. |
| 80 "src/tests/test.cpp", | 87 "src/tests/test.cpp", |
| 88 | |
| 89 # FIXME: Add the following tests: | |
| 90 # - grpc/tests/grpctest.cpp | |
|
pkalinnikov
2017/03/09 13:03:17
I suppose this test should be added similarly to "
engedy
2017/03/09 14:53:14
Right. Note, however, that each of these exports a
pkalinnikov
2017/03/09 17:36:58
Filed crbug.com/700039 for this and the one below.
| |
| 91 # - tests/fuzzer/flatbuffers_verifier_fuzzer.cc | |
| 92 # - tests/fuzzer/flatbuffers_parser_fuzzer.cc | |
|
pkalinnikov
2017/03/09 13:03:17
These 2 fuzzer tests are not included into CMakeLi
engedy
2017/03/09 14:53:14
I believe this is exercised by ClusterFuzz outside
pkalinnikov
2017/03/09 17:36:58
Done.
| |
| 93 # - tests/monster_test.grpc.fb.cc | |
|
pkalinnikov
2017/03/09 13:03:17
This one is probably not a test. Will delete it.
pkalinnikov
2017/03/09 17:36:58
Done.
| |
| 81 ] | 94 ] |
| 82 deps = [ | 95 deps = [ |
| 83 ":compiler_files", | 96 ":compiler_files", |
| 84 ":flatbuffers", | 97 ":flatbuffers", |
| 85 ":flatbuffers_samplebuffer", | 98 ":flatbuffers_samplebuffer", |
| 86 ] | 99 ] |
| 87 data = [ | 100 data = [ |
| 88 "src/tests/", | 101 "src/tests/", |
| 89 ] | 102 ] |
| 103 defines = [ "FLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE" ] | |
| 90 } | 104 } |
| OLD | NEW |