generated from LizardByte/template-base
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b45b06
commit fd4d160
Showing
20 changed files
with
628 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,37 @@ | ||
# Moonlight-XboxOG | ||
Port of Moonlight for the Original Xbox. Unlikely to ever actually work. Do NOT use. | ||
|
||
|
||
## Build | ||
|
||
### Pre Build | ||
|
||
1. Install nxdk prerequisites. Then run the following from mingw64 or bash shell: | ||
|
||
```bash | ||
nxdk_dir="$(pwd)/third-party/nxdk" | ||
eval "$(${nxdk_dir}/bin/activate -s)" | ||
cd "${nxdk_dir}" | ||
make NXDK_ONLY=y | ||
make tools | ||
``` | ||
|
||
### Configure | ||
|
||
1. Create build directory | ||
|
||
```bash | ||
mkdir -p build | ||
``` | ||
|
||
2. Configure the project | ||
|
||
```bash | ||
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE="${nxdk_dir}/share/toolchain-nxdk.cmake" | ||
``` | ||
|
||
### Build | ||
|
||
```bash | ||
cmake --build build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
if(NOT TARGET NXDK::NXDK) | ||
add_library(nxdk STATIC IMPORTED) | ||
set_target_properties( | ||
nxdk | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libnxdk.lib" | ||
) | ||
|
||
add_library(nxdk_automount_d STATIC IMPORTED) | ||
set_target_properties( | ||
nxdk_automount_d | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libnxdk_automount_d.lib" | ||
) | ||
|
||
add_library(nxdk_hal STATIC IMPORTED) | ||
set_target_properties( | ||
nxdk_hal | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libnxdk_hal.lib" | ||
) | ||
|
||
add_library(nxdk_net STATIC IMPORTED) | ||
set_target_properties( | ||
nxdk_net | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libnxdk_net.lib" | ||
) | ||
|
||
add_library(nxdk_usb STATIC IMPORTED) | ||
set_target_properties( | ||
nxdk_usb | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/nxdk_usb.lib" | ||
) | ||
|
||
add_library(pbkit STATIC IMPORTED) | ||
set_target_properties( | ||
pbkit | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libpbkit.lib" | ||
) | ||
|
||
add_library(pdclib STATIC IMPORTED) | ||
set_target_properties( | ||
pdclib | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libpdclib.lib" | ||
) | ||
|
||
add_library(winapi STATIC IMPORTED) | ||
set_target_properties( | ||
winapi | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libwinapi.lib" | ||
) | ||
|
||
add_library(winmm STATIC IMPORTED) | ||
set_target_properties( | ||
winmm | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/winmm.lib" | ||
) | ||
|
||
add_library(xboxrt STATIC IMPORTED) | ||
set_target_properties( | ||
xboxrt | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libxboxrt.lib" | ||
) | ||
|
||
add_library(zlib STATIC IMPORTED) | ||
set_target_properties( | ||
zlib | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libzlib.lib" | ||
) | ||
|
||
add_library(NXDK::NXDK INTERFACE IMPORTED) | ||
target_link_libraries( | ||
NXDK::NXDK | ||
INTERFACE | ||
nxdk | ||
nxdk_automount_d | ||
nxdk_hal | ||
nxdk_net | ||
nxdk_usb | ||
pbkit | ||
pdclib | ||
winapi | ||
winmm | ||
xboxrt | ||
zlib | ||
) | ||
endif() | ||
|
||
if(NOT TARGET NXDK::NXDK_CXX) | ||
|
||
add_library(nxdk_cxx STATIC IMPORTED) | ||
set_target_properties( | ||
nxdk_cxx | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libc++.lib" | ||
) | ||
|
||
add_library(NXDK::NXDK_CXX INTERFACE IMPORTED) | ||
target_link_libraries(NXDK::NXDK_CXX INTERFACE nxdk_cxx) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if(NOT TARGET NXDK::SDL2) | ||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(SDL2 REQUIRED IMPORTED_TARGET sdl2) | ||
|
||
add_library(NXDK::SDL2 ALIAS PkgConfig::SDL2) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
if (NOT TARGET NXDK::SDL2_Image) | ||
|
||
add_library(nxdk_sdl2_image STATIC IMPORTED) | ||
set_target_properties( | ||
nxdk_sdl2_image | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libSDL2_image.lib" | ||
) | ||
|
||
add_library(nxdk_jpeg STATIC IMPORTED) | ||
set_target_properties( | ||
nxdk_jpeg | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libjpeg.lib" | ||
) | ||
|
||
add_library(nxdk_png STATIC IMPORTED) | ||
set_target_properties( | ||
nxdk_png | ||
PROPERTIES | ||
IMPORTED_LOCATION "${NXDK_DIR}/lib/libpng.lib" | ||
) | ||
|
||
add_library(NXDK::SDL2_Image INTERFACE IMPORTED) | ||
target_link_libraries( | ||
NXDK::SDL2_Image | ||
INTERFACE | ||
nxdk_sdl2_image | ||
nxdk_jpeg | ||
nxdk_png | ||
) | ||
target_include_directories( | ||
NXDK::SDL2_Image | ||
SYSTEM INTERFACE | ||
"${NXDK_DIR}/lib/sdl/SDL2_image" | ||
) | ||
endif () |
Oops, something went wrong.