summaryrefslogtreecommitdiffstats
path: root/third_party/zlib/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/zlib/BUILD.gn')
-rw-r--r--third_party/zlib/BUILD.gn22
1 files changed, 17 insertions, 5 deletions
diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn
index b4d9cfd..e49b5e9 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" ]