Update amalgamate.py

Update .gitignore

up
This commit is contained in:
blueloveTH-Mac 2023-02-05 03:48:45 -08:00 committed by blueloveTH
parent c14f5f60df
commit 593bf4befb
11 changed files with 84 additions and 127 deletions

View File

@ -60,18 +60,6 @@ jobs:
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
path: output path: output
build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- run: |
cd plugins/macos/pocketpy
mkdir -p output/macos
xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
cp build/Release/libpocketpy.a output/macos
- uses: actions/upload-artifact@v3
with:
path: plugins/macos/pocketpy/output
build_android: build_android:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
__pycache__/ __pycache__/
.vscode .vscode
.ipynb_checkpoints .ipynb_checkpoints
.DS_Store
src/main src/main
gmon.out gmon.out

View File

@ -59,7 +59,6 @@ os.system("g++ -o pocketpy amalgamated/main.cpp --std=c++17")
os.system("rm pocketpy") os.system("rm pocketpy")
os.system("cp amalgamated/pocketpy.h plugins/flutter/src/pocketpy.h") os.system("cp amalgamated/pocketpy.h plugins/flutter/src/pocketpy.h")
os.system("cp amalgamated/pocketpy.h plugins/macos/pocketpy/pocketpy/pocketpy.h")
unity_ios_header = 'plugins/unity/PocketPyUnityPlugin/Assets/PocketPy/Plugins/iOS/pocketpy.h' unity_ios_header = 'plugins/unity/PocketPyUnityPlugin/Assets/PocketPy/Plugins/iOS/pocketpy.h'
os.system(f'cp amalgamated/pocketpy.h "{unity_ios_header}"') os.system(f'cp amalgamated/pocketpy.h "{unity_ios_header}"')

View File

@ -1,2 +1 @@
build/ build/
.DS_Store

View File

