Skip to content

Commit 50bf540

Browse files
committed
output libevdev to a custom build directory so it can be linked to in other modules
1 parent e2950c0 commit 50bf540

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sysbridge/src/main/cpp/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ add_library(evdev SHARED
9494
android/libbase/stringprintf.cpp
9595
${aidl_src_dir}/io/github/sds100/keymapper/sysbridge/IEvdevCallback.cpp)
9696

97+
# Set a stable custom output directory for libevdev.so so it can be linked to in other modules
98+
# Outputs to custom "libs" directory in the sysbridge module build directory
99+
set_target_properties(evdev PROPERTIES
100+
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../build/libs/${ANDROID_ABI}"
101+
LIBRARY_OUTPUT_DIRECTORY_DEBUG "${CMAKE_CURRENT_SOURCE_DIR}/../../../build/libs/${ANDROID_ABI}"
102+
LIBRARY_OUTPUT_DIRECTORY_RELEASE "${CMAKE_CURRENT_SOURCE_DIR}/../../../build/libs/${ANDROID_ABI}")
103+
97104
find_library(
98105
binder_ndk-lib
99106
binder_ndk

0 commit comments

Comments
 (0)