mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +08:00
5410a48a58
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com> Co-authored-by: dumganhar <dumganhar@gmail.com> Co-authored-by: mmyduckx <308303735@qq.com> Co-authored-by: Patrice Jiang <397136899@qq.com> Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
14 lines
413 B
Bash
Executable File
14 lines
413 B
Bash
Executable File
#!/bin/bash
|
|
|
|
mkdir -p build
|
|
cp utils/CMakeLists.header.txt build/CMakeLists.txt
|
|
cmake -Sbuild -Bbuild -DCC_USE_GLES2=OFF -DCC_USE_VULKAN=OFF -DCC_USE_GLES3=OFF -DCC_USE_METAL=ON \
|
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
|
-DUSE_PHYSICS_PHYSX=ON \
|
|
-DCMAKE_OSX_SYSROOT=iphoneos \
|
|
-DCMAKE_SYSTEM_NAME=iOS \
|
|
-GXcode
|
|
if [[ -f build/compile_commands.json ]]; then
|
|
cp build/compile_commands.json .
|
|
fi
|