Skip to content

Commit 2b6e753

Browse files
authored
[aot] Workaround build structure to export GGUI symbols in libtaichi_export_core.so (taichi-dev#5870)
Porting this to libtaichi_export_core.so temporarily since we need to migrate our texture demo to c-api after it's ready. Let's work around it for now.
1 parent 846e24e commit 2b6e753

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/TaichiExportCore.cmake

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ set_target_properties(${TAICHI_EXPORT_CORE_NAME} PROPERTIES
1010
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/build"
1111
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/build")
1212

13+
# [TODO] Remove the following two linkages after rewriting AOT Demos with Device APIS
14+
if(TI_WITH_GGUI)
15+
target_link_libraries(${TAICHI_EXPORT_CORE_NAME} PRIVATE taichi_ui_vulkan)
16+
target_link_libraries(${TAICHI_EXPORT_CORE_NAME} PRIVATE taichi_ui)
17+
endif()
18+
1319
target_include_directories(${TAICHI_EXPORT_CORE_NAME}
1420
PUBLIC
1521
# Used when building the library:

0 commit comments

Comments
 (0)