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

Side by Side Diff: Source/core/BUILD.gn

Issue 329993006: Implement main blink target in GN. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//third_party/WebKit/Source/bindings/bindings.gni") 6 import("//third_party/WebKit/Source/bindings/bindings.gni")
7 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni") 7 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni")
8 import("//third_party/WebKit/Source/bindings/modules/modules.gni") 8 import("//third_party/WebKit/Source/bindings/modules/modules.gni")
9 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") 9 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni")
10 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") 10 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni")
11 import("//third_party/WebKit/Source/config.gni") 11 import("//third_party/WebKit/Source/config.gni")
12 import("//third_party/WebKit/Source/core/core.gni") 12 import("//third_party/WebKit/Source/core/core.gni")
13 import("//third_party/WebKit/Source/build/scripts/scripts.gni") 13 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
14 import("//third_party/WebKit/Source/platform/platform_generated.gni") 14 import("//third_party/WebKit/Source/platform/platform_generated.gni")
15 15
16 visibility = "//third_party/WebKit/Source/*"
17
16 rel_blink_core_gen_dir = rebase_path(blink_core_output_dir, root_build_dir) 18 rel_blink_core_gen_dir = rebase_path(blink_core_output_dir, root_build_dir)
17 19
18 # Compute the optimization level. The GYP code sets "optimize: max" which sets 20 # Compute the optimization level. The GYP code sets "optimize: max" which sets
19 # speed-over-size optimization for official builds on Windows only. The GN's 21 # speed-over-size optimization for official builds on Windows only. The GN's
20 # build optimize_max config applies this optimization on all platforms, so 22 # build optimize_max config applies this optimization on all platforms, so
21 # compute how to modify the config list to duplicate the GYP behavior. 23 # compute how to modify the config list to duplicate the GYP behavior.
22 if (is_debug) { 24 if (is_debug) {
23 core_config_remove = [ "//build/config/compiler:no_optimize" ] 25 core_config_remove = [ "//build/config/compiler:no_optimize" ]
24 core_config_add = core_config_remove # NOP 26 core_config_add = core_config_remove # NOP
25 } else { 27 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 "inspector:protocol_sources", 68 "inspector:protocol_sources",
67 "inspector:injected_script_source", 69 "inspector:injected_script_source",
68 "inspector:injected_canvas_script_source", 70 "inspector:injected_canvas_script_source",
69 "inspector:instrumentation_sources", 71 "inspector:instrumentation_sources",
70 "//gin", 72 "//gin",
71 "//skia", 73 "//skia",
72 "//third_party/iccjpeg", 74 "//third_party/iccjpeg",
73 "//third_party/libpng", 75 "//third_party/libpng",
74 "//third_party/libwebp", 76 "//third_party/libwebp",
75 "//third_party/libxml", 77 "//third_party/libxml",
76 #"//third_party/libxslt", # TODO(GYP) 78 "//third_party/libxslt",
77 "//third_party/npapi", 79 "//third_party/npapi",
78 "//third_party/qcms", 80 "//third_party/qcms",
79 "//third_party/sqlite", 81 "//third_party/sqlite",
80 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", 82 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
81 # FIXME: don't depend on bindings/modules http://crbug.com/358074 83 # FIXME: don't depend on bindings/modules http://crbug.com/358074
82 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated", 84 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated",
83 "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated" , 85 "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated" ,
84 "//third_party/WebKit/Source/platform:make_platform_generated", 86 "//third_party/WebKit/Source/platform:make_platform_generated",
85 "//third_party/WebKit/Source/wtf", 87 "//third_party/WebKit/Source/wtf",
86 "//url", 88 "//url",
87 "//v8", 89 "//v8",
88 ] 90 ]
89 } 91 }
90 92
91 # GYP version: WebKit/Source/core/core.gyp:webcore_prerequisites 93 # GYP version: WebKit/Source/core/core.gyp:webcore_prerequisites
92 source_set("prerequisites") { 94 source_set("prerequisites") {
93 exported_deps = [ 95 exported_deps = [
94 "//third_party/WebKit/Source/wtf", 96 "//third_party/WebKit/Source/wtf",
95 "//gpu/command_buffer/client:gles2_c_lib", 97 "//gpu/command_buffer/client:gles2_c_lib",
96 "//skia", 98 "//skia",
97 "//third_party/angle:translator", 99 "//third_party/angle:translator",
98 "//third_party/iccjpeg", 100 "//third_party/iccjpeg",
99 "//third_party/libpng", 101 "//third_party/libpng",
100 "//third_party/libwebp", 102 "//third_party/libwebp",
101 "//third_party/libxml", 103 "//third_party/libxml",
102 #"//third_party/libxslt", # TODO(GYP) 104 "//third_party/libxslt",
103 "//third_party/npapi", 105 "//third_party/npapi",
104 "//third_party/ots", 106 "//third_party/ots",
105 "//third_party/qcms", 107 "//third_party/qcms",
106 "//third_party/sqlite", 108 "//third_party/sqlite",
107 "//third_party/zlib", 109 "//third_party/zlib",
108 "//url", 110 "//url",
109 "//v8", 111 "//v8",
110 ] 112 ]
111 113
112 deps = [ 114 deps = [
113 ":make_core_generated", 115 ":make_core_generated",
114 "inspector:debugger_script_source", 116 "inspector:debugger_script_source",
115 "inspector:injected_canvas_script_source", 117 "inspector:injected_canvas_script_source",
116 "inspector:injected_script_source", 118 "inspector:injected_script_source",
117 "inspector:inspector_overlay_page", 119 "inspector:inspector_overlay_page",
118 "inspector:protocol_sources", 120 "inspector:protocol_sources",
119 "inspector:instrumentation_sources", 121 "inspector:instrumentation_sources",
120 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", 122 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
121 # FIXME: don't depend on bindings_modules http://crbug.com/358074 123 # FIXME: don't depend on bindings_modules http://crbug.com/358074
122 "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated" , 124 "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated" ,
123 "//third_party/WebKit/Source/platform", 125 "//third_party/WebKit/Source/platform",
124 ] + exported_deps 126 ] + exported_deps
125 127
126 forward_dependent_configs_from = exported_deps 128 forward_dependent_configs_from = exported_deps
127 129
128 direct_dependent_configs = [ 130 direct_dependent_configs = [
129 ":core_include_dirs", 131 ":core_include_dirs",
130 "//third_party/WebKit/Source:config", 132 "//third_party/WebKit/Source:config",
131 "//third_party/WebKit/Source:inside_blink", 133 "//third_party/WebKit/Source:inside_blink",
132 "//third_party/WebKit/Source:npapi_stub",
133 ] 134 ]
134 } 135 }
135 136
136 # Note that this is a source set rather than a group, even though it has no 137 # Note that this is a source set rather than a group, even though it has no
137 # sources. A group would implicitly forward all direct dependent configs 138 # sources. A group would implicitly forward all direct dependent configs
138 # through it, but we want to keep our internal targets' 139 # through it, but we want to keep our internal targets'
139 # direct_dependent_configs private and only forward some of them. 140 # direct_dependent_configs private and only forward some of them.
140 # 141 #
141 # GYP version: WebKit/Source/core/core.gyp:webcore 142 # GYP version: WebKit/Source/core/core.gyp:webcore
142 source_set("core") { 143 source_set("core") {
144 visibility = "//third_party/WebKit/*"
145
143 exported_deps = [ 146 exported_deps = [
144 ":core_generated", 147 ":core_generated",
145 "//skia", 148 "//skia",
146 "//third_party/npapi", 149 "//third_party/npapi",
147 "//third_party/qcms", 150 "//third_party/qcms",
148 "//third_party/WebKit/Source/wtf", 151 "//third_party/WebKit/Source/wtf",
149 "//url", 152 "//url",
150 "//v8", 153 "//v8",
151 ] 154 ]
152 155
153 configs -= core_config_remove 156 configs -= core_config_remove
154 configs += core_config_add 157 configs += core_config_add
155 158
156 deps = [ 159 deps = [
157 ":dom", 160 ":dom",
158 ":html", 161 ":html",
159 ":remaining", 162 ":remaining",
160 ":rendering", 163 ":rendering",
161 ":svg", 164 ":svg",
162 ] + exported_deps 165 ] + exported_deps
163 166
164 forward_dependent_configs_from = exported_deps 167 forward_dependent_configs_from = exported_deps
165 168
166 direct_dependent_configs = [ 169 direct_dependent_configs = [
167 ":core_include_dirs", 170 ":core_include_dirs",
168 "//third_party/WebKit/Source:npapi_stub",
169 ] 171 ]
170 172
171 # TODO(GYP) IPP libraries pkg-config. These seem to be experimental and used 173 # TODO(GYP) IPP libraries pkg-config. These seem to be experimental and used
172 # only on x86 Android. See also below. There should be one pkg-config call 174 # only on x86 Android. See also below. There should be one pkg-config call
173 # that creates a config used in both of these cases. 175 # that creates a config used in both of these cases.
174 } 176 }
175 177
176 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_dom 178 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_dom
177 source_set("dom") { 179 source_set("dom") {
178 sources = rebase_path(webcore_dom_files, ".", "//") 180 sources = rebase_path(webcore_dom_files, ".", "//")
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 # Generated from make_style_builder.py 387 # Generated from make_style_builder.py
386 "$blink_core_output_dir/StyleBuilder.cpp", 388 "$blink_core_output_dir/StyleBuilder.cpp",
387 "$blink_core_output_dir/StyleBuilderFunctions.cpp", 389 "$blink_core_output_dir/StyleBuilderFunctions.cpp",
388 ] 390 ]
389 391
390 configs -= core_config_remove 392 configs -= core_config_remove
391 configs += core_config_add 393 configs += core_config_add
392 394
393 configs += [ 395 configs += [
394 "..:inside_blink", 396 "..:inside_blink",
395 "..:npapi_stub",
396 ] 397 ]
397 398
398 deps = [ 399 deps = [
399 ":make_core_generated", 400 ":make_core_generated",
400 ":prerequisites", 401 ":prerequisites",
401 "inspector:inspector_overlay_page", 402 "inspector:inspector_overlay_page",
402 "inspector:protocol_sources", 403 "inspector:protocol_sources",
403 "inspector:instrumentation_sources", 404 "inspector:instrumentation_sources",
404 "inspector:injected_canvas_script_source", 405 "inspector:injected_canvas_script_source",
405 "inspector:injected_script_source", 406 "inspector:injected_script_source",
406 "inspector:debugger_script_source", 407 "inspector:debugger_script_source",
407 "//gin", 408 "//gin",
408 "//skia", 409 "//skia",
409 "//third_party/iccjpeg", 410 "//third_party/iccjpeg",
410 "//third_party/libpng", 411 "//third_party/libpng",
411 "//third_party/libwebp", 412 "//third_party/libwebp",
412 "//third_party/libxml", 413 "//third_party/libxml",
413 #"//third_party/libxslt/libxslt.gyp:libxslt", TODO(GYP) 414 "//third_party/libxslt",
414 "//third_party/npapi", 415 "//third_party/npapi",
415 "//third_party/qcms", 416 "//third_party/qcms",
416 "//third_party/sqlite", 417 "//third_party/sqlite",
417 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", 418 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
418 # FIXME: don't depend on bindings/modules http://crbug.com/358074 419 # FIXME: don't depend on bindings/modules http://crbug.com/358074
419 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated", 420 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated",
420 "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated" , 421 "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated" ,
421 "//third_party/WebKit/Source/platform:make_platform_generated", 422 "//third_party/WebKit/Source/platform:make_platform_generated",
422 "//third_party/WebKit/Source/wtf", 423 "//third_party/WebKit/Source/wtf",
423 "//url", 424 "//url",
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 "$blink_core_output_dir/{{source_name_part}}.h", 1063 "$blink_core_output_dir/{{source_name_part}}.h",
1063 ] 1064 ]
1064 args = [ 1065 args = [
1065 "{{source}}", 1066 "{{source}}",
1066 rel_blink_core_gen_dir, 1067 rel_blink_core_gen_dir,
1067 bison_exe, 1068 bison_exe,
1068 ] 1069 ]
1069 1070
1070 deps = make_core_generated_deps 1071 deps = make_core_generated_deps
1071 } 1072 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698