diff --git a/README.md b/README.md index 043b6f12..a6c89d29 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ Please see https://pocketpy.dev for details or try [Live Demo](https://pocketpy. Download the `pocketpy.h` on our [GitHub Release](https://github.com/blueloveTH/pocketpy/releases) page. And `#include` it in your project. +You can also use cmake to build it from source. See CMakeLists.txt for details. +These variables can be set to control the build process: ++ `PK_BUILD_EXE` - Build the executable file ++ `PK_BUILD_STATIC_LIB` - Build the static library ++ `PK_BUILD_SHARED_LIB` - Build the shared library + If you are working with [Unity Engine](https://unity.com/), you can download our plugin [PocketPython](https://assetstore.unity.com/packages/tools/visual-scripting/pocketpy-241120) on the Asset Store. ### Compile flags diff --git a/docs/quick-start/installation.md b/docs/quick-start/installation.md index d911c93b..c128da97 100644 --- a/docs/quick-start/installation.md +++ b/docs/quick-start/installation.md @@ -7,6 +7,12 @@ order: 100 Download the `pocketpy.h` on our [GitHub Release](https://github.com/blueloveTH/pocketpy/releases) page. And `#include` it in your project. +You can also use cmake to build it from source. See CMakeLists.txt for details. +These variables can be set to control the build process: ++ `PK_BUILD_EXE` - Build the executable file ++ `PK_BUILD_STATIC_LIB` - Build the static library ++ `PK_BUILD_SHARED_LIB` - Build the shared library + ### Compile flags To compile it with your project, these flags must be set: