This commit is contained in:
blueloveTH 2023-07-08 17:32:49 +08:00
parent 1f7a7c8606
commit c1a9d5c77a
3 changed files with 1 additions and 4 deletions

View File

@ -23,7 +23,7 @@ else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fexceptions -O2")
endif()
option(PK_EXPORT_C_API "Export C API" OFF)
option(PK_EXPORT_C_API "Export C API" ON)
include_directories(${CMAKE_CURRENT_LIST_DIR}/include)

View File

@ -4,7 +4,6 @@ project(test_c_bindings)
set(CMAKE_C_STANDARD 11)
option(PK_EXPORT_C_API "Export C API" ON)
option(PK_BUILD_STATIC_LIB "Build static library" ON)
add_subdirectory(

View File

@ -12,8 +12,6 @@ true if it succeeded false if it did not.
Special thanks for [@koltenpearson](https://github.com/koltenpearson) for bringing us the Lua Style API implementation.
!!!
Set option `PK_EXPORT_C_API` to `ON` to enable the C API in cmake build process.
## Basic Functions
#### `pkpy_vm* pkpy_vm_create(bool use_stdio, bool enable_os)`