diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/aitt_android_flatbuffers.cmake | 14 | ||||
-rw-r--r-- | cmake/aitt_android_glib.cmake | 27 | ||||
-rw-r--r-- | cmake/aitt_android_mosquitto.cmake | 14 |
3 files changed, 55 insertions, 0 deletions
diff --git a/cmake/aitt_android_flatbuffers.cmake b/cmake/aitt_android_flatbuffers.cmake new file mode 100644 index 0000000..048d7ec --- /dev/null +++ b/cmake/aitt_android_flatbuffers.cmake @@ -0,0 +1,14 @@ +if(CMAKE_VERSION VERSION_LESS "3.10.0") + if(DEFINED AITT_ANDROID_FLATBUFFERS) + return() + endif() + set(AITT_ANDROID_FLATBUFFERS TRUE) +else(CMAKE_VERSION VERSION_LESS "3.10.0") + include_guard(GLOBAL) +endif(CMAKE_VERSION VERSION_LESS "3.10.0") + +include_directories(${PROJECT_ROOT_DIR}/third_party/flatbuffers-2.0.0/include) + +link_directories(${PROJECT_ROOT_DIR}/android/flatbuffers/.cxx/cmake/debug/${ANDROID_ABI}) + +set(FLATBUFFERS_LIBRARY ${PROJECT_ROOT_DIR}/android/flatbuffers/.cxx/cmake/debug/${ANDROID_ABI}/libflatbuffers.a) diff --git a/cmake/aitt_android_glib.cmake b/cmake/aitt_android_glib.cmake new file mode 100644 index 0000000..44c6618 --- /dev/null +++ b/cmake/aitt_android_glib.cmake @@ -0,0 +1,27 @@ +if(CMAKE_VERSION VERSION_LESS "3.10.0") + if(DEFINED AITT_ANDROID_GLIB) + return() + endif() + set(AITT_ANDROID_GLIB TRUE) +else(CMAKE_VERSION VERSION_LESS "3.10.0") + include_guard(GLOBAL) +endif(CMAKE_VERSION VERSION_LESS "3.10.0") + +if(ANDROID_ABI STREQUAL "arm64-v8a") + set(GSTREAMER_ABI arm64) +elseif(ANDROID_ABI STREQUAL "armeabi-v7a") + set(GSTREAMER_ABI armv7) +else(ANDROID_ABI STREQUAL "armeabi-v7a") + set(GSTREAMER_ABI ${ANDROID_ABI}) +endif(ANDROID_ABI STREQUAL "arm64-v8a") + +include_directories( + ${GSTREAMER_ROOT_ANDROID}/${GSTREAMER_ABI}/include/glib-2.0 + ${GSTREAMER_ROOT_ANDROID}/${GSTREAMER_ABI}/lib/glib-2.0/include +) + +link_directories(${GSTREAMER_ROOT_ANDROID}/${GSTREAMER_ABI}/lib) + +set(GLIB_LIBRARIES ${GSTREAMER_ROOT_ANDROID}/${GSTREAMER_ABI}/lib/libglib-2.0.a + ${GSTREAMER_ROOT_ANDROID}/${GSTREAMER_ABI}/lib/libiconv.a + ${GSTREAMER_ROOT_ANDROID}/${GSTREAMER_ABI}/lib/libintl.a) diff --git a/cmake/aitt_android_mosquitto.cmake b/cmake/aitt_android_mosquitto.cmake new file mode 100644 index 0000000..4428534 --- /dev/null +++ b/cmake/aitt_android_mosquitto.cmake @@ -0,0 +1,14 @@ +if(CMAKE_VERSION VERSION_LESS "3.10.0") + if(DEFINED AITT_ANDROID_MOSQUITTO) + return() + endif() + set(AITT_ANDROID_MOSQUITTO TRUE) +else(CMAKE_VERSION VERSION_LESS "3.10.0") + include_guard(GLOBAL) +endif(CMAKE_VERSION VERSION_LESS "3.10.0") + +include_directories(${PROJECT_ROOT_DIR}/third_party/mosquitto-2.0.14/include) + +link_directories(${PROJECT_ROOT_DIR}/android/mosquitto/.cxx/cmake/debug/${ANDROID_ABI}/lib) + +set(MOSQUITTO_LIBRARY ${PROJECT_ROOT_DIR}/android/mosquitto/.cxx/cmake/debug/${ANDROID_ABI}/lib/libmosquitto_static.a) |