Skip to content

Commit

Permalink
ci: fix build error on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 8, 2024
1 parent 2cb7312 commit 074b657
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 10 deletions.
2 changes: 1 addition & 1 deletion source/MaaAdbControlUnit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ install(

# ARCHIVE DESTINATION lib
)
install(FILES $<TARGET_PDB_FILE:MaaAdbControlUnit> DESTINATION symbol OPTIONAL)
install(FILES $<TARGET_PDB_FILE:MaaAdbControlUnit> DESTINATION symbol)

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_adb_control_unit_src})
5 changes: 4 additions & 1 deletion source/MaaDbgControlUnit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ install(

# ARCHIVE DESTINATION lib
)
install(FILES $<TARGET_PDB_FILE:MaaDbgControlUnit> DESTINATION symbol OPTIONAL)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaDbgControlUnit> DESTINATION symbol)
endif()

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_dbg_control_unit_src})
6 changes: 5 additions & 1 deletion source/MaaFramework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ install(
RUNTIME DESTINATION bin
LIBRARY DESTINATION bin
ARCHIVE DESTINATION lib)
install(FILES $<TARGET_PDB_FILE:MaaFramework> DESTINATION symbol OPTIONAL)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaFramework> DESTINATION symbol)
endif()

install(DIRECTORY "${MAA_PUBLIC_INC}/MaaFramework" DESTINATION "include")

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_framework_src})
Expand Down
5 changes: 4 additions & 1 deletion source/MaaProjectInterface/CLI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ install(TARGETS MaaPiCli
RUNTIME DESTINATION bin
LIBRARY DESTINATION bin
)
install(FILES $<TARGET_PDB_FILE:MaaPiCli> DESTINATION symbol OPTIONAL)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaPiCli> DESTINATION symbol)
endif()
6 changes: 5 additions & 1 deletion source/MaaToolkit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ install(
RUNTIME DESTINATION bin
LIBRARY DESTINATION bin
ARCHIVE DESTINATION lib)
install(FILES $<TARGET_PDB_FILE:MaaToolkit> DESTINATION symbol OPTIONAL)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaToolkit> DESTINATION symbol)
endif()

install(DIRECTORY "${MAA_PUBLIC_INC}/MaaToolkit" DESTINATION "include")

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_toolkit_src})
5 changes: 4 additions & 1 deletion source/MaaUtils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ install(
RUNTIME DESTINATION bin
LIBRARY DESTINATION bin # ARCHIVE DESTINATION lib
)
install(FILES $<TARGET_PDB_FILE:MaaUtils> DESTINATION symbol OPTIONAL)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaUtils> DESTINATION symbol)
endif()

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_utils_src})
5 changes: 4 additions & 1 deletion source/MaaWin32ControlUnit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ install(

# ARCHIVE DESTINATION lib
)
install(FILES $<TARGET_PDB_FILE:MaaWin32ControlUnit> DESTINATION symbol OPTIONAL)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaWin32ControlUnit> DESTINATION symbol)
endif()

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_win32_control_unit_src})
2 changes: 1 addition & 1 deletion source/binding/NodeJS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ install(
RUNTIME DESTINATION bin
LIBRARY DESTINATION bin
ARCHIVE DESTINATION lib)
install(FILES $<TARGET_PDB_FILE:MaaNode> DESTINATION symbol OPTIONAL)
install(FILES $<TARGET_PDB_FILE:MaaNode> DESTINATION symbol)

# if(WIN32) add_custom_command( TARGET MaaNode POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${MaaDlls}
# $<TARGET_FILE_DIR:MaaNode> COMMAND_EXPAND_LISTS) endif()
5 changes: 4 additions & 1 deletion test/dlopen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ add_dependencies(DlopenTesting LibraryHolder)
set_target_properties(DlopenTesting PROPERTIES FOLDER Testing)

install(TARGETS DlopenTesting RUNTIME DESTINATION bin)
install(FILES $<TARGET_PDB_FILE:DlopenTesting> DESTINATION symbol OPTIONAL)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:DlopenTesting> DESTINATION symbol)
endif()
5 changes: 4 additions & 1 deletion test/pipeline/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ add_dependencies(PipelineTesting MaaFramework PipelineSmokingResource)
set_target_properties(PipelineTesting PROPERTIES FOLDER Testing)

install(TARGETS PipelineTesting RUNTIME DESTINATION bin)
install(FILES $<TARGET_PDB_FILE:PipelineTesting> DESTINATION symbol OPTIONAL)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:PipelineTesting> DESTINATION symbol)
endif()

0 comments on commit 074b657

Please sign in to comment.