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

Side by Side Diff: third_party/WebKit/Source/BUILD.gn

Issue 2081543002: Add gn Blink GC plugin options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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("config.gni") 5 import("config.gni")
6 if (is_clang) { 6 if (is_clang) {
7 import("//build/config/clang/clang.gni") 7 import("//build/config/clang/clang.gni")
8 } 8 }
9 9
10 visibility = [ "//third_party/WebKit/*" ] 10 visibility = [ "//third_party/WebKit/*" ]
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ] 47 ]
48 } 48 }
49 49
50 if (is_win) { 50 if (is_win) {
51 if (is_component_build) { 51 if (is_component_build) {
52 defines += [ "USING_V8_SHARED" ] 52 defines += [ "USING_V8_SHARED" ]
53 } 53 }
54 } 54 }
55 55
56 if (is_clang && blink_gc_plugin && clang_use_chrome_plugins) { 56 if (is_clang && blink_gc_plugin && clang_use_chrome_plugins) {
57 _blink_gc_plugin_dll_extension = "so"
57 if (is_mac || is_ios) { 58 if (is_mac || is_ios) {
58 cflags += [ 59 _blink_gc_plugin_dll_extension = "dylib"
59 "-Xclang",
60 "-load",
61 "-Xclang",
62 rebase_path(
63 "//third_party/llvm-build/Release+Asserts/lib/libBlinkGCPlugin.dylib ",
64 root_build_dir),
65 ]
66 } else if (is_linux) {
67 cflags += [
68 "-Xclang",
69 "-load",
70 "-Xclang",
71 rebase_path(
72 "//third_party/llvm-build/Release+Asserts/lib/libBlinkGCPlugin.so",
73 root_build_dir),
74 ]
75 } 60 }
76
77 cflags += [ 61 cflags += [
78 "-Xclang", 62 "-Xclang",
63 "-load",
64 "-Xclang",
65 rebase_path(
66 "${blink_gc_plugin_lib_path}/libBlinkGCPlugin.${_blink_gc_plugin_dll_e xtension}",
Nico 2016/06/21 20:53:13 this should only be done if is_mac || is_ios || is
sof 2016/06/22 10:58:04 Thanks, fixed (the regression.)
67 root_build_dir),
68 "-Xclang",
79 "-add-plugin", 69 "-add-plugin",
80 "-Xclang", 70 "-Xclang",
81 "blink-gc-plugin", 71 "blink-gc-plugin",
82 ] 72 ]
73
74 # Add arguments for enabled GC plugin options:
75 if (blink_gc_plugin_option_do_dump_graph) {
76 cflags += [
77 "-Xclang",
78 "-plugin-arg-blink-gc-plugin",
79 "-Xclang",
80 "dump-graph",
81 ]
82 }
83 if (blink_gc_plugin_option_warn_unneeded_finalizer) {
84 cflags += [
85 "-Xclang",
86 "-plugin-arg-blink-gc-plugin",
87 "-Xclang",
88 "warn-unneeded-finalizer",
89 ]
90 }
83 } 91 }
84 } 92 }
85 93
86 # The follow configs apply to all targets except for unit tests, which rely on 94 # The follow configs apply to all targets except for unit tests, which rely on
87 # static initializers. 95 # static initializers.
88 config("non_test_config") { 96 config("non_test_config") {
89 cflags = [] 97 cflags = []
90 98
91 if (is_clang) { 99 if (is_clang) {
92 cflags += [ "-Wglobal-constructors" ] 100 cflags += [ "-Wglobal-constructors" ]
93 } 101 }
94 } 102 }
95 103
96 if (is_mac) { 104 if (is_mac) {
97 # This sets up precompiled headers for Mac. 105 # This sets up precompiled headers for Mac.
98 config("mac_precompiled_headers") { 106 config("mac_precompiled_headers") {
99 precompiled_header = rebase_path("build/mac/Prefix.h", root_build_dir) 107 precompiled_header = rebase_path("build/mac/Prefix.h", root_build_dir)
100 precompiled_source = "//third_party/WebKit/Source/build/mac/Prefix.h" 108 precompiled_source = "//third_party/WebKit/Source/build/mac/Prefix.h"
101 } 109 }
102 } 110 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/config.gni » ('j') | third_party/WebKit/Source/config.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698