mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-14 16:33:54 +08:00
subm
This commit is contained in:
parent
f99d8be25c
commit
46c535304d
8
.github/workflows/buildluna.yml
vendored
8
.github/workflows/buildluna.yml
vendored
@ -25,8 +25,8 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
- run: git submodule init src/plugins/libs/minhook
|
||||||
submodules: recursive
|
- run: git submodule update src/plugins/libs/minhook
|
||||||
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
|
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
|
||||||
with:
|
with:
|
||||||
sdk-version: 22621
|
sdk-version: 22621
|
||||||
@ -48,8 +48,8 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
- run: git submodule init src/plugins/libs/minhook
|
||||||
submodules: recursive
|
- run: git submodule update src/plugins/libs/minhook
|
||||||
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
|
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
|
||||||
with:
|
with:
|
||||||
sdk-version: 22621
|
sdk-version: 22621
|
||||||
|
8
.github/workflows/buildlunahook.yml
vendored
8
.github/workflows/buildlunahook.yml
vendored
@ -14,8 +14,8 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
- run: git submodule init src/plugins/libs/minhook
|
||||||
submodules: recursive
|
- run: git submodule update src/plugins/libs/minhook
|
||||||
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
|
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
|
||||||
with:
|
with:
|
||||||
sdk-version: 22621
|
sdk-version: 22621
|
||||||
@ -91,8 +91,8 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
- run: git submodule init src/plugins/libs/minhook
|
||||||
submodules: recursive
|
- run: git submodule update src/plugins/libs/minhook
|
||||||
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
|
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
|
||||||
with:
|
with:
|
||||||
sdk-version: 22621
|
sdk-version: 22621
|
||||||
|
@ -4,54 +4,54 @@ target_include_directories(nlohmann INTERFACE ${CMAKE_CURRENT_LIST_DIR})
|
|||||||
|
|
||||||
option(IS_LUNAHOOK "IS_LUNAHOOK" OFF)
|
option(IS_LUNAHOOK "IS_LUNAHOOK" OFF)
|
||||||
if(IS_LUNAHOOK)
|
if(IS_LUNAHOOK)
|
||||||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/minhook ${CMAKE_BINARY_DIR}/minhook)
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/minhook ${CMAKE_BINARY_DIR}/minhook)
|
||||||
else()
|
else()
|
||||||
add_library(Detours ${CMAKE_CURRENT_LIST_DIR}/Detours/src/creatwth.cpp ${CMAKE_CURRENT_LIST_DIR}/Detours/src/detours.cpp ${CMAKE_CURRENT_LIST_DIR}/Detours/src/modules.cpp ${CMAKE_CURRENT_LIST_DIR}/Detours/src/disasm.cpp)
|
add_library(Detours ${CMAKE_CURRENT_LIST_DIR}/Detours/src/creatwth.cpp ${CMAKE_CURRENT_LIST_DIR}/Detours/src/detours.cpp ${CMAKE_CURRENT_LIST_DIR}/Detours/src/modules.cpp ${CMAKE_CURRENT_LIST_DIR}/Detours/src/disasm.cpp)
|
||||||
target_include_directories(Detours PUBLIC ${CMAKE_CURRENT_LIST_DIR}/Detours/src)
|
target_include_directories(Detours PUBLIC ${CMAKE_CURRENT_LIST_DIR}/Detours/src)
|
||||||
|
|
||||||
add_library(wil INTERFACE)
|
add_library(wil INTERFACE)
|
||||||
target_include_directories(wil INTERFACE ${CMAKE_CURRENT_LIST_DIR}/wil/include)
|
target_include_directories(wil INTERFACE ${CMAKE_CURRENT_LIST_DIR}/wil/include)
|
||||||
|
|
||||||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tinymp3 ${CMAKE_BINARY_DIR}/tinymp3)
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tinymp3 ${CMAKE_BINARY_DIR}/tinymp3)
|
||||||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/rapidfuzz-cpp ${CMAKE_BINARY_DIR}/rapidfuzz-cpp)
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/rapidfuzz-cpp ${CMAKE_BINARY_DIR}/rapidfuzz-cpp)
|
||||||
|
|
||||||
|
|
||||||
add_library(webview2 INTERFACE)
|
add_library(webview2 INTERFACE)
|
||||||
target_include_directories(webview2 INTERFACE ${CMAKE_CURRENT_LIST_DIR}/webview2/Microsoft.Web.WebView2.1.0.2535.41/build/native/include)
|
target_include_directories(webview2 INTERFACE ${CMAKE_CURRENT_LIST_DIR}/webview2/Microsoft.Web.WebView2.1.0.2535.41/build/native/include)
|
||||||
|
|
||||||
|
|
||||||
option(USE_VCLTL "USE_VCLTL" ON)
|
option(USE_VCLTL "USE_VCLTL" ON)
|
||||||
if(USE_VCLTL)
|
if(USE_VCLTL)
|
||||||
if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
|
||||||
set(LTLPlatform "Win32")
|
set(LTLPlatform "Win32")
|
||||||
endif()
|
endif()
|
||||||
if(WINXP)
|
if(WINXP)
|
||||||
set(WindowsTargetPlatformMinVersion "5.1.2600.0")
|
set(WindowsTargetPlatformMinVersion "5.1.2600.0")
|
||||||
endif()
|
endif()
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/VC-LTL helper for cmake.cmake")
|
include("${CMAKE_CURRENT_LIST_DIR}/VC-LTL helper for cmake.cmake")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
file(GLOB Clipper2LibSrc ${CMAKE_CURRENT_LIST_DIR}/Clipper2/CPP/Clipper2Lib/src/*.cpp)
|
file(GLOB Clipper2LibSrc ${CMAKE_CURRENT_LIST_DIR}/Clipper2/CPP/Clipper2Lib/src/*.cpp)
|
||||||
add_library(Clipper2Lib ${Clipper2LibSrc})
|
add_library(Clipper2Lib ${Clipper2LibSrc})
|
||||||
target_include_directories(Clipper2Lib PUBLIC ${CMAKE_CURRENT_LIST_DIR}/Clipper2/CPP/Clipper2Lib/include)
|
target_include_directories(Clipper2Lib PUBLIC ${CMAKE_CURRENT_LIST_DIR}/Clipper2/CPP/Clipper2Lib/include)
|
||||||
|
|
||||||
|
|
||||||
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
||||||
set(OnnxRuntime_DIR ${CMAKE_CURRENT_LIST_DIR}/onnxruntime-static/windows-x64)
|
set(OnnxRuntime_DIR ${CMAKE_CURRENT_LIST_DIR}/onnxruntime-static/windows-x64)
|
||||||
set(OpenCV_DIR ${CMAKE_CURRENT_LIST_DIR}/opencv-static/windows-x64)
|
set(OpenCV_DIR ${CMAKE_CURRENT_LIST_DIR}/opencv-static/windows-x64)
|
||||||
set(OpenCV_ARCH x64)
|
set(OpenCV_ARCH x64)
|
||||||
else()
|
else()
|
||||||
set(OnnxRuntime_DIR ${CMAKE_CURRENT_LIST_DIR}/onnxruntime-static/windows-x86)
|
set(OnnxRuntime_DIR ${CMAKE_CURRENT_LIST_DIR}/onnxruntime-static/windows-x86)
|
||||||
set(OpenCV_DIR ${CMAKE_CURRENT_LIST_DIR}/opencv-static/windows-x86)
|
set(OpenCV_DIR ${CMAKE_CURRENT_LIST_DIR}/opencv-static/windows-x86)
|
||||||
set(OpenCV_ARCH x86)
|
set(OpenCV_ARCH x86)
|
||||||
endif()
|
endif()
|
||||||
set(OpenCV_RUNTIME vc16)
|
set(OpenCV_RUNTIME vc16)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(WINXP "WINXP" OFF)
|
option(WINXP "WINXP" OFF)
|
||||||
if(WINXP)
|
if(WINXP)
|
||||||
set(YY_Thunks_for_WinXP ${CMAKE_CURRENT_LIST_DIR}/YY-Thunks/objs/X86/YY_Thunks_for_WinXP.obj)
|
set(YY_Thunks_for_WinXP ${CMAKE_CURRENT_LIST_DIR}/YY-Thunks/objs/X86/YY_Thunks_for_WinXP.obj)
|
||||||
else()
|
else()
|
||||||
set(YY_Thunks_for_WinXP)
|
set(YY_Thunks_for_WinXP)
|
||||||
endif()
|
endif()
|
Loading…
x
Reference in New Issue
Block a user