Initial commit
This commit is contained in:
31
README.md
Normal file
31
README.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# xPlayer
|
||||
|
||||
### Build On MSYS2
|
||||
|
||||
```bash
|
||||
pacman -S ${MINGW_PACKAGE_PREFIX}-glfw ${MINGW_PACKAGE_PREFIX}-cc ${MINGW_PACKAGE_PREFIX}-pkgconf
|
||||
|
||||
cmake -B build -G 'MinGW Makefiles'
|
||||
cmake --build build
|
||||
```
|
||||
|
||||
* Depency for MinGW64
|
||||
|
||||
```bash
|
||||
curl -sL https://github.com/glfw/glfw/archive/master.tar.gz | tar zxf -
|
||||
cmake -B build -G 'MinGW Makefiles' -DCMAKE_INSTALL_PREFIX=/c/MinGW64 -DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS=OFF -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=OFF
|
||||
```
|
||||
|
||||
### 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
|
||||
(dkp-)pacman -S switch-glfw switch-curl
|
||||
|
||||
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