xref: /aosp_15_r20/system/chre/CMakeLists.txt (revision 84e339476a462649f82315436d70fd732297a399)
1*84e33947SAndroid Build Coastguard Workerinclude($ENV{PW_ROOT}/pw_build/pigweed.cmake)
2*84e33947SAndroid Build Coastguard Worker
3*84e33947SAndroid Build Coastguard Workeradd_subdirectory(chre_api)
4*84e33947SAndroid Build Coastguard Workeradd_subdirectory(core)
5*84e33947SAndroid Build Coastguard Workeradd_subdirectory(pal)
6*84e33947SAndroid Build Coastguard Workeradd_subdirectory(platform)
7*84e33947SAndroid Build Coastguard Workeradd_subdirectory(util)
8*84e33947SAndroid Build Coastguard Workeradd_subdirectory(variant)
9*84e33947SAndroid Build Coastguard Worker
10*84e33947SAndroid Build Coastguard Workerinclude($ENV{PW_ROOT}/pw_build/pigweed.cmake)
11*84e33947SAndroid Build Coastguard Worker
12*84e33947SAndroid Build Coastguard Workerif(NOT chre_third_party_flatbuffers_LIBRARY)
13*84e33947SAndroid Build Coastguard Worker  pw_add_error_target(chre_third_party.flatbuffers
14*84e33947SAndroid Build Coastguard Worker    MESSAGE
15*84e33947SAndroid Build Coastguard Worker      "Attempted to build chre_third_party.flatbuffers without configuring it "
16*84e33947SAndroid Build Coastguard Worker      "via chre_third_party_flatbuffers_LIBRARY."
17*84e33947SAndroid Build Coastguard Worker  )
18*84e33947SAndroid Build Coastguard Workerelse()
19*84e33947SAndroid Build Coastguard Worker  pw_add_library(chre_third_party.flatbuffers INTERFACE
20*84e33947SAndroid Build Coastguard Worker    PUBLIC_DEPS
21*84e33947SAndroid Build Coastguard Worker      "${chre_third_party_flatbuffers_LIBRARY}"
22*84e33947SAndroid Build Coastguard Worker  )
23*84e33947SAndroid Build Coastguard Workerendif()
24