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 } |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 ":flatbuffers", | 71 ":flatbuffers", |
72 "//build/config:exe_and_shlib_deps", | 72 "//build/config:exe_and_shlib_deps", |
73 ] | 73 ] |
74 } | 74 } |
75 | 75 |
76 # The following is just for testing. | 76 # The following is just for testing. |
77 | 77 |
78 flatbuffer("flatbuffers_samplebuffer") { | 78 flatbuffer("flatbuffers_samplebuffer") { |
79 testonly = true | 79 testonly = true |
80 sources = [ | 80 sources = [ |
81 # Disabled as workaround for crbug.com/611351 | 81 "src/tests/include_test/include_test1.fbs", |
82 # "src/tests/include_test/include_test1.fbs", | 82 "src/tests/include_test/sub/include_test2.fbs", |
83 # "src/tests/include_test/sub/include_test2.fbs", | |
84 "src/tests/monster_test.fbs", | 83 "src/tests/monster_test.fbs", |
85 "src/tests/namespace_test/namespace_test1.fbs", | 84 "src/tests/namespace_test/namespace_test1.fbs", |
86 "src/tests/namespace_test/namespace_test2.fbs", | 85 "src/tests/namespace_test/namespace_test2.fbs", |
87 ] | 86 ] |
88 flatc_include_dirs = [ "src/tests/include_test" ] | 87 flatc_include_dirs = [ "src/tests/include_test" ] |
89 } | 88 } |
90 | 89 |
91 test("flatbuffers_unittest") { | 90 test("flatbuffers_unittest") { |
92 sources = [ | 91 sources = [ |
93 "src/tests/test.cpp", | 92 "src/tests/test.cpp", |
94 ] | 93 ] |
95 deps = [ | 94 deps = [ |
96 ":compiler_files", | 95 ":compiler_files", |
97 ":flatbuffers", | 96 ":flatbuffers", |
98 ":flatbuffers_samplebuffer", | 97 ":flatbuffers_samplebuffer", |
99 ] | 98 ] |
100 data = [ | 99 data = [ |
101 "src/tests/", | 100 "src/tests/", |
102 ] | 101 ] |
103 defines = [ "FLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE" ] | 102 defines = [ "FLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE" ] |
104 } | 103 } |
OLD | NEW |