| 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 config("gcapi_config") { |
| 10 cflags = [ |
| 11 "-isysroot", |
| 12 sysroot, |
| 13 "-mmacosx-version-min=10.5", |
| 14 ] |
| 15 ldflags = [ |
| 16 "-isysroot", |
| 17 sysroot, |
| 18 "-mmacosx-version-min=10.5", |
| 19 ] |
| 20 } |
| 21 |
| 22 static_library("gcapi_lib") { |
| 23 complete_static_lib = true |
| 24 sources = [ |
| 25 "gcapi.h", |
| 26 "gcapi.mm", |
| 27 ] |
| 28 |
| 29 libs = [ "Cocoa.framework" ] |
| 30 |
| 31 # Don't use runtime_library, to be able to pick a custom mmacosx-version-min. |
| 32 configs -= [ "//build/config/compiler:runtime_library" ] |
| 33 configs += [ ":gcapi_config" ] |
| 34 } |
| 35 |
| 36 executable("gcapi_example") { |
| 37 sources = [ |
| 38 "gcapi_example_client.mm", |
| 39 ] |
| 40 |
| 41 deps = [ |
| 42 ":gcapi_lib", |
| 43 ] |
| 44 |
| 45 # Don't use runtime_library, to be able to pick a custom mmacosx-version-min. |
| 46 configs -= [ "//build/config/compiler:runtime_library" ] |
| 47 configs += [ ":gcapi_config" ] |
| 48 } |
| OLD | NEW |