| 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 sources = [ | 24 sources = [ |
| 25 "src/include/idl.h", | 25 "src/include/flatbuffers/code_generators.h", |
| 26 "src/include/util.h", | 26 "src/include/flatbuffers/idl.h", |
| 27 "src/include/flatbuffers/util.h", |
| 27 "src/src/idl_gen_cpp.cpp", | 28 "src/src/idl_gen_cpp.cpp", |
| 28 "src/src/idl_gen_fbs.cpp", | 29 "src/src/idl_gen_fbs.cpp", |
| 29 "src/src/idl_gen_general.cpp", | 30 "src/src/idl_gen_general.cpp", |
| 30 "src/src/idl_gen_go.cpp", | 31 "src/src/idl_gen_go.cpp", |
| 31 "src/src/idl_gen_js.cpp", | 32 "src/src/idl_gen_js.cpp", |
| 32 "src/src/idl_gen_php.cpp", | 33 "src/src/idl_gen_php.cpp", |
| 33 "src/src/idl_gen_python.cpp", | 34 "src/src/idl_gen_python.cpp", |
| 34 "src/src/idl_gen_text.cpp", | 35 "src/src/idl_gen_text.cpp", |
| 35 "src/src/idl_parser.cpp", | 36 "src/src/idl_parser.cpp", |
| 36 "src/src/reflection.cpp", | 37 "src/src/reflection.cpp", |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 ] | 81 ] |
| 81 deps = [ | 82 deps = [ |
| 82 ":compiler_files", | 83 ":compiler_files", |
| 83 ":flatbuffers", | 84 ":flatbuffers", |
| 84 ":flatbuffers_samplebuffer", | 85 ":flatbuffers_samplebuffer", |
| 85 ] | 86 ] |
| 86 data = [ | 87 data = [ |
| 87 "src/tests/", | 88 "src/tests/", |
| 88 ] | 89 ] |
| 89 } | 90 } |
| OLD | NEW |