mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-23 13:55:36 +08:00
fix
This commit is contained in:
parent
84ae59c6e6
commit
49e514d3a7
@ -32,6 +32,13 @@ if(NOT DEFINED LANGUAGE)
|
||||
set(LANGUAGE English)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED BUILD_CORE)
|
||||
set(BUILD_CORE ON)
|
||||
endif()
|
||||
if(NOT DEFINED BUILD_PLUGIN)
|
||||
set(BUILD_PLUGIN ON)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED WINXP)
|
||||
set(WINXPAPP "")
|
||||
else()
|
||||
@ -58,8 +65,12 @@ set(VERSION_MINOR 1)
|
||||
set(VERSION_PATCH 2)
|
||||
set(VERSION_REVISION 0)
|
||||
|
||||
if(NOT DEFINED PLUGIN)
|
||||
if(BUILD_CORE)
|
||||
add_subdirectory(include)
|
||||
add_subdirectory(LunaHook)
|
||||
endif()
|
||||
add_subdirectory(LunaHost)
|
||||
endif()
|
||||
|
||||
if(BUILD_PLUGIN)
|
||||
add_subdirectory(LunaHost/GUI/Plugin)
|
||||
endif()
|
@ -1,5 +1,4 @@
|
||||
|
||||
if(NOT DEFINED PLUGIN)
|
||||
generate_product_version(
|
||||
versioninfohost
|
||||
NAME "LunaHost"
|
||||
@ -29,5 +28,4 @@ set_target_properties(LunaHostCLI PROPERTIES OUTPUT_NAME "LunaHostCLI${bitappend
|
||||
set_target_properties(LunaHostDll PROPERTIES OUTPUT_NAME "LunaHost${bitappendix}")
|
||||
target_link_libraries(LunaHostCLI pch host ${YY_Thunks_for_WinXP})
|
||||
target_link_libraries(LunaHostDll pch host ${YY_Thunks_for_WinXP})
|
||||
endif()
|
||||
add_subdirectory(GUI)
|
@ -1,8 +1,5 @@
|
||||
|
||||
if(NOT DEFINED PLUGIN)
|
||||
add_executable(LunaHost WIN32 confighelper.cpp controls.cpp main.cpp processlistwindow.cpp LunaHost.cpp window.cpp luna.rc pluginmanager.cpp Plugin/extensionimpl.cpp Plugin/copyclipboard.cpp QtLoader_inline.cpp app.manifest ${versioninfohost})
|
||||
target_precompile_headers(LunaHost REUSE_FROM pch)
|
||||
set_target_properties(LunaHost PROPERTIES OUTPUT_NAME "LunaHost${bitappendix}")
|
||||
target_link_libraries(LunaHost comctl32 winhttp version pch host ${YY_Thunks_for_WinXP})
|
||||
endif()
|
||||
add_subdirectory(Plugin)
|
@ -11,11 +11,11 @@ if(Qt5_DIR)
|
||||
set_target_properties(QtLoader PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/plugin${bitappendix}")
|
||||
endif()
|
||||
endif()
|
||||
if(DEFINED PLUGIN)
|
||||
include(QtUtils.cmake)
|
||||
#msvc_registry_search()
|
||||
#if(Qt5_DIR)
|
||||
find_qt5(Core Widgets WebSockets)
|
||||
add_subdirectory(extensions)
|
||||
#endif()
|
||||
|
||||
include(QtUtils.cmake)
|
||||
if(NOT DEFINED USESYSQTPATH)
|
||||
msvc_registry_search()
|
||||
endif()
|
||||
|
||||
find_qt5(Core Widgets WebSockets)
|
||||
add_subdirectory(extensions)
|
||||
|
@ -62,7 +62,7 @@ macro(find_qt5)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
#add_definitions(-DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
|
||||
find_package(Qt5 COMPONENTS ${ARGN})
|
||||
|
||||
set(CMAKE_PREFIX_PATH "C:/Qt/Qt5.14.2/5.14.2/msvc2017/lib/cmake/Qt5" ${CMAKE_PREFIX_PATH})
|
||||
if(Qt5_FOUND)
|
||||
if(WIN32 AND TARGET Qt5::qmake AND NOT TARGET Qt5::windeployqt)
|
||||
get_target_property(_qt5_qmake_location Qt5::qmake IMPORTED_LOCATION)
|
||||
|
@ -1,3 +1,3 @@
|
||||
cmake -DWINXP=1 ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/x86_xp
|
||||
cmake -DWINXP=1 -DLANGUAGE=Chinese ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/x86_zh_xp
|
||||
cmake -DBUILD_PLUGIN=OFF -DWINXP=1 ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/x86_xp
|
||||
cmake -DBUILD_PLUGIN=OFF -DWINXP=1 -DLANGUAGE=Chinese ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/x86_zh_xp
|
||||
call dobuildxp.bat
|
@ -1,5 +1,5 @@
|
||||
cmake ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/x86
|
||||
cmake -DBUILD_PLUGIN=OFF ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/x86
|
||||
cmake --build ../build/x86 --config Release --target ALL_BUILD -j 14
|
||||
|
||||
cmake ../CMakeLists.txt -G "Visual Studio 17 2022" -A x64 -T host=x64 -B ../build/x64
|
||||
cmake -DBUILD_PLUGIN=OFF ../CMakeLists.txt -G "Visual Studio 17 2022" -A x64 -T host=x64 -B ../build/x64
|
||||
cmake --build ../build/x64 --config Release --target ALL_BUILD -j 14
|
@ -1,2 +1,2 @@
|
||||
cmake -DPLUGIN=1 ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/plugin32
|
||||
cmake -DBUILD_CORE=OFF -DUSESYSQTPATH=1 -DPLUGIN=1 ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/plugin32
|
||||
cmake --build ../build/plugin32 --config Release --target ALL_BUILD -j 14
|
2
scripts/buildplugin32_local.bat
Normal file
2
scripts/buildplugin32_local.bat
Normal file
@ -0,0 +1,2 @@
|
||||
cmake -DBUILD_CORE=OFF -DPLUGIN=1 ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/plugin32
|
||||
cmake --build ../build/plugin32 --config Release --target ALL_BUILD -j 14
|
@ -1,2 +1,2 @@
|
||||
cmake -DPLUGIN=1 ../CMakeLists.txt -G "Visual Studio 17 2022" -A x64 -T host=x64 -B ../build/plugin64
|
||||
cmake -DBUILD_CORE=OFF -DPLUGIN=1 ../CMakeLists.txt -G "Visual Studio 17 2022" -A x64 -T host=x64 -B ../build/plugin64
|
||||
cmake --build ../build/plugin64 --config Release --target ALL_BUILD -j 14
|
@ -1,3 +1,3 @@
|
||||
cmake -DWINXP=1 ../CMakeLists.txt -G "Visual Studio 16 2019" -A win32 -T v141_xp -B ../build/x86_xp
|
||||
cmake -DBUILD_PLUGIN=OFF -DWINXP=1 ../CMakeLists.txt -G "Visual Studio 16 2019" -A win32 -T v141_xp -B ../build/x86_xp
|
||||
cmake --build ../build/x86_xp --config Release --target ALL_BUILD -j 14
|
||||
call dobuildxp.bat
|
@ -1,4 +1,4 @@
|
||||
|
||||
cmake -DWINXP=1 -DLANGUAGE=Chinese ../CMakeLists.txt -G "Visual Studio 16 2019" -A win32 -T v141_xp -B ../build/x86_zh_xp
|
||||
cmake -DBUILD_PLUGIN=OFF -DWINXP=1 -DLANGUAGE=Chinese ../CMakeLists.txt -G "Visual Studio 16 2019" -A win32 -T v141_xp -B ../build/x86_zh_xp
|
||||
cmake --build ../build/x86_zh_xp --config Release --target ALL_BUILD -j 14
|
||||
call dobuildxp.bat
|
@ -1,5 +1,5 @@
|
||||
cmake -DLANGUAGE=Chinese ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/x86_zh
|
||||
cmake -DBUILD_PLUGIN=OFF -DLANGUAGE=Chinese ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/x86_zh
|
||||
cmake --build ../build/x86_zh --config Release --target ALL_BUILD -j 14
|
||||
|
||||
cmake -DLANGUAGE=Chinese ../CMakeLists.txt -G "Visual Studio 17 2022" -A x64 -T host=x64 -B ../build/x64_zh
|
||||
cmake -DBUILD_PLUGIN=OFF -DLANGUAGE=Chinese ../CMakeLists.txt -G "Visual Studio 17 2022" -A x64 -T host=x64 -B ../build/x64_zh
|
||||
cmake --build ../build/x64_zh --config Release --target ALL_BUILD -j 14
|
||||
|
Loading…
Reference in New Issue
Block a user