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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/sanitizers:deps", |
54 ] | 54 ] |
| 55 ldflags = [ |
| 56 "-pie", |
| 57 ] |
55 } | 58 } |
56 | 59 |
57 # The following is just for testing. | 60 # The following is just for testing. |
58 | 61 |
59 flatbuffer("flatbuffers_samplebuffer") { | 62 flatbuffer("flatbuffers_samplebuffer") { |
60 testonly = true | 63 testonly = true |
61 sources = [ | 64 sources = [ |
62 # Disabled as workaround for crbug.com/611351 | 65 # Disabled as workaround for crbug.com/611351 |
63 # "src/tests/include_test1.fbs", | 66 # "src/tests/include_test1.fbs", |
64 # "src/tests/include_test2.fbs", | 67 # "src/tests/include_test2.fbs", |
(...skipping 16 matching lines...) Expand all Loading... |
81 ] | 84 ] |
82 deps = [ | 85 deps = [ |
83 ":compiler_files", | 86 ":compiler_files", |
84 ":flatbuffers", | 87 ":flatbuffers", |
85 ":flatbuffers_samplebuffer", | 88 ":flatbuffers_samplebuffer", |
86 ] | 89 ] |
87 data = [ | 90 data = [ |
88 "src/tests/", | 91 "src/tests/", |
89 ] | 92 ] |
90 } | 93 } |
OLD | NEW |