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

Side by Side Diff: chrome/utility/BUILD.gn

Issue 1983163002: [Mac/GN] Change two ldlfags to libs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « build/secondary/third_party/crashpad/crashpad/util/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/sysroot.gni") 7 import("//build/config/sysroot.gni")
8 8
9 gypi_values = exec_script("//build/gypi_to_gn.py", 9 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("../chrome_utility.gypi") ], 10 [ rebase_path("../chrome_utility.gypi") ],
11 "scope", 11 "scope",
12 [ "../chrome_utility.gypi" ]) 12 [ "../chrome_utility.gypi" ])
13 13
14 # Provides a way for the utility library to push ldflags to dependents. 14 # Provides a way for the utility library to push ldflags to dependents.
15 config("utility_ldflags") { 15 config("utility_ldflags") {
16 if (is_mac && safe_browsing_mode == 1) { 16 if (is_mac && safe_browsing_mode == 1) {
17 ldflags = [ "/usr/lib/libbz2.dylib" ] 17 libs = [ "bz2" ]
18 } 18 }
19 } 19 }
20 20
21 static_library("utility") { 21 static_library("utility") {
22 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..") 22 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..")
23 defines = [] 23 defines = []
24 configs += [ "//build/config:precompiled_headers" ] 24 configs += [ "//build/config:precompiled_headers" ]
25 all_dependent_configs = [ ":utility_ldflags" ] 25 all_dependent_configs = [ ":utility_ldflags" ]
26 26
27 public_deps = [] 27 public_deps = []
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 if (safe_browsing_mode == 1) { 110 if (safe_browsing_mode == 1) {
111 sources += 111 sources +=
112 rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..") 112 rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..")
113 deps += [ "//third_party/zlib" ] 113 deps += [ "//third_party/zlib" ]
114 } 114 }
115 115
116 if (enable_pdf) { 116 if (enable_pdf) {
117 deps += [ "//pdf" ] 117 deps += [ "//pdf" ]
118 } 118 }
119 } 119 }
OLDNEW
« no previous file with comments | « build/secondary/third_party/crashpad/crashpad/util/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698