mirror of
https://github.com/pocketpy/pocketpy
synced 2026-03-24 22:20:18 +00:00
Compare commits
No commits in common. "372325d6634ec9098ce3d99c16f94917b873e6a8" and "53fc4f36df4e4ee2a59799d384d14d1e2be83f83" have entirely different histories.
372325d663
...
53fc4f36df
@ -5,19 +5,6 @@ project(pocketpy)
|
|||||||
set(CMAKE_C_STANDARD 11)
|
set(CMAKE_C_STANDARD 11)
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
# use IPO
|
|
||||||
include(CheckIPOSupported)
|
|
||||||
check_ipo_supported(RESULT result)
|
|
||||||
|
|
||||||
if(result AND NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
|
||||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
|
||||||
else()
|
|
||||||
message(WARNING ">> IPO disabled. You will get very poor performance!!")
|
|
||||||
message(WARNING ">> IPO disabled. You will get very poor performance!!")
|
|
||||||
message(WARNING ">> IPO disabled. You will get very poor performance!!")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8 /jumptablerdata /GS-")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8 /jumptablerdata /GS-")
|
||||||
add_compile_options(/wd4267 /wd4244)
|
add_compile_options(/wd4267 /wd4244)
|
||||||
|
|||||||
@ -8,7 +8,7 @@ from typing import List, Dict
|
|||||||
assert os.system("python prebuild.py") == 0
|
assert os.system("python prebuild.py") == 0
|
||||||
|
|
||||||
ROOT = 'include/pocketpy'
|
ROOT = 'include/pocketpy'
|
||||||
PUBLIC_HEADERS = ['config.h', 'export.h', 'pocketpy.h']
|
PUBLIC_HEADERS = ['common/config.h', 'common/export.h', 'pocketpy.h']
|
||||||
|
|
||||||
COPYRIGHT = '''/*
|
COPYRIGHT = '''/*
|
||||||
* Copyright (c) 2024 blueloveTH
|
* Copyright (c) 2024 blueloveTH
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
python amalgamate.py
|
|
||||||
|
|
||||||
rm -rf build
|
rm -rf build
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
@ -14,11 +12,9 @@ cmake --build os64 --config Release
|
|||||||
cmake -B simulatorarm64 -G Xcode $FLAGS -DPLATFORM=SIMULATORARM64 ..
|
cmake -B simulatorarm64 -G Xcode $FLAGS -DPLATFORM=SIMULATORARM64 ..
|
||||||
cmake --build simulatorarm64 --config Release
|
cmake --build simulatorarm64 --config Release
|
||||||
|
|
||||||
HEADERS="../amalgamated/pocketpy.h"
|
|
||||||
|
|
||||||
xcodebuild -create-xcframework \
|
xcodebuild -create-xcframework \
|
||||||
-library os64/Release-iphoneos/libpocketpy.a -headers $HEADERS \
|
-library os64/Release-iphoneos/libpocketpy.a -headers ../include/pocketpy/pocketpy.h \
|
||||||
-library simulatorarm64/Release-iphonesimulator/libpocketpy.a -headers $HEADERS \
|
-library simulatorarm64/Release-iphonesimulator/libpocketpy.a -headers ../include/pocketpy/pocketpy.h \
|
||||||
-output pocketpy.xcframework
|
-output pocketpy.xcframework
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -31,6 +31,10 @@
|
|||||||
#define PK_DEBUG_GC_STATS 0
|
#define PK_DEBUG_GC_STATS 0
|
||||||
#define PK_DEBUG_COMPILER 0
|
#define PK_DEBUG_COMPILER 0
|
||||||
|
|
||||||
|
#ifndef PK_DEBUG_PRECOMPILED_EXEC
|
||||||
|
#define PK_DEBUG_PRECOMPILED_EXEC 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/*************** internal settings ***************/
|
/*************** internal settings ***************/
|
||||||
|
|
||||||
// This is the maximum size of the value stack in py_TValue units
|
// This is the maximum size of the value stack in py_TValue units
|
||||||
@ -5,8 +5,8 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "pocketpy/config.h"
|
#include "pocketpy/common/config.h"
|
||||||
#include "pocketpy/export.h"
|
#include "pocketpy/common/export.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user