summaryrefslogtreecommitdiffstats
path: root/cmake/deps.cmake
diff options
context:
space:
mode:
authorRick Lei <ricklei@gmail.com>2015-01-14 15:11:43 +0100
committerRick Lei <ricklei@gmail.com>2015-01-14 15:11:43 +0100
commitc4378784ae2caec57634f9f04bcb3dcddc673f36 (patch)
tree70bbdb1c348803006a7cbf2092da65312720a386 /cmake/deps.cmake
parent133cee578e04e561bb17e37393bbf7e427522560 (diff)
downloadfastd-c4378784ae2caec57634f9f04bcb3dcddc673f36.tar
fastd-c4378784ae2caec57634f9f04bcb3dcddc673f36.zip
Add Android 4.1+ support. See doc/README-Android.md for build HOWTO.
* Update CMake files to work with android-cmake * Use unix domain socket for communicating with Android GUI * May also run standalone but requires rooted Android device
Diffstat (limited to 'cmake/deps.cmake')
-rw-r--r--cmake/deps.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/deps.cmake b/cmake/deps.cmake
index 7f48854..0d06bee 100644
--- a/cmake/deps.cmake
+++ b/cmake/deps.cmake
@@ -4,9 +4,14 @@ if(NOT DARWIN)
set(PTHREAD_LDFLAGS -pthread)
endif(NOT DARWIN)
+if(ANDROID)
+ find_host_package(BISON 2.5 REQUIRED)
+ find_host_package(PkgConfig REQUIRED)
+else(ANDROID)
+ find_package(BISON 2.5 REQUIRED)
+ find_package(PkgConfig REQUIRED)
+endif(ANDROID)
-find_package(BISON 2.5 REQUIRED)
-find_package(PkgConfig REQUIRED)
pkg_check_modules(UECC REQUIRED libuecc>=3)