Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: mojo/runner/BUILD.gn

Issue 1318343003: Annotate GN executables and shared_libraries with sanitizer deps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/android/BUILD.gn ('k') | mojo/services/network/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//mojo/generate_mojo_shell_assets_list.gni") 5 import("//mojo/generate_mojo_shell_assets_list.gni")
6 import("//mojo/public/mojo_application.gni") 6 import("//mojo/public/mojo_application.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
9 9
10 # We don't support building in the component build since mojo apps are 10 # We don't support building in the component build since mojo apps are
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 "//mojo/shell", 57 "//mojo/shell",
58 "//ui/gl", 58 "//ui/gl",
59 "//ui/platform_window/android", 59 "//ui/platform_window/android",
60 ] 60 ]
61 } 61 }
62 } 62 }
63 63
64 executable("mojo_runner") { 64 executable("mojo_runner") {
65 deps = [ 65 deps = [
66 ":mojo_runner_lib", 66 ":mojo_runner_lib",
67 "//build/config/sanitizers:deps",
67 ] 68 ]
68 69
69 if (is_android) { 70 if (is_android) {
70 sources = [ 71 sources = [
71 "android/context_init.cc", 72 "android/context_init.cc",
72 ] 73 ]
73 74
74 # On android, the executable is also the native library used by the apk. 75 # On android, the executable is also the native library used by the apk.
75 # It means dynamic symbols must be preserved and exported. 76 # It means dynamic symbols must be preserved and exported.
76 ldflags = [ "-Wl,--export-dynamic" ] 77 ldflags = [ "-Wl,--export-dynamic" ]
77 } 78 }
78
79 deps += [ "//build/config/sanitizers:deps" ]
80 } 79 }
81 80
82 source_set("in_process_native_runner") { 81 source_set("in_process_native_runner") {
83 sources = [ 82 sources = [
84 "in_process_native_runner.cc", 83 "in_process_native_runner.cc",
85 "in_process_native_runner.h", 84 "in_process_native_runner.h",
86 ] 85 ]
87 86
88 public_deps = [ 87 public_deps = [
89 ":native_application_support", 88 ":native_application_support",
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 249
251 shared_library("bootstrap") { 250 shared_library("bootstrap") {
252 sources = [ 251 sources = [
253 "android/bootstrap.cc", 252 "android/bootstrap.cc",
254 ] 253 ]
255 deps = [ 254 deps = [
256 ":jni_headers", 255 ":jni_headers",
257 ":lib", 256 ":lib",
258 ":run_android_application_function", 257 ":run_android_application_function",
259 "//base", 258 "//base",
259 "//build/config/sanitizers:deps",
260 ] 260 ]
261 } 261 }
262 262
263 # Shared header between the bootstrap and the main shell .so. 263 # Shared header between the bootstrap and the main shell .so.
264 source_set("run_android_application_function") { 264 source_set("run_android_application_function") {
265 sources = [ 265 sources = [
266 "android/run_android_application_function.h", 266 "android/run_android_application_function.h",
267 ] 267 ]
268 268
269 deps = [ 269 deps = [
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 ] 481 ]
482 482
483 deps = [ 483 deps = [
484 "//base", 484 "//base",
485 "//mojo/application/public/cpp:test_support", 485 "//mojo/application/public/cpp:test_support",
486 "//mojo/runner/test:bindings", 486 "//mojo/runner/test:bindings",
487 "//mojo/services/network/public/interfaces", 487 "//mojo/services/network/public/interfaces",
488 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", 488 "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
489 ] 489 ]
490 } 490 }
OLDNEW
« no previous file with comments | « mojo/android/BUILD.gn ('k') | mojo/services/network/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698