From ed99ce351a38a32790166a8cd83f02376fc23231 Mon Sep 17 00:00:00 2001 From: scribam Date: Sun, 23 Jul 2023 09:45:57 +0200 Subject: [PATCH] deps: add kubridge fork as submodule for vita --- .gitmodules | 3 +++ CMakeLists.txt | 5 ++++- core/deps/kubridge | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 160000 core/deps/kubridge diff --git a/.gitmodules b/.gitmodules index 781e68c8b8..1e434c7bf3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -28,3 +28,6 @@ [submodule "core/deps/Spout"] path = core/deps/Spout url = https://github.com/vkedwardli/Spout2.git +[submodule "core/deps/kubridge"] + path = core/deps/kubridge + url = https://github.com/bythos14/kubridge.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e18f69f63..1b41797771 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -680,11 +680,14 @@ if(NOT LIBZIP_FOUND OR NINTENDO_SWITCH OR VITA) endif() if(VITA) + add_subdirectory(core/deps/kubridge) + add_dependencies(${PROJECT_NAME} kubridge_all) + target_include_directories(${PROJECT_NAME} PRIVATE core/deps/kubridge) # to override system kubridge.h if present target_link_libraries(${PROJECT_NAME} PRIVATE -Wl,--whole-archive pthread -Wl,--no-whole-archive stdc++ SDL2 - kubridge_stub + ${CMAKE_CURRENT_BINARY_DIR}/core/deps/kubridge/stubs/libkubridge_stub.a ScePgf_stub SceHid_stub SceAppMgr_stub diff --git a/core/deps/kubridge b/core/deps/kubridge new file mode 160000 index 0000000000..e689b9a866 --- /dev/null +++ b/core/deps/kubridge @@ -0,0 +1 @@ +Subproject commit e689b9a8665372cd222772f5c3bb178d19a98754