mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 03:37:47 +00:00
Use libphysis as a git submodule
This commit is contained in:
parent
b5dde48cf1
commit
ccb1502e33
3 changed files with 7 additions and 11 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +1,6 @@
|
||||||
[submodule "external/libcotp"]
|
[submodule "external/libcotp"]
|
||||||
path = external/libcotp
|
path = external/libcotp
|
||||||
url = https://github.com/redstrate/libcotp.git
|
url = https://github.com/redstrate/libcotp.git
|
||||||
|
[submodule "external/libphysis"]
|
||||||
|
path = external/libphysis
|
||||||
|
url = https://git.sr.ht/~redstrate/libphysis
|
||||||
|
|
14
external/CMakeLists.txt
vendored
14
external/CMakeLists.txt
vendored
|
@ -8,21 +8,13 @@ add_subdirectory(libcotp)
|
||||||
|
|
||||||
find_package(Corrosion REQUIRED)
|
find_package(Corrosion REQUIRED)
|
||||||
|
|
||||||
include(FetchContent)
|
corrosion_import_crate(MANIFEST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libphysis/Cargo.toml
|
||||||
|
NO_DEFAULT_FEATURES
|
||||||
FetchContent_Declare(
|
|
||||||
libphysis
|
|
||||||
GIT_REPOSITORY https://git.sr.ht/~redstrate/libphysis
|
|
||||||
GIT_TAG main
|
|
||||||
)
|
|
||||||
FetchContent_MakeAvailable(libphysis)
|
|
||||||
|
|
||||||
corrosion_import_crate(MANIFEST_PATH ${libphysis_SOURCE_DIR}/Cargo.toml
|
|
||||||
FEATURES game_install)
|
FEATURES game_install)
|
||||||
|
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
pkg_check_modules(UNSHIELD REQUIRED IMPORTED_TARGET libunshield)
|
pkg_check_modules(UNSHIELD REQUIRED IMPORTED_TARGET libunshield)
|
||||||
|
|
||||||
target_include_directories(physis INTERFACE ${libphysis_SOURCE_DIR}/target/public)
|
target_include_directories(physis INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/libphysis/target/public)
|
||||||
target_link_libraries(physis INTERFACE ${UNSHIELD_LIBRARIES})
|
target_link_libraries(physis INTERFACE ${UNSHIELD_LIBRARIES})
|
||||||
target_link_directories(physis INTERFACE ${UNSHIELD_LIBRARY_DIRS})
|
target_link_directories(physis INTERFACE ${UNSHIELD_LIBRARY_DIRS})
|
||||||
|
|
1
external/libphysis
vendored
Submodule
1
external/libphysis
vendored
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 89d887dbf2cb17bcd412e895e708e8c1e734e3db
|
Loading…
Add table
Reference in a new issue