forked from hbang/NewTerm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[makefile] switch to building with Xcode (RIP Theos)
- Loading branch information
Showing
5 changed files
with
152 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
archs: [ armv7, armv7s, arm64 ] | ||
platform: ios | ||
install-name: /System/Library/PrivateFrameworks/Preferences.framework/Preferences | ||
current-version: 1 | ||
compatibility-version: 1 | ||
exports: | ||
- archs: [ armv7, armv7s, arm64 ] | ||
objc-classes: [ _PSSpecifier, _PSRootController ] | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,25 @@ | ||
ifeq ($(PLATFORM),mac) | ||
export TARGET = uikitformac:latest:13.0 | ||
else | ||
export TARGET = iphone:latest:10.0 | ||
export TARGET = iphone:13.2:10.0 | ||
export ARCHS = arm64 | ||
LINK_CEPHEI := 1 | ||
endif | ||
|
||
PROJECT_DIR := $(PWD)/NewTerm | ||
INCLUDES := -I$(PROJECT_DIR) -I$(PROJECT_DIR)/External -I$(PROJECT_DIR)/External/ncurses | ||
|
||
export ADDITIONAL_CFLAGS = -fobjc-arc $(INCLUDES) | ||
export ADDITIONAL_SWIFTFLAGS = $(INCLUDES) | ||
INSTALL_TARGET_PROCESSES = NewTerm | ||
|
||
include $(THEOS)/makefiles/common.mk | ||
|
||
APPLICATION_NAME = NewTerm | ||
|
||
NewTerm_FILES = $(shell find NewTerm -name \*.x -or -name \*.m -or -name \*.swift) | ||
NewTerm_SWIFT_BRIDGING_HEADER = $(PROJECT_DIR)/SupportingFiles/BridgingHeader.h | ||
NewTerm_LIBRARIES = curses | ||
NewTerm_CODESIGN_FLAGS = -S$(PROJECT_DIR)/entitlements.plist | ||
|
||
ifeq ($(LINK_CEPHEI),1) | ||
ADDITIONAL_CFLAGS += -DLINK_CEPHEI | ||
ADDITIONAL_SWIFTFLAGS += -DLINK_CEPHEI -Xcc -DLINK_CEPHEI | ||
XCODEPROJ_NAME = NewTerm | ||
|
||
NewTerm_PRIVATE_FRAMEWORKS = Preferences | ||
NewTerm_EXTRA_FRAMEWORKS = Cephei CepheiUI | ||
endif | ||
NewTerm_XCODEFLAGS = LINK_CEPHEI=-DLINK_CEPHEI CEPHEI_LDFLAGS="-framework Cephei -framework Preferences" | ||
NewTerm_XCODE_SCHEME = NewTerm (iOS) | ||
NewTerm_CODESIGN_FLAGS = -SiOS/entitlements.plist | ||
|
||
include $(THEOS_MAKE_PATH)/application.mk | ||
include $(THEOS_MAKE_PATH)/xcodeproj.mk | ||
|
||
ifeq ($(LINK_CEPHEI),1) | ||
SUBPROJECTS = prefs | ||
|
||
include $(THEOS_MAKE_PATH)/aggregate.mk | ||
endif | ||
|
||
after-stage:: | ||
ifeq ($(NEWTERM_EMBEDDED),1) | ||
mkdir -p $(THEOS_STAGING_DIR)/Applications/NewTerm.app/Frameworks | ||
cp -r $(THEOS_LIBRARY_PATH)/Cephei{,Prefs,UI}.framework $(THEOS_STAGING_DIR)/Applications/NewTerm.app/Frameworks | ||
endif | ||
|
||
after-install:: | ||
ifneq ($(XCODE),1) | ||
ifeq ($(PLATFORM),mac) | ||
install.exec "open /Applications/NewTerm.app" | ||
else | ||
install.exec "killall NewTerm; sleep 0.1; sblaunch ws.hbang.Terminal" | ||
endif | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
NewTerm.xcodeproj/xcshareddata/xcschemes/NewTerm (macOS).xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1120" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "CFBB966022B546DA00585BE6" | ||
BuildableName = "NewTerm.app" | ||
BlueprintName = "NewTerm (iOS)" | ||
ReferencedContainer = "container:NewTerm.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "CFBB966022B546DA00585BE6" | ||
BuildableName = "NewTerm.app" | ||
BlueprintName = "NewTerm (iOS)" | ||
ReferencedContainer = "container:NewTerm.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "CFBB966022B546DA00585BE6" | ||
BuildableName = "NewTerm.app" | ||
BlueprintName = "NewTerm (iOS)" | ||
ReferencedContainer = "container:NewTerm.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
Oops, something went wrong.