mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 12:30:19 +00:00
...
This commit is contained in:
parent
1f7a7c8606
commit
c1a9d5c77a
@ -23,7 +23,7 @@ else()
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fexceptions -O2")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fexceptions -O2")
|
||||||
endif()
|
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)
|
include_directories(${CMAKE_CURRENT_LIST_DIR}/include)
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ project(test_c_bindings)
|
|||||||
|
|
||||||
set(CMAKE_C_STANDARD 11)
|
set(CMAKE_C_STANDARD 11)
|
||||||
|
|
||||||
option(PK_EXPORT_C_API "Export C API" ON)
|
|
||||||
option(PK_BUILD_STATIC_LIB "Build static library" ON)
|
option(PK_BUILD_STATIC_LIB "Build static library" ON)
|
||||||
|
|
||||||
add_subdirectory(
|
add_subdirectory(
|
||||||
|
@ -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.
|
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
|
## Basic Functions
|
||||||
|
|
||||||
#### `pkpy_vm* pkpy_vm_create(bool use_stdio, bool enable_os)`
|
#### `pkpy_vm* pkpy_vm_create(bool use_stdio, bool enable_os)`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user