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.gni") | 8 import("//third_party/WebKit/Source/platform/platform.gni") |
9 import("//third_party/WebKit/Source/platform/platform_generated.gni") | 9 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
10 import("//third_party/yasm/yasm_assemble.gni") | |
11 | 10 |
12 # Most targets in this file are private actions so use that as the default. | 11 # Most targets in this file are private actions so use that as the default. |
13 visibility = ":*" | 12 visibility = ":*" |
14 | 13 |
15 heap_gypi = exec_script( | 14 heap_gypi = exec_script( |
16 "//build/gypi_to_gn.py", | 15 "//build/gypi_to_gn.py", |
17 [ rebase_path("heap/blink_heap.gypi") ], | 16 [ rebase_path("heap/blink_heap.gypi") ], |
18 "scope", | 17 "scope", |
19 [ "heap/blink_heap.gypi" ]) | 18 [ "heap/blink_heap.gypi" ]) |
20 | 19 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 "BLINK_PLATFORM_IMPLEMENTATION=1", | 182 "BLINK_PLATFORM_IMPLEMENTATION=1", |
184 "INSIDE_BLINK", | 183 "INSIDE_BLINK", |
185 ] | 184 ] |
186 | 185 |
187 include_dirs = [ | 186 include_dirs = [ |
188 #"$angle_path/include", | 187 #"$angle_path/include", |
189 "$root_gen_dir/blink", | 188 "$root_gen_dir/blink", |
190 ] | 189 ] |
191 | 190 |
192 deps = [ | 191 deps = [ |
193 ":heap_asm_stubs", | |
194 ":make_platform_generated", | 192 ":make_platform_generated", |
195 "//gpu/command_buffer/client:gles2_c_lib", | 193 "//gpu/command_buffer/client:gles2_c_lib", |
196 "//skia", | 194 "//skia", |
197 "//third_party:jpeg", | 195 "//third_party:jpeg", |
198 "//third_party/harfbuzz-ng", | 196 "//third_party/harfbuzz-ng", |
199 "//third_party/iccjpeg", | 197 "//third_party/iccjpeg", |
200 "//third_party/icu", | 198 "//third_party/icu", |
201 "//third_party/libpng", | 199 "//third_party/libpng", |
202 "//third_party/libwebp", | 200 "//third_party/libwebp", |
203 "//third_party/ots", | 201 "//third_party/ots", |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 include_dirs += [ "//third_party/ffmpeg" ] | 325 include_dirs += [ "//third_party/ffmpeg" ] |
328 deps += [ "//third_party/ffmpeg" ] | 326 deps += [ "//third_party/ffmpeg" ] |
329 } | 327 } |
330 if (use_openmax_dl_fft) { | 328 if (use_openmax_dl_fft) { |
331 include_dirs += [ "//third_party/openmax_dl" ] | 329 include_dirs += [ "//third_party/openmax_dl" ] |
332 # TODO(GYP) | 330 # TODO(GYP) |
333 # deps += [ "//third_party/openmax_dl/dl" ] | 331 # deps += [ "//third_party/openmax_dl/dl" ] |
334 } | 332 } |
335 } | 333 } |
336 | 334 |
337 yasm_assemble("heap_asm_stubs") { | |
338 if (cpu_arch == "x86" || cpu_arch == "x64") { | |
339 sources = [ "heap/asm/SaveRegisters_x86.asm" ] | |
340 } else if (cpu_arch == "arm") { | |
341 sources = [ "heap/asm/SaveRegisters_arm.S" ] | |
342 } else if (cpu_arch == "arm64") { | |
343 sources = [ "heap/asm/SaveRegisters_arm64.S" ] | |
344 } else if (cpu_arch == "mipsel") { | |
345 sources = [ "heap/asm/SaveRegisters_mips.S" ] | |
346 } | |
347 | |
348 yasm_flags = [] | |
349 if (is_mac) { | |
350 # Necessary to ensure symbols end up with a _ prefix; added by | |
351 # yasm_compile.gypi for Windows, but not Mac. | |
352 yasm_flags += [ "-DPREFIX" ] | |
353 } | |
354 if (cpu_arch == "x64") { | |
355 if (is_win) { | |
356 yasm_flags += [ "-DX64WIN=1" ] | |
357 } else { | |
358 yasm_flags += [ "-DX64POSIX=1" ] | |
359 } | |
360 } else if (cpu_arch == "x86") { | |
361 yasm_flags += [ "-DIA32=1" ] | |
362 } else if (cpu_arch == "arm") { | |
363 yasm_flags += [ "-DARM=1" ] | |
364 } | |
365 } | |
366 | |
367 | |
368 test("heap_unittests") { | 335 test("heap_unittests") { |
369 visibility = "//third_party/WebKit/*" | 336 visibility = "//third_party/WebKit/*" |
370 output_name = "blink_heap_unittests" | 337 output_name = "blink_heap_unittests" |
371 | 338 |
372 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") | 339 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") |
373 sources += [ "heap/RunAllTests.cpp" ] | 340 sources += [ "heap/RunAllTests.cpp" ] |
374 | 341 |
375 configs += [ | 342 configs += [ |
376 "//third_party/WebKit/Source/wtf:wtf_config", | 343 "//third_party/WebKit/Source/wtf:wtf_config", |
377 "//third_party/WebKit/Source:config", | 344 "//third_party/WebKit/Source:config", |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 #'cflags': ['-marm'], | 404 #'cflags': ['-marm'], |
438 # 'conditions': [ | 405 # 'conditions': [ |
439 # ['OS=="android"', { | 406 # ['OS=="android"', { |
440 # 'cflags!': ['-mthumb'], | 407 # 'cflags!': ['-mthumb'], |
441 # }], | 408 # }], |
442 # ], | 409 # ], |
443 | 410 |
444 deps = [ ":blink_common" ] | 411 deps = [ ":blink_common" ] |
445 } | 412 } |
446 } | 413 } |
OLD | NEW |