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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 ] | 43 ] |
44 } | 44 } |
45 | 45 |
46 executable("flatc") { | 46 executable("flatc") { |
47 sources = [ | 47 sources = [ |
48 "src/src/flatc.cpp", | 48 "src/src/flatc.cpp", |
49 ] | 49 ] |
50 deps = [ | 50 deps = [ |
51 ":compiler_files", | 51 ":compiler_files", |
52 ":flatbuffers", | 52 ":flatbuffers", |
53 "//build/config/sanitizers:deps", | 53 "//build/config:exe_and_shlib_deps", |
54 ] | 54 ] |
55 } | 55 } |
56 | 56 |
57 # The following is just for testing. | 57 # The following is just for testing. |
58 | 58 |
59 flatbuffer("flatbuffers_samplebuffer") { | 59 flatbuffer("flatbuffers_samplebuffer") { |
60 testonly = true | 60 testonly = true |
61 sources = [ | 61 sources = [ |
62 # Disabled as workaround for crbug.com/611351 | 62 # Disabled as workaround for crbug.com/611351 |
63 # "src/tests/include_test1.fbs", | 63 # "src/tests/include_test1.fbs", |
(...skipping 18 matching lines...) Expand all Loading... |
82 ] | 82 ] |
83 deps = [ | 83 deps = [ |
84 ":compiler_files", | 84 ":compiler_files", |
85 ":flatbuffers", | 85 ":flatbuffers", |
86 ":flatbuffers_samplebuffer", | 86 ":flatbuffers_samplebuffer", |
87 ] | 87 ] |
88 data = [ | 88 data = [ |
89 "src/tests/", | 89 "src/tests/", |
90 ] | 90 ] |
91 } | 91 } |
OLD | NEW |