From 8c50347f3c49ec0713d4c985e77266619059c1dd Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 19 Apr 2017 12:22:07 -0700 Subject: [PATCH] Add NDK build for libfb Summary: This enables using gradle for building libfb using the NDK. This is 1/3 of what we need to do. We also need to build yoga itself (which is the easiest as it's just a static library without external dependencies) and yogajni which relies on the other two. Hopefully, this should also make it more obvious why the previous moves were necessary. Reviewed By: emilsjolander Differential Revision: D4913360 fbshipit-source-id: 47658328532fd1ec15f10f8e31ea04691c481011 --- .gitignore | 2 ++ settings.gradle | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a0476725..c4a6bf0f 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,5 @@ Carthage/Build # Gradle .gradle +# NDK/CMake +.externalNativeBuild diff --git a/settings.gradle b/settings.gradle index 6977bf20..304db30e 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,4 +1,5 @@ -include ':yoga', ':yoga-layout', ':yoga:proguard-annotations' +include ':yoga', ':yoga-layout', ':yoga:proguard-annotations', ':libfb' project(':yoga').projectDir = file('java') project(':yoga:proguard-annotations').projectDir = file('java/proguard-annotations') project(':yoga-layout').projectDir = file('android') +project(':libfb').projectDir = file('lib/fb')