mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
remove python3 deps
This commit is contained in:
parent
020af4aa38
commit
92705058b2
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,7 +17,6 @@ web/lib
|
||||
|
||||
plugins/unity/
|
||||
plugins/macos/pocketpy/pocketpy.*
|
||||
include/pocketpy/_generated.h
|
||||
main.exe
|
||||
main.obj
|
||||
pocketpy.exp
|
||||
|
@ -5,23 +5,6 @@ project(pocketpy)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
# if cmake < 3.12, find_package(Python3) will not work, we directly use python3
|
||||
if (CMAKE_VERSION VERSION_LESS 3.12)
|
||||
set(Python3_EXECUTABLE python3)
|
||||
else()
|
||||
find_package(Python3 COMPONENTS Interpreter)
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND ${Python3_EXECUTABLE} prebuild.py
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
||||
RESULT_VARIABLE PREBUILD_RESULT
|
||||
)
|
||||
|
||||
if(NOT ${PREBUILD_RESULT} EQUAL 0)
|
||||
message(FATAL_ERROR "prebuild.py: ${PREBUILD_RESULT}")
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /utf-8 /O2")
|
||||
else()
|
||||
|
24
include/pocketpy/_generated.h
Normal file
24
include/pocketpy/_generated.h
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user