Summary: With the current setup, the final aar contains `com.facebook.proguard.annotation.DoNotStrip`. This is not needed (it is only used for proguard), and thus should not get published. We move proguard annotations into its own project for this, and place it into `java/proguard-annotations`. Here we adopt the gradle convention of `src/main` to make for a nice, clean (one line!) gradle script. As a different subproject, we can include this to `:yoga` as a `provided` dependency now, which doesn't include it in the output artifact. Reviewed By: emilsjolander Differential Revision: D4666572 fbshipit-source-id: a0cb26cb6c264065a0bd355b7d72ba02e3759560
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
|
|
YOGA_ROOT = '//...'
|
|
JAVA_TARGET = '//java:java'
|
|
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/proguard-annotations/src/main/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'
|
|
APPCOMPAT_TARGET = '//lib/appcompat:appcompat'
|
|
ANDROID_SUPPORT_TARGET = '//lib/android-support:android-support'
|
|
ANDROID_TARGET = '//android:android'
|
|
ANDROID_JAVA_TARGET = '//android/src/main/java/com/facebook/yoga/android:android'
|
|
ANDROID_RES_TARGET = '//android:res'
|
|
ANDROID_SAMPLE_JAVA_TARGET = '//android/sample/java/com/facebook/samples/yoga:yoga'
|
|
ANDROID_SAMPLE_RES_TARGET = '//android/sample:res'
|
|
|
|
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
|
|
|
|
with allow_unsafe_import():
|
|
import os.path
|
|
def isdir(filename):
|
|
return os.path.isdir(filename)
|