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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/heap/BUILD.gn ('k') | public/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/asm/BUILD.gn
diff --git a/Source/platform/heap/asm/BUILD.gn b/Source/platform/heap/asm/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..ba5a7bdafeeadac32f08a493d8ad187690f618e4
--- /dev/null
+++ b/Source/platform/heap/asm/BUILD.gn
@@ -0,0 +1,48 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+if (cpu_arch == "x86" || cpu_arch == "x64") {
+import("//third_party/yasm/yasm_assemble.gni")
+
+yasm_assemble("asm") {
+ assert(cpu_arch == "x86" || cpu_arch == "x64")
+
+ sources = [ "SaveRegisters_x86.asm" ]
+
+ yasm_flags = []
+ if (is_mac) {
+ # Necessary to ensure symbols end up with a _ prefix; added by
+ # yasm_compile.gypi for Windows, but not Mac.
+ yasm_flags += [ "-DPREFIX" ]
+ }
+ if (cpu_arch == "x64") {
+ if (is_win) {
+ yasm_flags += [ "-DX64WIN=1" ]
+ } else {
+ yasm_flags += [ "-DX64POSIX=1" ]
+ }
+ } else { # cpu_arch == "x86"
+ yasm_flags += [ "-DIA32=1" ]
+ }
+}
+
+} else { # cpu_arch == "x86" || cpu_arch == "x64"
+
+source_set("asm") {
+ if (cpu_arch == "arm") {
+ sources = [ "SaveRegisters_arm.S" ]
+ } else if (cpu_arch == "arm64") {
+ sources = [ "SaveRegisters_arm64.S" ]
+ } else if (cpu_arch == "mipsel") {
+ sources = [ "SaveRegisters_mips.S" ]
+ }
+
+ if (cpu_arch == "arm") {
+ defines = [ "ARM=1" ]
+ }
+}
+
+} # cpu_arch == "x86" || cpu_arch == "x64"
+
+
« 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