Gradle for java library
Summary: This builds the java bindings with gradle, and adds a script for Facebook employees to upload the generated artifacts to JCenter. Reviewed By: emilsjolander Differential Revision: D4597335 fbshipit-source-id: 4c01695a8638000a417bfb49deba4b9b9b4e114b
This commit is contained in:
committed by
Facebook Github Bot
parent
67717a7872
commit
5519a73087
16
scripts/build_natives_for_gradle.sh
Executable file
16
scripts/build_natives_for_gradle.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
buck build //android:android
|
||||
|
||||
X86_DEST=build/buck-out/jniLibs/x86
|
||||
ARMV7_DEST=build/buck-out/jniLibs/armabi-v7a
|
||||
|
||||
mkdir -p $X86_DEST
|
||||
mkdir -p $ARMV7_DEST
|
||||
|
||||
cp ../buck-out/gen/java/jni#android-armv7,shared/libyoga.so $ARMV7_DEST
|
||||
cp ../buck-out/gen/java/jni#android-x86,shared/libyoga.so $X86_DEST
|
||||
|
||||
cp ../buck-out/gen/yoga#android-armv7,shared/libyogacore.so $ARMV7_DEST
|
||||
cp ../buck-out/gen/yoga#android-x86,shared/libyogacore.so $X86_DEST
|
||||
|
Reference in New Issue
Block a user