Initial commit
This commit is contained in:
21
README.md
Normal file
21
README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# xplayer
|
||||
|
||||
### Build On MSYS2
|
||||
|
||||
```bash
|
||||
pacman -S ${MINGW_PACKAGE_PREFIX}-SDL2 ${MINGW_PACKAGE_PREFIX}-cc
|
||||
|
||||
cmake -B build -G 'MSYS Makefiles'
|
||||
cmake --build build
|
||||
```
|
||||
|
||||
### Building for Switch
|
||||
|
||||
To build for Switch, a standard development environment must first be set up. In order to do so, [refer to the Getting Started guide](https://devkitpro.org/wiki/Getting_Started).
|
||||
|
||||
```bash
|
||||
cmake -B build -DCMAKE_TOOLCHAIN_FILE="$DEVKITPRO/cmake/Switch.cmake"
|
||||
make -C build xplayer_nro -j$(nproc)
|
||||
# for debug
|
||||
nxlink -a 192.168.3.97 -s build/xplayer.nro --args https://pan.3m3m.top/api/public/dl/Cwg6sGXL
|
||||
```
|
||||
Reference in New Issue
Block a user