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

Unified Diff: third_party/WebKit/Source/platform/heap/asm/BUILD.gn

Issue 1415753003: gn format everything. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert freetype-android change Created 5 years, 2 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 | « third_party/WebKit/Source/platform/heap/BUILD.gn ('k') | third_party/WebKit/Source/wtf/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/asm/BUILD.gn
diff --git a/third_party/WebKit/Source/platform/heap/asm/BUILD.gn b/third_party/WebKit/Source/platform/heap/asm/BUILD.gn
index 00681e6687911c7399cc90c9f5bc90b1b3d79a2d..d3a5e6ab96366b35d0e9259ead9c6c163104523e 100644
--- a/third_party/WebKit/Source/platform/heap/asm/BUILD.gn
+++ b/third_party/WebKit/Source/platform/heap/asm/BUILD.gn
@@ -3,46 +3,49 @@
# found in the LICENSE file.
if (current_cpu == "x86" || current_cpu == "x64") {
-import("//third_party/yasm/yasm_assemble.gni")
+ import("//third_party/yasm/yasm_assemble.gni")
-yasm_assemble("asm") {
- assert(current_cpu == "x86" || current_cpu == "x64")
+ yasm_assemble("asm") {
+ assert(current_cpu == "x86" || current_cpu == "x64")
- sources = [ "SaveRegisters_x86.asm" ]
+ 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 (current_cpu == "x64") {
- if (is_win) {
- yasm_flags += [ "-DX64WIN=1" ]
- } else {
- yasm_flags += [ "-DX64POSIX=1" ]
+ 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 (current_cpu == "x64") {
+ if (is_win) {
+ yasm_flags += [ "-DX64WIN=1" ]
+ } else {
+ yasm_flags += [ "-DX64POSIX=1" ]
+ }
+ } else { # current_cpu == "x86"
+ yasm_flags += [ "-DIA32=1" ]
}
- } else { # current_cpu == "x86"
- yasm_flags += [ "-DIA32=1" ]
- }
-}
-
-} else { # current_cpu == "x86" || current_cpu == "x64"
-
-source_set("asm") {
- if (current_cpu == "arm") {
- sources = [ "SaveRegisters_arm.S" ]
- } else if (current_cpu == "arm64") {
- sources = [ "SaveRegisters_arm64.S" ]
- } else if (current_cpu == "mipsel") {
- sources = [ "SaveRegisters_mips.S" ]
}
+} else { # current_cpu == "x86" || current_cpu == "x64"
+ source_set("asm") {
+ if (current_cpu == "arm") {
+ sources = [
+ "SaveRegisters_arm.S",
+ ]
+ } else if (current_cpu == "arm64") {
+ sources = [
+ "SaveRegisters_arm64.S",
+ ]
+ } else if (current_cpu == "mipsel") {
+ sources = [
+ "SaveRegisters_mips.S",
+ ]
+ }
- if (current_cpu == "arm") {
- defines = [ "ARM=1" ]
+ if (current_cpu == "arm") {
+ defines = [ "ARM=1" ]
+ }
}
-}
-
-} # current_cpu == "x86" || current_cpu == "x64"
-
-
+} # current_cpu == "x86" || current_cpu == "x64"
« no previous file with comments | « third_party/WebKit/Source/platform/heap/BUILD.gn ('k') | third_party/WebKit/Source/wtf/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698