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

Unified Diff: sandbox/mac/BUILD.gn

Issue 403193002: Fix the //sandbox/mac build when using a modern (10.7+) SDK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | sandbox/mac/sandbox_mac.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/mac/BUILD.gn
diff --git a/sandbox/mac/BUILD.gn b/sandbox/mac/BUILD.gn
index b0a2989ad9222ca01c713dc6144319b8d2a3b981..8a8533ca4e5d6a5e9cc74c8724d8e9cabaa76b15 100644
--- a/sandbox/mac/BUILD.gn
+++ b/sandbox/mac/BUILD.gn
@@ -28,8 +28,15 @@ component("sandbox") {
deps = [
"//base",
- ":generate_stubs",
]
+
+ # When the build SDK is 10.6, generate a dynamic stub loader. When the
+ # SDK is higher, then libxpc.dylib will be loaded automatically as part
+ # of libSystem, and only forward declarations of private symbols are
+ # necessary.
+ if (mac_sdk_version == "10.6") {
+ deps += [ ":generate_stubs" ]
+ }
}
generate_stubs_script = "//tools/generate_stubs/generate_stubs.py"
« no previous file with comments | « no previous file | sandbox/mac/sandbox_mac.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698