mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +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
|
- name: Compile Static Library
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/leetal/ios-cmake --depth 1
|
git clone https://github.com/leetal/ios-cmake --depth 1
|
||||||
cp ios-cmake/ios.toolchain.cmake .
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd 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
|
cmake --build . --config Release
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p output/ios
|
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.
|
For emscripten, you must enable exceptions to make pocketpy work properly.
|
||||||
See https://emscripten.org/docs/porting/exceptions.html.
|
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
|
### Example
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user