@ -7,18 +7,17 @@
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
0869DA4F298F9AD300B00FD8 /* pocketpy.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0869DA4E298F9AD300B00FD8 /* pocketpy.cpp */; }; 08F367CA298FCDB100C97415 /* pocketpy.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 08F367C9298FCDB100C97415 /* pocketpy.cpp */; };
0869DA56298F9C5800B00FD8 /* pocketpy.h in Headers */ = {isa = PBXBuildFile; fileRef = 0869DA55298F9C5800B00FD8 /* pocketpy.h */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
0869DA47298F9AD300B00FD8 /* libpocketpy.a */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libpocketpy.a; sourceTree = BUILT_PRODUCTS_DIR; }; 08F367C0298FCCF000C97415 /* pocketpy.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = pocketpy.bundle; sourceTree = BUILT_PRODUCTS_DIR; };
0869DA4E298F9AD300B00FD8 /* pocketpy.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = pocketpy.cpp; sourceTree = "<group>"; }; 08F367C9298FCDB100C97415 /* pocketpy.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = pocketpy.cpp; sourceTree = "<group>"; };
0869DA55298F9C5800B00FD8 /* pocketpy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pocketpy.h; sourceTree = "<group>"; }; 08F367CB298FCDC600C97415 /* pocketpy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pocketpy.h; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
0869DA45298F9AD300B00FD8 /* Frameworks */ = { 08F367BD298FCCF000C97415 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase; isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
@ -28,52 +27,33 @@
/* End PBXFrameworksBuildPhase section */ /* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */ /* Begin PBXGroup section */
0869DA3E298F9AD300B00FD8 = { 08F367B7298FCCF000C97415 = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
0869DA49298F9AD300B00FD8 /* pocketpy */, 08F367CB298FCDC600C97415 /* pocketpy.h */,
0869DA48298F9AD300B00FD8 /* Products */, 08F367C9298FCDB100C97415 /* pocketpy.cpp */,
08F367C1298FCCF000C97415 /* Products */,
); );
sourceTree = "<group>"; sourceTree = "<group>";
}; };
0869DA48298F9AD300B00FD8 /* Products */ = { 08F367C1298FCCF000C97415 /* Products */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
0869DA47298F9AD300B00FD8 /* libpocketpy.a */, 08F367C0298FCCF000C97415 /* pocketpy.bundle */,
); );
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
0869DA49298F9AD300B00FD8 /* pocketpy */ = {
isa = PBXGroup;
children = (
0869DA55298F9C5800B00FD8 /* pocketpy.h */,
0869DA4E298F9AD300B00FD8 /* pocketpy.cpp */,
);
path = pocketpy;
sourceTree = "<group>";
};
/* End PBXGroup section */ /* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
0869DA43298F9AD300B00FD8 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
0869DA56298F9C5800B00FD8 /* pocketpy.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */ /* Begin PBXNativeTarget section */
0869DA46298F9AD300B00FD8 /* pocketpy */ = { 08F367BF298FCCF000C97415 /* pocketpy */ = {
isa = PBXNativeTarget; isa = PBXNativeTarget;
buildConfigurationList = 0869DA52298F9AD300B00FD8 /* Build configuration list for PBXNativeTarget "pocketpy" */; buildConfigurationList = 08F367C4298FCCF000C97415 /* Build configuration list for PBXNativeTarget "pocketpy" */;
buildPhases = ( buildPhases = (
0869DA43298F9AD300B00FD8 /* Headers */, 08F367BC298FCCF000C97415 /* Sources */,
0869DA44298F9AD300B00FD8 /* Sources */, 08F367BD298FCCF000C97415 /* Frameworks */,
0869DA45298F9AD300B00FD8 /* Frameworks */, 08F367BE298FCCF000C97415 /* Resources */,
); );
buildRules = ( buildRules = (
); );
@ -81,53 +61,64 @@
); );
name = pocketpy; name = pocketpy;
productName = pocketpy; productName = pocketpy;
productReference = 0869DA47298F9AD300B00FD8 /* libpocketpy.a */; productReference = 08F367C0298FCCF000C97415 /* pocketpy.bundle */;
productType = "com.apple.product-type.library.dynamic"; productType = "com.apple.product-type.bundle";
}; };
/* End PBXNativeTarget section */ /* End PBXNativeTarget section */
/* Begin PBXProject section */ /* Begin PBXProject section */
0869DA3F298F9AD300B00FD8 /* Project object */ = { 08F367B8298FCCF000C97415 /* Project object */ = {
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
BuildIndependentTargetsInParallel = 1; BuildIndependentTargetsInParallel = 1;
LastUpgradeCheck = 1330; LastUpgradeCheck = 1330;
TargetAttributes = { TargetAttributes = {
0869DA46298F9AD300B00FD8 = { 08F367BF298FCCF000C97415 = {
CreatedOnToolsVersion = 13.3; CreatedOnToolsVersion = 13.3;
}; };
}; };
}; };
buildConfigurationList = 0869DA42298F9AD300B00FD8 /* Build configuration list for PBXProject "pocketpy" */; buildConfigurationList = 08F367BB298FCCF000C97415 /* Build configuration list for PBXProject "pocketpy" */;
compatibilityVersion = "Xcode 13.0"; compatibilityVersion = "Xcode 13.0";
developmentRegion = en; developmentRegion = en;
hasScannedForEncodings = 0; hasScannedForEncodings = 0;
knownRegions = ( knownRegions = (
en, en,
Base,
); );
mainGroup = 0869DA3E298F9AD300B00FD8; mainGroup = 08F367B7298FCCF000C97415;
productRefGroup = 0869DA48298F9AD300B00FD8 /* Products */; productRefGroup = 08F367C1298FCCF000C97415 /* Products */;
projectDirPath = ""; projectDirPath = "";
projectRoot = ""; projectRoot = "";
targets = ( targets = (
0869DA46298F9AD300B00FD8 /* pocketpy */, 08F367BF298FCCF000C97415 /* pocketpy */,
); );
}; };
/* End PBXProject section */ /* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
08F367BE298FCCF000C97415 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */
0869DA44298F9AD300B00FD8 /* Sources */ = { 08F367BC298FCCF000C97415 /* Sources */ = {
isa = PBXSourcesBuildPhase; isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
0869DA4F298F9AD300B00FD8 /* pocketpy.cpp in Sources */, 08F367CA298FCDB100C97415 /* pocketpy.cpp in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
/* End PBXSourcesBuildPhase section */ /* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */ /* Begin XCBuildConfiguration section */
0869DA50298F9AD300B00FD8 /* Debug */ = { 08F367C2298FCCF000C97415 /* Debug */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO; ALWAYS_SEARCH_USER_PATHS = NO;
@ -171,7 +162,7 @@
"DEBUG=1", "DEBUG=1",
"$(inherited)", "$(inherited)",
); );
GCC_WARN_64_TO_32_BIT_CONVERSION = NO; GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
@ -180,12 +171,12 @@
MACOSX_DEPLOYMENT_TARGET = 12.3; MACOSX_DEPLOYMENT_TARGET = 12.3;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = NO; ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx; SDKROOT = macosx;
}; };
name = Debug; name = Debug;
}; };
0869DA51298F9AD300B00FD8 /* Release */ = { 08F367C3298FCCF000C97415 /* Release */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO; ALWAYS_SEARCH_USER_PATHS = NO;
@ -223,7 +214,7 @@
ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11; GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES; GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = NO; GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
@ -232,81 +223,84 @@
MACOSX_DEPLOYMENT_TARGET = 12.3; MACOSX_DEPLOYMENT_TARGET = 12.3;
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = NO;
SDKROOT = macosx; SDKROOT = macosx;
}; };
name = Release; name = Release;
}; };
0869DA53298F9AD300B00FD8 /* Debug */ = { 08F367C5298FCCF000C97415 /* Debug */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_DEBUG_INFORMATION_LEVEL = "line-tables-only"; CLANG_ENABLE_CPP_STATIC_DESTRUCTORS = NO;
CLANG_WARN_DOCUMENTATION_COMMENTS = NO; CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = A7A93GC9AY; DEVELOPMENT_TEAM = A7A93GC9AY;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
EXECUTABLE_EXTENSION = a;
EXECUTABLE_PREFIX = lib;
GCC_ENABLE_CPP_EXCEPTIONS = YES;
GCC_ENABLE_CPP_RTTI = NO; GCC_ENABLE_CPP_RTTI = NO;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
GCC_SYMBOLS_PRIVATE_EXTERN = YES; GENERATE_INFOPLIST_FILE = YES;
MACH_O_TYPE = staticlib; INFOPLIST_KEY_NSHumanReadableCopyright = "";
INFOPLIST_KEY_NSPrincipalClass = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.bl.pocketpy;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES; SKIP_INSTALL = YES;
STRIP_STYLE = all; SWIFT_EMIT_LOC_STRINGS = YES;
WRAPPER_EXTENSION = bundle;
}; };
name = Debug; name = Debug;
}; };
0869DA54298F9AD300B00FD8 /* Release */ = { 08F367C6298FCCF000C97415 /* Release */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_DEBUG_INFORMATION_LEVEL = "line-tables-only"; CLANG_ENABLE_CPP_STATIC_DESTRUCTORS = NO;
CLANG_WARN_DOCUMENTATION_COMMENTS = NO; CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = A7A93GC9AY; DEVELOPMENT_TEAM = A7A93GC9AY;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
EXECUTABLE_EXTENSION = a;
EXECUTABLE_PREFIX = lib;
GCC_ENABLE_CPP_EXCEPTIONS = YES;
GCC_ENABLE_CPP_RTTI = NO; GCC_ENABLE_CPP_RTTI = NO;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
GCC_SYMBOLS_PRIVATE_EXTERN = YES; GENERATE_INFOPLIST_FILE = YES;
MACH_O_TYPE = staticlib; INFOPLIST_KEY_NSHumanReadableCopyright = "";
INFOPLIST_KEY_NSPrincipalClass = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.bl.pocketpy;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES; SKIP_INSTALL = YES;
STRIP_STYLE = all; SWIFT_EMIT_LOC_STRINGS = YES;
WRAPPER_EXTENSION = bundle;
}; };
name = Release; name = Release;
}; };
/* End XCBuildConfiguration section */ /* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */ /* Begin XCConfigurationList section */
0869DA42298F9AD300B00FD8 /* Build configuration list for PBXProject "pocketpy" */ = { 08F367BB298FCCF000C97415 /* Build configuration list for PBXProject "pocketpy" */ = {
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
0869DA50298F9AD300B00FD8 /* Debug */, 08F367C2298FCCF000C97415 /* Debug */,
0869DA51298F9AD300B00FD8 /* Release */, 08F367C3298FCCF000C97415 /* Release */,
); );
defaultConfigurationIsVisible = 0; defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release; defaultConfigurationName = Release;
}; };
0869DA52298F9AD300B00FD8 /* Build configuration list for PBXNativeTarget "pocketpy" */ = { 08F367C4298FCCF000C97415 /* Build configuration list for PBXNativeTarget "pocketpy" */ = {
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
0869DA53298F9AD300B00FD8 /* Debug */, 08F367C5298FCCF000C97415 /* Debug */,
0869DA54298F9AD300B00FD8 /* Release */, 08F367C6298FCCF000C97415 /* Release */,
); );
defaultConfigurationIsVisible = 0; defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release; defaultConfigurationName = Release;
}; };
/* End XCConfigurationList section */ /* End XCConfigurationList section */
}; };
rootObject = 0869DA3F298F9AD300B00FD8 /* Project object */; rootObject = 08F367B8298FCCF000C97415 /* Project object */;
} }

View File

@ -14,8 +14,8 @@
buildForAnalyzing = "YES"> buildForAnalyzing = "YES">
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "0869DA46298F9AD300B00FD8" BlueprintIdentifier = "08F367BF298FCCF000C97415"
BuildableName = "libpocketpy.dylib" BuildableName = "pocketpy.bundle"
BlueprintName = "pocketpy" BlueprintName = "pocketpy"
ReferencedContainer = "container:pocketpy.xcodeproj"> ReferencedContainer = "container:pocketpy.xcodeproj">
</BuildableReference> </BuildableReference>
@ -50,8 +50,8 @@
<MacroExpansion> <MacroExpansion>
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "0869DA46298F9AD300B00FD8" BlueprintIdentifier = "08F367BF298FCCF000C97415"
BuildableName = "libpocketpy.dylib" BuildableName = "pocketpy.bundle"
BlueprintName = "pocketpy" BlueprintName = "pocketpy"
ReferencedContainer = "container:pocketpy.xcodeproj"> ReferencedContainer = "container:pocketpy.xcodeproj">
</BuildableReference> </BuildableReference>

View File

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "DEAD0CFE-89BD-4847-A917-C0886C632CEA"
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "556C1079-87CE-44CE-AE98-DBACEB8A16F3"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "pocketpy/pocketpy.h"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "1"
endingLineNumber = "1"
landmarkName = "unknown"
landmarkType = "0">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>

View File

@ -12,7 +12,7 @@
</dict> </dict>
<key>SuppressBuildableAutocreation</key> <key>SuppressBuildableAutocreation</key>
<dict> <dict>
<key>0869DA46298F9AD300B00FD8</key> <key>08F367BF298FCCF000C97415</key>
<dict> <dict>
<key>primary</key> <key>primary</key>
<true/> <true/>