Adjusted the naming of the library in the Package file.
This commit is contained in:
@@ -1,66 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "2700"
|
||||
version = "1.7">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES"
|
||||
buildArchitectures = "Automatic">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "pdex"
|
||||
BuildableName = "pdex"
|
||||
ReferencedContainer = "container:">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
shouldAutocreateTestPlan = "YES">
|
||||
</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"
|
||||
queueDebuggingEnabled = "No">
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Release"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "pdex"
|
||||
BuildableName = "pdex"
|
||||
ReferencedContainer = "container:">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@@ -2,12 +2,12 @@ REPO_ROOT := $(shell git rev-parse --show-toplevel)
|
||||
PRODUCT := HelloPlaydate.pdx
|
||||
include $(REPO_ROOT)/Examples/swift.mk
|
||||
|
||||
# MARK: - Build PlayDate Wrapper Swift Module
|
||||
build/Modules/playdate_device.o: $(REPO_ROOT)/Sources/PlayDate/*.swift
|
||||
# MARK: - Build PlaydateKit Wrapper Swift Module
|
||||
build/Modules/playdate_device.o: $(REPO_ROOT)/Sources/PlaydateKit/*.swift
|
||||
@mkdir -p build/Modules
|
||||
$(SWIFT_EXEC) $(SWIFT_FLAGS) $(SWIFT_FLAGS_DEVICE) -c $^ -emit-module -o $@
|
||||
|
||||
build/Modules/playdate_simulator.o: $(REPO_ROOT)/Sources/PlayDate/*.swift
|
||||
build/Modules/playdate_simulator.o: $(REPO_ROOT)/Sources/PlaydateKit/*.swift
|
||||
@mkdir -p build/Modules
|
||||
$(SWIFT_EXEC) $(SWIFT_FLAGS) $(SWIFT_FLAGS_SIMULATOR) -c $^ -emit-module -o $@
|
||||
|
||||
@@ -47,4 +47,4 @@ run: simulator
|
||||
# when building with build.sh.
|
||||
clean: clean-swiftpm
|
||||
clean-swiftpm:
|
||||
-rm -rf .build
|
||||
-rm -rf .build
|
||||
|
||||
@@ -13,15 +13,20 @@ let package = Package(
|
||||
),
|
||||
],
|
||||
dependencies: [
|
||||
.package(path: "../.."),
|
||||
// The explicit name overrides the identity a path dependency
|
||||
// otherwise derives from the checkout directory's name.
|
||||
.package(
|
||||
name: "playdate-kit",
|
||||
path: "../.."
|
||||
),
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "HelloPlaydate",
|
||||
dependencies: [
|
||||
.product(
|
||||
name: "PlayDate",
|
||||
package: "play-date"
|
||||
name: "PlaydateKit",
|
||||
package: "playdate-kit"
|
||||
)
|
||||
]
|
||||
),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Hello Playdate
|
||||
|
||||
A minimal game built on the `play-date` bindings: a bouncing box, a crank-aimed needle, button handling, a system menu item, and an FPS counter.
|
||||
A minimal game built on the `playdate-kit` bindings: a bouncing box, a crank-aimed needle, button handling, a system menu item, and an FPS counter.
|
||||
|
||||
## Build and run (Playdate Simulator)
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
//
|
||||
// Game.swift
|
||||
// A minimal Playdate game built on the play-date Swift bindings: a
|
||||
// A minimal Playdate game built on the playdate-kit Swift bindings: a
|
||||
// bouncing box, a crank-aimed needle, button logging, and a system menu
|
||||
// item.
|
||||
//
|
||||
|
||||
import CPlaydate
|
||||
import PlayDate
|
||||
import PlaydateKit
|
||||
|
||||
@_cdecl("eventHandler")
|
||||
public func eventHandler(
|
||||
|
||||
Reference in New Issue
Block a user