This commit is contained in:
blueloveTH 2023-12-09 20:06:35 +08:00
parent e77331e57a
commit d995e28b85
2 changed files with 34 additions and 2 deletions

View File

@ -136,10 +136,9 @@ jobs:
- name: Compile Static Library
run: |
git clone https://github.com/leetal/ios-cmake --depth 1
cp ios-cmake/ios.toolchain.cmake .
mkdir build
cd build
cmake -G Xcode -DCMAKE_TOOLCHAIN_FILE=../ios.toolchain.cmake -DPLATFORM=OS64 .. -DPK_BUILD_STATIC_LIB=ON -DPK_USE_CJSON=ON -DPK_USE_BOX2D=ON -DCMAKE_BUILD_TYPE=Release
cmake -G Xcode -DCMAKE_TOOLCHAIN_FILE=../ios-cmake/ios.toolchain.cmake -DPLATFORM=OS64 .. -DPK_BUILD_STATIC_LIB=ON -DPK_USE_CJSON=ON -DPK_USE_BOX2D=ON -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
cd ..
mkdir -p output/ios

View File

@ -48,6 +48,39 @@ To compile it with your project, these flags must be set:
For emscripten, you must enable exceptions to make pocketpy work properly.
See https://emscripten.org/docs/porting/exceptions.html.
### Get prebuilt binaries
We have prebuilt binaries,
check them out on our [GitHub Actions](https://github.com/blueloveTH/pocketpy/actions/workflows/main.yml).
You can download an artifact there which contains the following files.
```
├── android
│   ├── arm64-v8a
│   │   └── libpocketpy.so
│   ├── armeabi-v7a
│   │   └── libpocketpy.so
│   └── x86_64
│   └── libpocketpy.so
├── ios
│   └── libpocketpy.a
├── linux
│   └── x86_64
│   ├── libpocketpy.so
│   └── main
├── macos
│   └── pocketpy.bundle
│   └── Contents
│   ├── Info.plist
│   └── MacOS
│   └── pocketpy
└── windows
└── x86_64
├── main.exe
└── pocketpy.dll
```
### Example
```cpp