Skip to content

Commit

Permalink
Add cmake option OBOE_DO_NOT_DEFINE_OPENSL_ES_CONSTANTS (#2115)
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushi-ageet authored Nov 20, 2024
1 parent b6e5a1b commit f5d9dc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ target_compile_options(oboe
# Enable logging of D,V for debug builds
target_compile_definitions(oboe PUBLIC $<$<CONFIG:DEBUG>:OBOE_ENABLE_LOGGING=1>)

option(OBOE_DO_NOT_DEFINE_OPENSL_ES_CONSTANTS "Do not define OpenSLES constants" OFF)
target_compile_definitions(oboe PRIVATE $<$<BOOL:${OBOE_DO_NOT_DEFINE_OPENSL_ES_CONSTANTS}>:DO_NOT_DEFINE_OPENSL_ES_CONSTANTS=1>)

target_link_libraries(oboe PRIVATE log OpenSLES)

# When installing oboe put the libraries in the lib/<ABI> folder e.g. lib/arm64-v8a
Expand Down

0 comments on commit f5d9dc7

Please sign in to comment.