Swiftgram/buck-files/BUCK_PINCache
Huy Nguyen be6faa107a Support Buck build (#2849)
* Support Buck build

* Simplify pod_install hook and buck-file dir's structure

* Update PINRemoteImage's BUCK

* Frameworks linking:
- Weak linking Photos and MapKit.
- Revisit //:Tests' list.
2017-01-04 14:11:28 -08:00

24 lines
652 B
Plaintext
Executable File

apple_library(
name = 'PINCache',
exported_headers = glob(['PINCache/*.h']),
# PINDiskCache.m should be compiled with '-fobjc-arc-exceptions' (#105)
srcs =
glob(['PINCache/*.m'], excludes = ['PINCache/PINDiskCache.m']) +
[('PINCache/PINDiskCache.m', ['-fobjc-arc-exceptions'])],
preprocessor_flags = ['-fobjc-arc'],
lang_preprocessor_flags = {
'C': ['-std=gnu99'],
'CXX': ['-std=gnu++11', '-stdlib=libc++'],
},
linker_flags = [
'-weak_framework',
'UIKit',
'-weak_framework',
'AppKit',
],
frameworks = [
'$SDKROOT/System/Library/Frameworks/Foundation.framework',
],
visibility = ['PUBLIC'],
)