Fix compile for Release and Debug in Windows
This commit is contained in:
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
@@ -30,3 +30,35 @@ jobs:
|
||||
name: kaizen-linux
|
||||
path: upload
|
||||
if-no-files-found: error
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Setup dependencies
|
||||
run: |
|
||||
vcpkg install sdl2[vulkan]:x64-windows
|
||||
- name: Setup Qt
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
arch: win64_msvc2019_64
|
||||
version: 6.6.*
|
||||
- name: Build Kaizen
|
||||
run: |
|
||||
cmake -B build -T clangcl -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release
|
||||
cmake --build build --config Release
|
||||
- name: Collect artifacts
|
||||
run: |
|
||||
mkdir upload
|
||||
cp build/src/frontend/Release/kaizen-qt.exe upload
|
||||
mkdir upload/resources
|
||||
cp resources/* upload/resources
|
||||
cp build/src/frontend/Release/SDL2.dll upload
|
||||
windeployqt --dir upload upload/kaizen-qt.exe
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: kaizen-windows
|
||||
path: upload
|
||||
if-no-files-found: error
|
||||
3
external/parallel-rdp/CMakeLists.txt
vendored
3
external/parallel-rdp/CMakeLists.txt
vendored
@@ -49,9 +49,6 @@ add_library(parallel-rdp
|
||||
|
||||
if(WIN32)
|
||||
target_compile_definitions(parallel-rdp PUBLIC VK_USE_PLATFORM_WIN32_KHR)
|
||||
if(MSVC)
|
||||
target_compile_options(parallel-rdp PUBLIC /EHa)
|
||||
endif()
|
||||
else()
|
||||
target_link_libraries(parallel-rdp PUBLIC dl)
|
||||
endif()
|
||||
|
||||
@@ -42,6 +42,7 @@ include_directories(
|
||||
option(RAPIDJSON_BUILD_DOC "Build rapidjson documentation." OFF)
|
||||
option(RAPIDJSON_BUILD_EXAMPLES "Build rapidjson examples." OFF)
|
||||
option(RAPIDJSON_BUILD_TESTS "Build rapidjson perftests and unittests." OFF)
|
||||
option(BUILD_SHARED_LIBS OFF)
|
||||
|
||||
add_subdirectory(../../external/discord_rpc discord_rpc)
|
||||
add_subdirectory(../../external/json json)
|
||||
|
||||
Reference in New Issue
Block a user