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

Unified Diff: chrome/installer/gcapi_mac/BUILD.gn

Issue 2841603005: gcapi_mac: Add gn build file. (Closed)
Patch Set: leeeeeeeopard jenkins Created 3 years, 8 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 | « BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/gcapi_mac/BUILD.gn
diff --git a/chrome/installer/gcapi_mac/BUILD.gn b/chrome/installer/gcapi_mac/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..dd1103bd2840ad308ae804611588bbcd6fa77996
--- /dev/null
+++ b/chrome/installer/gcapi_mac/BUILD.gn
@@ -0,0 +1,48 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/sysroot.gni")
+
+assert(is_mac)
+
+config("gcapi_config") {
+ cflags = [
+ "-isysroot",
+ sysroot,
+ "-mmacosx-version-min=10.5",
+ ]
+ ldflags = [
+ "-isysroot",
+ sysroot,
+ "-mmacosx-version-min=10.5",
+ ]
+}
+
+static_library("gcapi_lib") {
+ complete_static_lib = true
+ sources = [
+ "gcapi.h",
+ "gcapi.mm",
+ ]
+
+ libs = [ "Cocoa.framework" ]
+
+ # Don't use runtime_library, to be able to pick a custom mmacosx-version-min.
+ configs -= [ "//build/config/compiler:runtime_library" ]
+ configs += [ ":gcapi_config" ]
+}
+
+executable("gcapi_example") {
+ sources = [
+ "gcapi_example_client.mm",
+ ]
+
+ deps = [
+ ":gcapi_lib",
+ ]
+
+ # Don't use runtime_library, to be able to pick a custom mmacosx-version-min.
+ configs -= [ "//build/config/compiler:runtime_library" ]
+ configs += [ ":gcapi_config" ]
+}
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698