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

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

Issue 541933003: GN: Update heap stubs for android (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | Source/platform/heap/BUILD.gn » ('j') | Source/platform/heap/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 include_dirs += [ "//third_party/ffmpeg" ] 326 include_dirs += [ "//third_party/ffmpeg" ]
328 deps += [ "//third_party/ffmpeg" ] 327 deps += [ "//third_party/ffmpeg" ]
329 } 328 }
330 if (use_openmax_dl_fft) { 329 if (use_openmax_dl_fft) {
331 include_dirs += [ "//third_party/openmax_dl" ] 330 include_dirs += [ "//third_party/openmax_dl" ]
332 # TODO(GYP) 331 # TODO(GYP)
333 # deps += [ "//third_party/openmax_dl/dl" ] 332 # deps += [ "//third_party/openmax_dl/dl" ]
334 } 333 }
335 } 334 }
336 335
336 if (cpu_arch == "x86" || cpu_arch == "x64") {
337 import("//third_party/yasm/yasm_assemble.gni")
338
337 yasm_assemble("heap_asm_stubs") { 339 yasm_assemble("heap_asm_stubs") {
338 if (cpu_arch == "x86" || cpu_arch == "x64") { 340 assert(cpu_arch == "x86" || cpu_arch == "x64")
339 sources = [ "heap/asm/SaveRegisters_x86.asm" ] 341
340 } else if (cpu_arch == "arm") { 342 sources = [ "heap/asm/SaveRegisters_x86.asm" ]
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 343
348 yasm_flags = [] 344 yasm_flags = []
349 if (is_mac) { 345 if (is_mac) {
350 # Necessary to ensure symbols end up with a _ prefix; added by 346 # Necessary to ensure symbols end up with a _ prefix; added by
351 # yasm_compile.gypi for Windows, but not Mac. 347 # yasm_compile.gypi for Windows, but not Mac.
352 yasm_flags += [ "-DPREFIX" ] 348 yasm_flags += [ "-DPREFIX" ]
353 } 349 }
354 if (cpu_arch == "x64") { 350 if (cpu_arch == "x64") {
355 if (is_win) { 351 if (is_win) {
356 yasm_flags += [ "-DX64WIN=1" ] 352 yasm_flags += [ "-DX64WIN=1" ]
357 } else { 353 } else {
358 yasm_flags += [ "-DX64POSIX=1" ] 354 yasm_flags += [ "-DX64POSIX=1" ]
359 } 355 }
360 } else if (cpu_arch == "x86") { 356 } else { # cpu_arch == "x86"
361 yasm_flags += [ "-DIA32=1" ] 357 yasm_flags += [ "-DIA32=1" ]
362 } else if (cpu_arch == "arm") {
363 yasm_flags += [ "-DARM=1" ]
364 } 358 }
365 } 359 }
366 360
361 } else { # cpu_arch == "x86" || cpu_arch == "x64"
362
363 source_set("heap_asm_stubs") {
364 if (cpu_arch == "arm") {
365 sources = [ "heap/asm/SaveRegisters_arm.S" ]
366 } else if (cpu_arch == "arm64") {
367 sources = [ "heap/asm/SaveRegisters_arm64.S" ]
368 } else if (cpu_arch == "mipsel") {
369 sources = [ "heap/asm/SaveRegisters_mips.S" ]
370 }
371
372 if (cpu_arch == "arm") {
373 defines = [ "ARM=1" ]
374 }
375
376 }
377
378 } # cpu_arch == "x86" || cpu_arch == "x64"
379
367 380
368 test("heap_unittests") { 381 test("heap_unittests") {
369 visibility = "//third_party/WebKit/*" 382 visibility = "//third_party/WebKit/*"
370 output_name = "blink_heap_unittests" 383 output_name = "blink_heap_unittests"
371 384
372 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") 385 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap")
373 sources += [ "heap/RunAllTests.cpp" ] 386 sources += [ "heap/RunAllTests.cpp" ]
374 387
375 configs += [ 388 configs += [
376 "//third_party/WebKit/Source/wtf:wtf_config", 389 "//third_party/WebKit/Source/wtf:wtf_config",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 #'cflags': ['-marm'], 450 #'cflags': ['-marm'],
438 # 'conditions': [ 451 # 'conditions': [
439 # ['OS=="android"', { 452 # ['OS=="android"', {
440 # 'cflags!': ['-mthumb'], 453 # 'cflags!': ['-mthumb'],
441 # }], 454 # }],
442 # ], 455 # ],
443 456
444 deps = [ ":blink_common" ] 457 deps = [ ":blink_common" ]
445 } 458 }
446 } 459 }
OLDNEW
« no previous file with comments | « no previous file | Source/platform/heap/BUILD.gn » ('j') | Source/platform/heap/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698