Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//build/config/sysroot.gni") | |
| 6 | |
| 7 assert(is_mac) | |
| 8 | |
| 9 static_library("gcapi_lib") { | |
| 10 sources = [ | |
| 11 "gcapi.h", | |
| 12 "gcapi.mm", | |
| 13 ] | |
| 14 | |
| 15 libs = [ "Cocoa.framework" ] | |
| 16 | |
| 17 # Don't use runtime_library, to be able to pick a custom mmacosx-version-min. | |
| 18 configs -= [ "//build/config/compiler:runtime_library" ] | |
| 19 cflags = [ | |
| 20 "-isysroot", | |
| 21 sysroot, | |
| 22 "-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:/
| |
| 23 ] | |
| 24 ldflags = [ | |
| 25 "-isysroot", | |
| 26 sysroot, | |
| 27 "-mmacosx-version-min=10.8", | |
| 28 ] | |
| 29 | |
| 30 complete_static_lib = true | |
| 31 } | |
| 32 | |
| 33 executable("gcapi_example") { | |
| 34 sources = [ | |
| 35 "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
| |
| 36 ] | |
| 37 | |
| 38 deps = [ | |
| 39 ":gcapi_lib", | |
| 40 ] | |
| 41 } | |
| OLD | NEW |