Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@
[submodule "3rdparty/libjpeg-turbo"]
path = 3rdparty/libjpeg-turbo
url = https://github.com/libjpeg-turbo/libjpeg-turbo.git
[submodule "3rdparty/libusb-cmake"]
path = 3rdparty/libusb-cmake
url = https://github.com/libusb/libusb-cmake.git
1 change: 1 addition & 0 deletions 3rdparty/libusb-cmake
Submodule libusb-cmake added at bea656
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ if(NOT ANYPS5_USE_SYSTEM_DEPS)
endif()
endif()

set(LIBUSB_BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
set(LIBUSB_INSTALL_TARGETS OFF CACHE BOOL "" FORCE)
set(LIBUSB_BUILD_TESTING OFF CACHE BOOL "" FORCE)
set(LIBUSB_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(LIBUSB_ENABLE_UDEV OFF CACHE BOOL "" FORCE)
add_subdirectory(3rdparty/libusb-cmake EXCLUDE_FROM_ALL)
set_target_properties(usb-1.0 PROPERTIES POSITION_INDEPENDENT_CODE ON)

add_subdirectory(core/shader/recompiler)
add_subdirectory(core/Decoder/Jpeg)
add_subdirectory(core/Decoder/Png)
Expand Down
15 changes: 15 additions & 0 deletions core/libs/prx/libSceTextToSpeech/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
add_library(libSceTextToSpeech SHARED EXCLUDE_FROM_ALL Export.cpp)
target_include_directories(libSceTextToSpeech PRIVATE ${LIBS_INCLUDE_DIR})
configure_windows_unwind(libSceTextToSpeech)

if(BUILD_TESTING)
add_test_executable(guest_text_to_speech_tests ${LIBS_INCLUDE_DIR}/tests/GuestTextToSpeech.cpp)
target_include_directories(guest_text_to_speech_tests PRIVATE ${LIBS_INCLUDE_DIR})
target_link_libraries(guest_text_to_speech_tests PRIVATE libSceTextToSpeech libc)
configure_windows_unwind(guest_text_to_speech_tests)
add_test(NAME guest_text_to_speech COMMAND guest_text_to_speech_tests)
if(WIN32)
set_tests_properties(guest_text_to_speech PROPERTIES ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libSceTextToSpeech>")
endif()
endif()
61 changes: 61 additions & 0 deletions core/libs/prx/libSceTextToSpeech/Export.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#include <cstdint>
#include "prx/libc/include/General.hpp"

extern "C" {

int APS5_VABI sceTextToSpeechInitImpl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceTextToSpeechOpenImpl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceTextToSpeechSpeakImpl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceTextToSpeechSpeakContinuousImpl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceTextToSpeechGetAudioDataImpl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceTextToSpeechGetStatusImpl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceTextToSpeechPauseImpl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceTextToSpeechResumeImpl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceTextToSpeechCancelImpl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceTextToSpeechCloseImpl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceTextToSpeechTermImpl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

}
4 changes: 4 additions & 0 deletions core/libs/prx/libSceUsbd/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
add_library(libSceUsbd SHARED EXCLUDE_FROM_ALL Export.cpp)
target_include_directories(libSceUsbd PRIVATE ${LIBS_INCLUDE_DIR})
target_link_libraries(libSceUsbd PRIVATE usb-1.0)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_options(libSceUsbd PRIVATE LINKER:--exclude-libs,ALL)
endif()
configure_windows_unwind(libSceUsbd)

if(BUILD_TESTING)
Expand Down
Loading
Loading