-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmake_ps.bat
25 lines (21 loc) · 984 Bytes
/
make_ps.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
::# From https://github.com/Tencent/puerts/issues/1796 Author:NiceTry12138
set CUR_DIR=%~dp0
cd %CUR_DIR%
del /s/q buildPS5
mkdir buildPS5 & pushd buildPS5
cmake -DCMAKE_C_COMPILER="%SCE_PROSPERO_SDK_DIR%/host_tools/bin/prospero-clang.exe" ^
-DCMAKE_CXX_COMPILER="%SCE_PROSPERO_SDK_DIR%/host_tools/bin/prospero-clang.exe" ^
-DCMAKE_AS="%SCE_PROSPERO_SDK_DIR%/host_tools/bin/prospero-clang.exe" ^
-DCMAKE_AR="%SCE_PROSPERO_SDK_DIR%/host_tools/bin/prospero-llvm-ar.exe" ^
-DCMAKE_LINKER="%SCE_PROSPERO_SDK_DIR%/host_tools/bin/prospero-lld.exe" ^
-DCMAKE_NM="%SCE_PROSPERO_SDK_DIR%/host_tools/bin/prospero-llvm-nm.exe" ^
-DCMAKE_OBJCOPY="%SCE_PROSPERO_SDK_DIR%/host_tools/bin/prospero-llvm-objcopy.exe" ^
-DCMAKE_OBJDUMP="%SCE_PROSPERO_SDK_DIR%/host_tools/bin/prospero-llvm-objdump.exe" ^
-G "Unix Makefiles" ^
-DCMAKE_SYSTEM_NAME=Playstation ^
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ^
-DPS_PLATFORM=1 ^
..
popd
cmake --build buildPS5 --config Release
pause