OLD | NEW |
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/build/scripts/scripts.gni") | 6 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
7 import("//third_party/WebKit/Source/config.gni") | 7 import("//third_party/WebKit/Source/config.gni") |
8 import("//third_party/WebKit/Source/platform/platform_generated.gni") | 8 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
9 | 9 |
| 10 # Most targets in this file are private actions so use that as the default. |
| 11 visibility = ":*" |
| 12 |
10 # TODO(GYP) Remove when test targets link (depends on ffmpeg) | 13 # TODO(GYP) Remove when test targets link (depends on ffmpeg) |
11 enable_blink_platform_test_targets = false | 14 enable_blink_platform_test_targets = false |
12 | 15 |
13 | 16 |
14 import("//third_party/yasm/yasm_assemble.gni") | 17 import("//third_party/yasm/yasm_assemble.gni") |
15 | 18 |
16 platform_gypi = exec_script( | 19 platform_gypi = exec_script( |
17 "//build/gypi_to_gn.py", | 20 "//build/gypi_to_gn.py", |
18 [ rebase_path("blink_platform.gypi") ], | 21 [ rebase_path("blink_platform.gypi") ], |
19 "scope", | 22 "scope", |
20 [ "blink_platform.gypi" ]) | 23 [ "blink_platform.gypi" ]) |
21 if (enable_blink_platform_test_targets) { | 24 if (enable_blink_platform_test_targets) { |
22 heap_gypi = exec_script( | 25 heap_gypi = exec_script( |
23 "//build/gypi_to_gn.py", | 26 "//build/gypi_to_gn.py", |
24 [ rebase_path("heap/blink_heap.gypi") ], | 27 [ rebase_path("heap/blink_heap.gypi") ], |
25 "scope", | 28 "scope", |
26 [ "heap/blink_heap.gypi" ]) | 29 [ "heap/blink_heap.gypi" ]) |
27 } | 30 } |
28 | 31 |
29 blink_platform_neon_files = [ | 32 blink_platform_neon_files = [ |
30 "graphics/cpu/arm/WebGLImageConversionNEON.h", | 33 "graphics/cpu/arm/WebGLImageConversionNEON.h", |
31 "graphics/cpu/arm/filters/FEBlendNEON.h", | 34 "graphics/cpu/arm/filters/FEBlendNEON.h", |
32 "graphics/cpu/arm/filters/FECompositeArithmeticNEON.h", | 35 "graphics/cpu/arm/filters/FECompositeArithmeticNEON.h", |
33 "graphics/cpu/arm/filters/FEGaussianBlurNEON.h", | 36 "graphics/cpu/arm/filters/FEGaussianBlurNEON.h", |
34 "graphics/cpu/arm/filters/NEONHelpers.h", | 37 "graphics/cpu/arm/filters/NEONHelpers.h", |
35 ] | 38 ] |
36 | 39 |
37 # blink_common in blink_platform.gyp | 40 # blink_common in blink_platform.gyp |
38 component("blink_common") { | 41 component("blink_common") { |
| 42 visibility = "//third_party/WebKit/*" |
39 sources = [ | 43 sources = [ |
40 "exported/WebCString.cpp", | 44 "exported/WebCString.cpp", |
41 "exported/WebString.cpp", | 45 "exported/WebString.cpp", |
42 "exported/WebCommon.cpp", | 46 "exported/WebCommon.cpp", |
43 ] | 47 ] |
44 | 48 |
45 defines = [ | 49 defines = [ |
46 "BLINK_COMMON_IMPLEMENTATION=1", | 50 "BLINK_COMMON_IMPLEMENTATION=1", |
47 "INSIDE_BLINK", | 51 "INSIDE_BLINK", |
48 ] | 52 ] |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 "--key-positions=*", | 154 "--key-positions=*", |
151 "-D", "-s", "2", | 155 "-D", "-s", "2", |
152 rebase_path(color_data_gperf, root_build_dir), | 156 rebase_path(color_data_gperf, root_build_dir), |
153 "--output-file=" + rebase_path(output_file, root_build_dir), | 157 "--output-file=" + rebase_path(output_file, root_build_dir), |
154 ] | 158 ] |
155 } | 159 } |
156 | 160 |
157 # This isn't strictly necessary since we can just add the deps to "platform", | 161 # This isn't strictly necessary since we can just add the deps to "platform", |
158 # but it helps to have the targets match the GYP build. | 162 # but it helps to have the targets match the GYP build. |
159 group("make_platform_generated") { | 163 group("make_platform_generated") { |
| 164 visibility = "//third_party/WebKit/Source/*" |
160 deps = [ | 165 deps = [ |
161 ":blink_common", | 166 ":blink_common", |
162 ":color_data", | 167 ":color_data", |
163 ":font_family_names", | 168 ":font_family_names", |
164 ":runtime_enabled_features", | 169 ":runtime_enabled_features", |
165 ] | 170 ] |
166 } | 171 } |
167 | 172 |
168 # TODO(brettw) Objective C Renaming postbuild steps on Mac. | 173 # TODO(brettw) Objective C Renaming postbuild steps on Mac. |
169 # blink_platform target in blink_platform.gyp | 174 # blink_platform target in blink_platform.gyp |
170 component("platform") { | 175 component("platform") { |
| 176 visibility = "//third_party/WebKit/*" |
171 output_name = "blink_platform" | 177 output_name = "blink_platform" |
172 | 178 |
173 sources = platform_gypi.platform_files | 179 sources = platform_gypi.platform_files |
174 sources -= blink_platform_neon_files | 180 sources -= blink_platform_neon_files |
175 | 181 |
176 # Add in the generated files. | 182 # Add in the generated files. |
177 sources += | 183 sources += |
178 get_target_outputs(":font_family_names") + | 184 get_target_outputs(":font_family_names") + |
179 get_target_outputs(":runtime_enabled_features") + | 185 get_target_outputs(":runtime_enabled_features") + |
180 get_target_outputs(":color_data") | 186 get_target_outputs(":color_data") |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 # TODO(GYP) | 339 # TODO(GYP) |
334 #deps += [ "//third_party/ffmpeg" ] | 340 #deps += [ "//third_party/ffmpeg" ] |
335 } | 341 } |
336 if (use_openmax_dl_fft) { | 342 if (use_openmax_dl_fft) { |
337 include_dirs += [ "//third_party/openmax_dl" ] | 343 include_dirs += [ "//third_party/openmax_dl" ] |
338 # TODO(GYP) | 344 # TODO(GYP) |
339 # deps += [ "//third_party/openmax_dl/dl" ] | 345 # deps += [ "//third_party/openmax_dl/dl" ] |
340 } | 346 } |
341 } | 347 } |
342 | 348 |
343 | |
344 yasm_assemble("heap_asm_stubs") { | 349 yasm_assemble("heap_asm_stubs") { |
345 if (cpu_arch == "x86" || cpu_arch == "x64") { | 350 if (cpu_arch == "x86" || cpu_arch == "x64") { |
346 sources = [ "heap/asm/SaveRegisters_x86.asm" ] | 351 sources = [ "heap/asm/SaveRegisters_x86.asm" ] |
347 } else if (cpu_arch == "arm") { | 352 } else if (cpu_arch == "arm") { |
348 sources = [ "heap/asm/SaveRegisters_arm.S" ] | 353 sources = [ "heap/asm/SaveRegisters_arm.S" ] |
349 } else if (cpu_arch == "arm64") { | 354 } else if (cpu_arch == "arm64") { |
350 sources = [ "heap/asm/SaveRegisters_arm64.S" ] | 355 sources = [ "heap/asm/SaveRegisters_arm64.S" ] |
351 } else if (cpu_arch == "mipsel") { | 356 } else if (cpu_arch == "mipsel") { |
352 sources = [ "heap/asm/SaveRegisters_mips.S" ] | 357 sources = [ "heap/asm/SaveRegisters_mips.S" ] |
353 } | 358 } |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 #'cflags': ['-marm'], | 487 #'cflags': ['-marm'], |
483 # 'conditions': [ | 488 # 'conditions': [ |
484 # ['OS=="android"', { | 489 # ['OS=="android"', { |
485 # 'cflags!': ['-mthumb'], | 490 # 'cflags!': ['-mthumb'], |
486 # }], | 491 # }], |
487 # ], | 492 # ], |
488 | 493 |
489 deps = [ ":blink_common" ] | 494 deps = [ ":blink_common" ] |
490 } | 495 } |
491 } | 496 } |
OLD | NEW |