Chromium Code Reviews| 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..9ef6320dd4067885a3ac8d2724ee156efa49ddf9 |
| --- /dev/null |
| +++ b/chrome/installer/gcapi_mac/BUILD.gn |
| @@ -0,0 +1,41 @@ |
| +# 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) |
| + |
| +static_library("gcapi_lib") { |
| + 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" ] |
| + cflags = [ |
| + "-isysroot", |
| + sysroot, |
| + "-mmacosx-version-min=10.8", |
|
Mark Mentovai
2017/04/25 20:08:55
Was this at 10.8 when we deleted the GYP files?
Nico
2017/04/25 20:13:49
I don't know, I just made up some number.
https:/
|
| + ] |
| + ldflags = [ |
| + "-isysroot", |
| + sysroot, |
| + "-mmacosx-version-min=10.8", |
| + ] |
| + |
| + complete_static_lib = true |
| +} |
| + |
| +executable("gcapi_example") { |
| + sources = [ |
| + "gcapi_example_client.mm", |
|
Mark Mentovai
2017/04/25 20:08:55
You should pick up the cflags and ldflags (and I g
Nico
2017/04/25 20:13:49
In the gyp files, we didn't do that, but sure, don
|
| + ] |
| + |
| + deps = [ |
| + ":gcapi_lib", |
| + ] |
| +} |