···44####
55# Main util library
66#
77+# Avoid linking with libraries that brings in DSOs as this
88+# library is used everywhere. Including libraries loaded in
99+# by applications like the OpenXR runtime library.
1010+#
711812configure_file(
913 "${CMAKE_CURRENT_SOURCE_DIR}/u_git_tag.c.in" "${CMAKE_CURRENT_BINARY_DIR}/u_git_tag.c"
···96100 )
97101target_link_libraries(aux_util PUBLIC aux-includes aux_generated_bindings aux_os aux_math)
98102103103+# Is basically used everywhere, unavoidable.
99104if(XRT_HAVE_SYSTEM_CJSON)
100105 target_link_libraries(aux_util PUBLIC cJSON::cJSON)
101106 target_compile_definitions(aux_util PRIVATE XRT_HAVE_SYSTEM_CJSON)
···103108 target_link_libraries(aux_util PUBLIC xrt-external-cjson)
104109endif()
105110111111+# Is basically used everywhere, only used in debugging.
106112if(XRT_FEATURE_TRACING AND XRT_HAVE_PERCETTO)
107113 target_link_libraries(aux_util PUBLIC percetto::percetto)
108114endif()
109115116116+# Is basically used everywhere, so link with here.
110117if(ANDROID)
111118 target_link_libraries(aux_util PUBLIC ${ANDROID_LOG_LIBRARY})
112119endif()
113120121121+# Internal dependency and doesn't bring in any DSO.
114122target_include_directories(aux_util PRIVATE ${EIGEN3_INCLUDE_DIR})
115123116124####