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

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

Issue 2194973002: Fix linker warning in broadcast_channel.mojom-blink.obj. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tighten deps Created 4 years, 4 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("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//third_party/WebKit/Source/build/scripts/scripts.gni") 8 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
9 import("//third_party/WebKit/Source/config.gni") 9 import("//third_party/WebKit/Source/config.gni")
10 import("//third_party/WebKit/Source/platform/platform.gni") 10 import("//third_party/WebKit/Source/platform/platform.gni")
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 args = [ 97 args = [
98 rebase_path(http_names_in, root_build_dir), 98 rebase_path(http_names_in, root_build_dir),
99 "--output_dir", 99 "--output_dir",
100 rebase_path(blink_platform_output_dir, root_build_dir), 100 rebase_path(blink_platform_output_dir, root_build_dir),
101 ] 101 ]
102 } 102 }
103 103
104 # RuntimeEnabledFeatures action in make_platform_generated in 104 # RuntimeEnabledFeatures action in make_platform_generated in
105 # platform_generated.gyp 105 # platform_generated.gyp
106 action("runtime_enabled_features") { 106 action("runtime_enabled_features_action") {
107 visibility = [] # Allow re-assignment of list.
108 visibility = [
109 ":*",
110 "//third_party/WebKit/Source/platform/weborigin",
111 ]
112
107 script = "../build/scripts/make_runtime_features.py" 113 script = "../build/scripts/make_runtime_features.py"
108 114
109 runtime_enabled_features_in = "RuntimeEnabledFeatures.in" 115 runtime_enabled_features_in = "RuntimeEnabledFeatures.in"
110 inputs = scripts_for_in_files + [ 116 inputs = scripts_for_in_files + [
111 runtime_enabled_features_in, 117 runtime_enabled_features_in,
112 "../build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl", 118 "../build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl",
113 "../build/scripts/templates/RuntimeEnabledFeatures.h.tmpl", 119 "../build/scripts/templates/RuntimeEnabledFeatures.h.tmpl",
114 ] 120 ]
115 121
116 outputs = [ 122 outputs = [
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 visibility = [ "//third_party/WebKit/Source/*" ] 304 visibility = [ "//third_party/WebKit/Source/*" ]
299 public_deps = [ 305 public_deps = [
300 ":blink_common", 306 ":blink_common",
301 ":character_data", 307 ":character_data",
302 ":color_data", 308 ":color_data",
303 ":font_family_names", 309 ":font_family_names",
304 ":http_names", 310 ":http_names",
305 ":inspector_debugger_script", 311 ":inspector_debugger_script",
306 ":inspector_injected_script", 312 ":inspector_injected_script",
307 ":inspector_protocol_sources", 313 ":inspector_protocol_sources",
308 ":runtime_enabled_features", 314 ":runtime_enabled_features_action",
309 ] 315 ]
310 } 316 }
311 317
318 component("runtime_enabled_features") {
319 visibility = [] # Allow re-assignment of list.
320 visibility = [
321 ":*",
322 "//third_party/WebKit/Source/platform/weborigin",
323 ]
324
325 sources = get_target_outputs(":runtime_enabled_features_action")
326
327 defines = [
328 "RUNTIME_ENABLED_FEATURES_IMPLEMENTATION=1",
329 "INSIDE_BLINK",
330 ]
331
332 configs += [
333 "//third_party/WebKit/Source:config",
334 "//third_party/WebKit/Source:non_test_config",
335 ]
336
337 public_deps = [
338 ":runtime_enabled_features_action",
339 "//third_party/WebKit/Source/wtf",
340 ]
341 }
342
312 # TODO(brettw) Objective C Renaming postbuild steps on Mac. 343 # TODO(brettw) Objective C Renaming postbuild steps on Mac.
313 # blink_platform target in blink_platform.gyp 344 # blink_platform target in blink_platform.gyp
314 component("platform") { 345 component("platform") {
315 visibility = [] # Allow re-assignment of list. 346 visibility = [] # Allow re-assignment of list.
316 visibility = [ 347 visibility = [
317 "//third_party/WebKit/*", 348 "//third_party/WebKit/*",
318 "//url/mojo:url_mojom_origin_blink_cpp_sources", 349 "//url/mojo:url_mojom_origin_blink_cpp_sources",
319 "//url/mojo:url_mojom_gurl_blink_cpp_sources", 350 "//url/mojo:url_mojom_gurl_blink_cpp_sources",
320 ] 351 ]
321 output_name = "blink_platform" 352 output_name = "blink_platform"
322 353
323 sources = platform_files 354 sources = platform_files
324 sources -= blink_platform_neon_files 355 sources -= blink_platform_neon_files
325 sources -= blink_platform_sse_files 356 sources -= blink_platform_sse_files
326 357
327 # Add in the generated files. 358 # Add in the generated files.
328 sources += get_target_outputs(":character_data") + 359 sources += get_target_outputs(":character_data") +
329 get_target_outputs(":color_data") + 360 get_target_outputs(":color_data") +
330 get_target_outputs(":font_family_names") + 361 get_target_outputs(":font_family_names") +
331 get_target_outputs(":http_names") + 362 get_target_outputs(":http_names") +
332 get_target_outputs(":inspector_debugger_script") + 363 get_target_outputs(":inspector_debugger_script") +
333 get_target_outputs(":inspector_injected_script") + 364 get_target_outputs(":inspector_injected_script") +
334 get_target_outputs(":inspector_protocol_sources") + 365 get_target_outputs(":inspector_protocol_sources")
335 get_target_outputs(":runtime_enabled_features")
336 366
337 configs += [ 367 configs += [
338 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 368 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
339 "//build/config/compiler:no_size_t_to_int_warning", 369 "//build/config/compiler:no_size_t_to_int_warning",
340 "//third_party/WebKit/Source:config", 370 "//third_party/WebKit/Source:config",
341 "//third_party/WebKit/Source:non_test_config", 371 "//third_party/WebKit/Source:non_test_config",
342 ] 372 ]
343 373
344 defines = [ 374 defines = [
345 "BLINK_PLATFORM_IMPLEMENTATION=1", 375 "BLINK_PLATFORM_IMPLEMENTATION=1",
346 "INSIDE_BLINK", 376 "INSIDE_BLINK",
347 ] 377 ]
348 378
349 include_dirs = [ 379 include_dirs = [
350 #"$angle_path/include", 380 #"$angle_path/include",
351 "$root_gen_dir/blink", 381 "$root_gen_dir/blink",
352 ] 382 ]
353 383
354 public_deps = [ 384 public_deps = [
355 ":make_platform_generated", 385 ":make_platform_generated",
386 ":runtime_enabled_features",
356 "//base", 387 "//base",
357 "//cc", 388 "//cc",
358 "//gpu/command_buffer/client:gles2_c_lib", 389 "//gpu/command_buffer/client:gles2_c_lib",
359 "//gpu/command_buffer/client:gles2_interface", 390 "//gpu/command_buffer/client:gles2_interface",
360 "//gpu/command_buffer/common:common", 391 "//gpu/command_buffer/common:common",
361 "//net", 392 "//net",
362 "//skia", 393 "//skia",
363 "//third_party:jpeg", 394 "//third_party:jpeg",
395 "//third_party/WebKit/Source/platform/weborigin",
364 "//third_party/WebKit/Source/wtf", 396 "//third_party/WebKit/Source/wtf",
365 "//third_party/iccjpeg", 397 "//third_party/iccjpeg",
366 "//third_party/libpng", 398 "//third_party/libpng",
367 "//third_party/libwebp", 399 "//third_party/libwebp",
368 "//third_party/ots", 400 "//third_party/ots",
369 "//third_party/qcms", 401 "//third_party/qcms",
370 "//url", 402 "//url",
371 "//v8", 403 "//v8",
372 ] 404 ]
373 deps = [ 405 deps = [
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 } 675 }
644 676
645 if (current_cpu == "x86" || current_cpu == "x64") { 677 if (current_cpu == "x86" || current_cpu == "x64") {
646 source_set("blink_x86_sse") { 678 source_set("blink_x86_sse") {
647 sources = blink_platform_sse_files 679 sources = blink_platform_sse_files
648 deps = [ 680 deps = [
649 ":blink_common", 681 ":blink_common",
650 ] 682 ]
651 } 683 }
652 } 684 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698