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

Unified Diff: third_party/zlib/BUILD.gn

Issue 779473002: gn format //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/yasm/yasm_assemble.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/zlib/BUILD.gn
diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn
index b4d9cfdc1203f56f8052850e2f91ed8e8be4252a..e49b5e97fc03cbbda7d7589cb2f134a966f3624d 100644
--- a/third_party/zlib/BUILD.gn
+++ b/third_party/zlib/BUILD.gn
@@ -8,12 +8,20 @@ config("zlib_config") {
static_library("zlib_x86_simd") {
if (!is_ios && (cpu_arch == "x86" || cpu_arch == "x64")) {
- sources = [ "crc_folding.c", "fill_window_sse.c" ]
+ sources = [
+ "crc_folding.c",
+ "fill_window_sse.c",
+ ]
if (!is_win || is_clang) {
- cflags = [ "-msse4.2", "-mpclmul" ]
+ cflags = [
+ "-msse4.2",
+ "-mpclmul",
+ ]
}
} else {
- sources = [ "simd_stub.c"]
+ sources = [
+ "simd_stub.c",
+ ]
}
configs -= [ "//build/config/compiler:chromium_code" ]
@@ -65,7 +73,9 @@ static_library("zlib") {
configs += [ "//build/config/compiler:no_chromium_code" ]
public_configs = [ ":zlib_config" ]
- deps = [ ":zlib_x86_simd" ]
+ deps = [
+ ":zlib_x86_simd",
+ ]
}
static_library("minizip") {
@@ -97,7 +107,9 @@ static_library("minizip") {
cflags = [ "-Wno-parentheses-equality" ]
}
- deps = [ ":zlib" ]
+ deps = [
+ ":zlib",
+ ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
« no previous file with comments | « third_party/yasm/yasm_assemble.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698