mirror of
https://github.com/Syping/dtranslatebot.git
synced 2024-12-03 10:50:25 +01:00
rename DPPAsExternalProject to DPPStaticBundle
- remove potential DPP AVX dependency
This commit is contained in:
parent
0dfb2cebe9
commit
de121beaac
4 changed files with 6 additions and 5 deletions
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
|||
- name: Cloning
|
||||
uses: actions/checkout@v4
|
||||
- name: Configure CMake
|
||||
run: cmake -B dtranslatebot-build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_EXE_LINKER_FLAGS="-static -lc++" -DWITH_DPP_AS_EXTERNAL_PROJECT=TRUE -GNinja
|
||||
run: cmake -B dtranslatebot-build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_EXE_LINKER_FLAGS="-static -lc++" -DWITH_DPP_STATIC_BUNDLE=TRUE -GNinja
|
||||
- name: Download and build OpenSSL
|
||||
run: cmake --build dtranslatebot-build --config ${{env.BUILD_TYPE}} --target OpenSSL
|
||||
- name: Download and build zlib
|
||||
|
|
|
@ -64,9 +64,9 @@ if (WITH_BOOST)
|
|||
endif()
|
||||
|
||||
# D++ Discord API Library for Bots
|
||||
option(WITH_DPP_AS_EXTERNAL_PROJECT "Build with DPP as External Project" OFF)
|
||||
if (WITH_DPP_AS_EXTERNAL_PROJECT)
|
||||
include(DPPAsExternalProject)
|
||||
option(WITH_DPP_STATIC_BUNDLE "Build with DPP Static Bundle" OFF)
|
||||
if (WITH_DPP_STATIC_BUNDLE)
|
||||
include(DPPStaticBundle)
|
||||
else()
|
||||
find_package(DPP REQUIRED)
|
||||
endif()
|
||||
|
|
|
@ -24,5 +24,5 @@ sudo cmake --install dtranslatebot-build
|
|||
|
||||
##### Optional CMake flags
|
||||
`-DWITH_BOOST=TRUE`
|
||||
`-DWITH_DPP_AS_EXTERNAL_PROJECT=TRUE`
|
||||
`-DWITH_DPP_STATIC_BUNDLE=TRUE`
|
||||
`-DWITH_SYSTEMD=TRUE`
|
||||
|
|
|
@ -77,6 +77,7 @@ ExternalProject_Add(DPP
|
|||
URL https://github.com/Syping/DPP/archive/dcd00001dfa145a03f80a0ad5317bc3e63252ead.tar.gz
|
||||
URL_HASH SHA256=42ff04b13a384591e819c100c4f40e12e31c8076769c168631eef85a8eeb0be3
|
||||
CMAKE_ARGS
|
||||
-DAVX_TYPE=AVX0
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
-DBUILD_VOICE_SUPPORT=OFF
|
||||
${CMAKE_PASSTHROUGH_ARGS}
|
Loading…
Reference in a new issue