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

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

Issue 541933003: GN: Update heap stubs for android (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix paths 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 | « Source/platform/heap/BUILD.gn ('k') | public/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 if (cpu_arch == "x86" || cpu_arch == "x64") {
6 import("//third_party/yasm/yasm_assemble.gni")
7
8 yasm_assemble("asm") {
9 assert(cpu_arch == "x86" || cpu_arch == "x64")
10
11 sources = [ "SaveRegisters_x86.asm" ]
12
13 yasm_flags = []
14 if (is_mac) {
15 # Necessary to ensure symbols end up with a _ prefix; added by
16 # yasm_compile.gypi for Windows, but not Mac.
17 yasm_flags += [ "-DPREFIX" ]
18 }
19 if (cpu_arch == "x64") {
20 if (is_win) {
21 yasm_flags += [ "-DX64WIN=1" ]
22 } else {
23 yasm_flags += [ "-DX64POSIX=1" ]
24 }
25 } else { # cpu_arch == "x86"
26 yasm_flags += [ "-DIA32=1" ]
27 }
28 }
29
30 } else { # cpu_arch == "x86" || cpu_arch == "x64"
31
32 source_set("asm") {
33 if (cpu_arch == "arm") {
34 sources = [ "SaveRegisters_arm.S" ]
35 } else if (cpu_arch == "arm64") {
36 sources = [ "SaveRegisters_arm64.S" ]
37 } else if (cpu_arch == "mipsel") {
38 sources = [ "SaveRegisters_mips.S" ]
39 }
40
41 if (cpu_arch == "arm") {
42 defines = [ "ARM=1" ]
43 }
44 }
45
46 } # cpu_arch == "x86" || cpu_arch == "x64"
47
48
OLDNEW
« no previous file with comments | « Source/platform/heap/BUILD.gn ('k') | public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698