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

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

Issue 1945473002: Break dependencies of browser -> blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android filter Created 4 years, 7 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/ui.gni") 5 import("//build/config/ui.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//third_party/WebKit/Source/build/scripts/scripts.gni") 7 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
8 import("//third_party/WebKit/Source/config.gni") 8 import("//third_party/WebKit/Source/config.gni")
9 import("//third_party/WebKit/Source/platform/platform.gni") 9 import("//third_party/WebKit/Source/platform/platform.gni")
10 import("//third_party/WebKit/Source/platform/platform_generated.gni") 10 import("//third_party/WebKit/Source/platform/platform_generated.gni")
11 11
12 # Most targets in this file are private actions so use that as the default. 12 # Most targets in this file are private actions so use that as the default.
13 visibility = [ ":*" ] 13 visibility = [ ":*" ]
14 14
15 heap_gypi = exec_script("//build/gypi_to_gn.py", 15 heap_gypi = exec_script("//build/gypi_to_gn.py",
16 [ rebase_path("heap/blink_heap.gypi") ], 16 [ rebase_path("heap/blink_heap.gypi") ],
17 "scope", 17 "scope",
18 [ "heap/blink_heap.gypi" ]) 18 [ "heap/blink_heap.gypi" ])
19 19
20 blink_platform_neon_files = [ "graphics/cpu/arm/WebGLImageConversionNEON.h" ] 20 blink_platform_neon_files = [ "graphics/cpu/arm/WebGLImageConversionNEON.h" ]
21 21
22 blink_platform_sse_files = [ "graphics/cpu/x86/WebGLImageConversionSSE.h" ] 22 blink_platform_sse_files = [ "graphics/cpu/x86/WebGLImageConversionSSE.h" ]
23 23
24 # blink_common in blink_platform.gyp 24 # blink_common in blink_platform.gyp
25 component("blink_common") { 25 component("blink_common") {
26 visibility = [] # Allow re-assignment of list. 26 visibility = [] # Allow re-assignment of list.
27 visibility = [ "//third_party/WebKit/*" ] 27 visibility = [ "//third_party/WebKit/*" ]
28 sources = [ 28 sources = [
29 "../web/WebInputEvent.cpp",
29 "exported/FilePathConversion.cpp", 30 "exported/FilePathConversion.cpp",
30 "exported/URLConversion.cpp", 31 "exported/URLConversion.cpp",
31 "exported/WebCString.cpp", 32 "exported/WebCString.cpp",
32 "exported/WebString.cpp", 33 "exported/WebString.cpp",
34 "exported/linux/WebFontRenderStyle.cpp",
33 ] 35 ]
36 if (is_android) {
37 set_sources_assignment_filter([])
38 sources += [ "exported/linux/WebFontRenderStyle.cpp" ]
39 }
34 40
35 defines = [ 41 defines = [
36 "BLINK_COMMON_IMPLEMENTATION=1", 42 "BLINK_COMMON_IMPLEMENTATION=1",
37 "INSIDE_BLINK", 43 "INSIDE_BLINK",
38 ] 44 ]
39 45
40 configs += [ 46 configs += [
41 "//build/config/compiler:wexit_time_destructors", 47 "//build/config/compiler:wexit_time_destructors",
42 "//third_party/WebKit/Source:config", 48 "//third_party/WebKit/Source:config",
43 "//third_party/WebKit/Source:non_test_config", 49 "//third_party/WebKit/Source:non_test_config",
44 ] 50 ]
45 51
46 deps = [ 52 deps = [
47 "//base", 53 "//base",
48 "//third_party/WebKit/Source/wtf", 54 "//third_party/WebKit/Source/wtf",
49 "//url", 55 "//url",
50 ] 56 ]
57
58 public_deps = [
59 "//skia",
60 ]
51 } 61 }
52 62
53 # FontFamilyNames action in make_platform_generated in 63 # FontFamilyNames action in make_platform_generated in
54 # platform_generated.gyp 64 # platform_generated.gyp
55 action("font_family_names") { 65 action("font_family_names") {
56 script = "../build/scripts/make_names.py" 66 script = "../build/scripts/make_names.py"
57 67
58 font_family_names_in = "fonts/FontFamilyNames.in" 68 font_family_names_in = "fonts/FontFamilyNames.in"
59 inputs = make_names_files + [ font_family_names_in ] 69 inputs = make_names_files + [ font_family_names_in ]
60 70
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 "//third_party/WebKit/Source/wtf", 348 "//third_party/WebKit/Source/wtf",
339 "//third_party/iccjpeg", 349 "//third_party/iccjpeg",
340 "//third_party/libpng", 350 "//third_party/libpng",
341 "//third_party/libwebp", 351 "//third_party/libwebp",
342 "//third_party/ots", 352 "//third_party/ots",
343 "//third_party/qcms", 353 "//third_party/qcms",
344 "//url", 354 "//url",
345 "//v8", 355 "//v8",
346 ] 356 ]
347 deps = [ 357 deps = [
358 ":blink_common",
348 "//mojo/public/c/system:for_component", 359 "//mojo/public/c/system:for_component",
349 "//mojo/public/cpp/bindings:callback", 360 "//mojo/public/cpp/bindings:callback",
350 "//mojo/public/cpp/bindings:wtf_support", 361 "//mojo/public/cpp/bindings:wtf_support",
351 "//third_party/WebKit/Source/platform/heap", 362 "//third_party/WebKit/Source/platform/heap",
352 "//third_party/harfbuzz-ng", 363 "//third_party/harfbuzz-ng",
353 "//third_party/icu", 364 "//third_party/icu",
354 "//ui/gfx", 365 "//ui/gfx",
355 "//ui/gfx/geometry", 366 "//ui/gfx/geometry",
356 ] 367 ]
357 368
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 sources -= [ 412 sources -= [
402 "clipboard/ClipboardUtilitiesWin.cpp", 413 "clipboard/ClipboardUtilitiesWin.cpp",
403 "text/LocaleWin.cpp", 414 "text/LocaleWin.cpp",
404 ] 415 ]
405 } 416 }
406 417
407 if (is_android) { 418 if (is_android) {
408 # Add in some Linux files also shared with Android. 419 # Add in some Linux files also shared with Android.
409 set_sources_assignment_filter([]) 420 set_sources_assignment_filter([])
410 sources += [ 421 sources += [
411 "exported/linux/WebFontRenderStyle.cpp",
412 "fonts/linux/FontPlatformDataLinux.cpp", 422 "fonts/linux/FontPlatformDataLinux.cpp",
413 "fonts/linux/FontRenderStyle.h", 423 "fonts/linux/FontRenderStyle.h",
414 ] 424 ]
415 set_sources_assignment_filter(sources_assignment_filter) 425 set_sources_assignment_filter(sources_assignment_filter)
416 } else { 426 } else {
417 sources -= [ "scroll/ScrollbarThemeAndroid.cpp" ] 427 sources -= [ "scroll/ScrollbarThemeAndroid.cpp" ]
418 } 428 }
419 429
420 if (!use_default_render_theme) { 430 if (!use_default_render_theme) {
421 sources -= [ 431 sources -= [
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 } 610 }
601 611
602 if (current_cpu == "x86" || current_cpu == "x64") { 612 if (current_cpu == "x86" || current_cpu == "x64") {
603 source_set("blink_x86_sse") { 613 source_set("blink_x86_sse") {
604 sources = blink_platform_sse_files 614 sources = blink_platform_sse_files
605 deps = [ 615 deps = [
606 ":blink_common", 616 ":blink_common",
607 ] 617 ]
608 } 618 }
609 } 619 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698