forked from WearCode/magiskboot_build
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.android.txt
40 lines (36 loc) · 1.54 KB
/
CMakeLists.android.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# the followings are copied from android-tools
add_subdirectory(src/android_fmtlib EXCLUDE_FROM_ALL)
add_library(android_liblog STATIC
src/android_logging/liblog/log_event_list.cpp
src/android_logging/liblog/log_event_write.cpp
src/android_logging/liblog/logger_name.cpp
src/android_logging/liblog/logger_read.cpp
src/android_logging/liblog/logger_write.cpp
src/android_logging/liblog/properties.cpp
src/android_logging/liblog/logprint.cpp)
target_compile_definitions(android_liblog PRIVATE
-DLIBLOG_LOG_TAG=1006 -D_XOPEN_SOURCE=700 -DFAKE_LOG_DEVICE=1)
target_include_directories(android_liblog PUBLIC
src/android_core/include
src/android_logging/liblog/include
src/android_core/libcutils/include
src/android_libbase/include)
add_library(android_libbase STATIC
src/android_libbase/abi_compatibility.cpp
src/android_libbase/chrono_utils.cpp
src/android_libbase/file.cpp
src/android_libbase/hex.cpp
src/android_libbase/logging.cpp
src/android_libbase/mapped_file.cpp
src/android_libbase/parsebool.cpp
src/android_libbase/parsenetaddress.cpp
src/android_libbase/posix_strerror_r.cpp
src/android_libbase/properties.cpp
src/android_libbase/stringprintf.cpp
src/android_libbase/strings.cpp
src/android_libbase/threads.cpp
src/android_libbase/test_utils.cpp
src/android_libbase/errors_unix.cpp)
target_include_directories(android_libbase PUBLIC
src/android_libbase/include src/android_core/include)
target_link_libraries(android_libbase PUBLIC fmt::fmt android_liblog)