Summary: Examples: - macOS on macOS (Mono, Xamarin.Mac, Unity) - `buck build //csharp:yoganet#shared,default` -> `libyoga.dylib` - Android (Xamarin.Android, Unity) - `buck build //csharp:yoganet#shared,android-armv7` -> `libyoga.so` - iOS (Xamarin.iOS, Unity) - `buck build //:yoga#static,iphoneos-arm64` -> `libyoga.a` - `buck build //csharp:yoganet#static,iphoneos-arm64` -> `libyoganet.a` Closes https://github.com/facebook/yoga/pull/282 Reviewed By: emilsjolander Differential Revision: D4333811 Pulled By: splhack fbshipit-source-id: 54f4364d93b2419d7504392eb558296a5d06772f
36 lines
770 B
Plaintext
36 lines
770 B
Plaintext
|
|
YOGA_ROOT = '//...'
|
|
INFER_ANNOTATIONS_TARGET = '//lib/infer-annotations:infer-annotations'
|
|
JSR_305_TARGET = '//lib/jsr-305:jsr-305'
|
|
JUNIT_TARGET = '//lib/junit:junit'
|
|
PROGRUARD_ANNOTATIONS_TARGET = '//java/com/facebook/proguard/annotations:annotations'
|
|
SOLOADER_TARGET = '//lib/soloader:soloader'
|
|
GTEST_TARGET = '//lib/gtest:gtest'
|
|
JNI_TARGET = '//lib/jni:jni'
|
|
FBJNI_TARGET = '//lib/fb:fbjni'
|
|
|
|
THIS_IS_FBOBJC = False
|
|
|
|
CXX_LIBRARY_WHITELIST = [
|
|
'//:yoga',
|
|
'//lib/fb:fbjni',
|
|
'//java:jni',
|
|
]
|
|
|
|
BASE_COMPILER_FLAGS = [
|
|
'-fno-omit-frame-pointer',
|
|
'-fexceptions',
|
|
'-Wall',
|
|
'-Werror',
|
|
'-O3',
|
|
]
|
|
|
|
def yoga_dep(dep):
|
|
return '//' + dep
|
|
|
|
class allow_unsafe_import:
|
|
def __enter__(self):
|
|
pass
|
|
def __exit__(self, type, value, traceback):
|
|
pass
|