mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
...
This commit is contained in:
parent
e77331e57a
commit
d995e28b85
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user