diff --git a/source/MaaAdbControlUnit/CMakeLists.txt b/source/MaaAdbControlUnit/CMakeLists.txt index 8438b6ca8..f6c1554f6 100644 --- a/source/MaaAdbControlUnit/CMakeLists.txt +++ b/source/MaaAdbControlUnit/CMakeLists.txt @@ -24,4 +24,8 @@ install( # ARCHIVE DESTINATION lib ) +if(WIN32) + install(FILES $ DESTINATION symbol) +endif() + source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_adb_control_unit_src}) diff --git a/source/MaaDbgControlUnit/CMakeLists.txt b/source/MaaDbgControlUnit/CMakeLists.txt index 7171abb0d..0ca7bf90f 100644 --- a/source/MaaDbgControlUnit/CMakeLists.txt +++ b/source/MaaDbgControlUnit/CMakeLists.txt @@ -20,4 +20,8 @@ install( # ARCHIVE DESTINATION lib ) +if(WIN32) + install(FILES $ DESTINATION symbol) +endif() + source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_dbg_control_unit_src}) diff --git a/source/MaaFramework/CMakeLists.txt b/source/MaaFramework/CMakeLists.txt index fed6ad3ec..27dbb5756 100644 --- a/source/MaaFramework/CMakeLists.txt +++ b/source/MaaFramework/CMakeLists.txt @@ -33,6 +33,11 @@ install( RUNTIME DESTINATION bin LIBRARY DESTINATION bin ARCHIVE DESTINATION lib) + +if(WIN32) + install(FILES $ DESTINATION symbol) +endif() + install(DIRECTORY "${MAA_PUBLIC_INC}/MaaFramework" DESTINATION "include") source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_framework_src}) diff --git a/source/MaaProjectInterface/CLI/CMakeLists.txt b/source/MaaProjectInterface/CLI/CMakeLists.txt index 0101472d3..957846d61 100644 --- a/source/MaaProjectInterface/CLI/CMakeLists.txt +++ b/source/MaaProjectInterface/CLI/CMakeLists.txt @@ -16,3 +16,7 @@ install(TARGETS MaaPiCli RUNTIME DESTINATION bin LIBRARY DESTINATION bin ) + +if(WIN32) + install(FILES $ DESTINATION symbol) +endif() \ No newline at end of file diff --git a/source/MaaToolkit/CMakeLists.txt b/source/MaaToolkit/CMakeLists.txt index 5d6d5033e..e67b4fc2e 100644 --- a/source/MaaToolkit/CMakeLists.txt +++ b/source/MaaToolkit/CMakeLists.txt @@ -23,6 +23,11 @@ install( RUNTIME DESTINATION bin LIBRARY DESTINATION bin ARCHIVE DESTINATION lib) + +if(WIN32) + install(FILES $ DESTINATION symbol) +endif() + install(DIRECTORY "${MAA_PUBLIC_INC}/MaaToolkit" DESTINATION "include") source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_toolkit_src}) diff --git a/source/MaaUtils/CMakeLists.txt b/source/MaaUtils/CMakeLists.txt index a49c55ac0..ada0c399d 100644 --- a/source/MaaUtils/CMakeLists.txt +++ b/source/MaaUtils/CMakeLists.txt @@ -19,4 +19,8 @@ install( LIBRARY DESTINATION bin # ARCHIVE DESTINATION lib ) +if(WIN32) + install(FILES $ DESTINATION symbol) +endif() + source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_utils_src}) diff --git a/source/MaaWin32ControlUnit/CMakeLists.txt b/source/MaaWin32ControlUnit/CMakeLists.txt index a0fbfb2c4..19b6a56b9 100644 --- a/source/MaaWin32ControlUnit/CMakeLists.txt +++ b/source/MaaWin32ControlUnit/CMakeLists.txt @@ -21,4 +21,8 @@ install( # ARCHIVE DESTINATION lib ) +if(WIN32) + install(FILES $ DESTINATION symbol) +endif() + source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_win32_control_unit_src}) diff --git a/source/binding/NodeJS/CMakeLists.txt b/source/binding/NodeJS/CMakeLists.txt index 564519ced..e8e74c26a 100644 --- a/source/binding/NodeJS/CMakeLists.txt +++ b/source/binding/NodeJS/CMakeLists.txt @@ -12,8 +12,8 @@ endif() set(NODE_RUNTIME "node") set(NODE_RUNTIMEVERSION "20.11.1") -# set(NODE_ARCH "x64") +# set(NODE_ARCH "x64") if(WIN32) set(CMAKE_JS_LIB "${CMAKE_BINARY_DIR}/node.lib") set(CMAKE_JS_NODELIB_DEF "${CMAKE_CURRENT_LIST_DIR}/node_modules/node-api-headers/def/node_api.def") @@ -49,15 +49,15 @@ target_link_libraries(MaaNode ${CMAKE_JS_LIB} MaaFramework MaaToolkit) target_compile_definitions(MaaNode PRIVATE NODE_ADDON_API_ENABLE_TYPE_CHECK_ON_AS) if(WIN32 - AND CMAKE_JS_NODELIB_DEF - AND CMAKE_JS_NODELIB_TARGET) + AND CMAKE_JS_NODELIB_DEF + AND CMAKE_JS_NODELIB_TARGET) # Generate node.lib if(MSVC) execute_process(COMMAND ${CMAKE_AR} /def:${CMAKE_JS_NODELIB_DEF} /out:${CMAKE_JS_NODELIB_TARGET} - ${CMAKE_STATIC_LINKER_FLAGS}) + ${CMAKE_STATIC_LINKER_FLAGS}) else() execute_process(COMMAND ${CMAKE_LINKER} /def:${CMAKE_JS_NODELIB_DEF} /out:${CMAKE_JS_NODELIB_TARGET} - ${CMAKE_STATIC_LINKER_FLAGS}) + ${CMAKE_STATIC_LINKER_FLAGS}) endif() endif() @@ -67,5 +67,9 @@ install( LIBRARY DESTINATION bin ARCHIVE DESTINATION lib) +if(WIN32) + install(FILES $ DESTINATION symbol) +endif() + # if(WIN32) add_custom_command( TARGET MaaNode POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${MaaDlls} # $ COMMAND_EXPAND_LISTS) endif() diff --git a/test/dlopen/CMakeLists.txt b/test/dlopen/CMakeLists.txt index 9c2e47be5..bb1f5f4e1 100644 --- a/test/dlopen/CMakeLists.txt +++ b/test/dlopen/CMakeLists.txt @@ -29,3 +29,7 @@ add_dependencies(DlopenTesting LibraryHolder) set_target_properties(DlopenTesting PROPERTIES FOLDER Testing) install(TARGETS DlopenTesting RUNTIME DESTINATION bin) + +if(WIN32) + install(FILES $ DESTINATION symbol) +endif() diff --git a/test/pipeline/CMakeLists.txt b/test/pipeline/CMakeLists.txt index f7d5617df..8ed8d19ff 100644 --- a/test/pipeline/CMakeLists.txt +++ b/test/pipeline/CMakeLists.txt @@ -13,3 +13,7 @@ add_dependencies(PipelineTesting MaaFramework PipelineSmokingResource) set_target_properties(PipelineTesting PROPERTIES FOLDER Testing) install(TARGETS PipelineTesting RUNTIME DESTINATION bin) + +if(WIN32) + install(FILES $ DESTINATION symbol) +endif()