Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added Xcode project to create a static library for BhWax. The library…
…, libhotwax.a is universal and will work on armv6, armv7 devices on in the iOS simulator (not the Gideros desktop player). Drop the library into your player or app project and set the "Linking" option, "Other Linker Flags" to -all_load. This forces the library to be loaded into the executable.

There is a shell script "build.sh" that can be used to rebuild libhotwax.a from the source files if you need to do this.
  • Loading branch information
Andy Bower committed Oct 23, 2012
1 parent 53bb256 commit 8b6f88d
Show file tree
Hide file tree
Showing 9 changed files with 419 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,3 +1,6 @@
*.tmp
*.bin
*.md5
*.pch
.tmp
Plugin/IOS/hotwax/build
1 change: 1 addition & 0 deletions Plugin/IOS/BhWax.mm
Expand Up @@ -22,6 +22,7 @@
//

#import <sys/socket.h>
#import <UIKit/UIKit.h>
#import "objc/runtime.h"
#include "gideros.h"

Expand Down
3 changes: 3 additions & 0 deletions Plugin/IOS/hotwax/build.sh
@@ -0,0 +1,3 @@
xcodebuild -project hotwax.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Release
xcodebuild -project hotwax.xcodeproj -alltargets -sdk iphoneos5.1 -configuration Release
lipo build/Release-iphoneos/libhotwax.a build/Release-iphonesimulator/libhotwax.a -create -output libhotwax.a
325 changes: 325 additions & 0 deletions Plugin/IOS/hotwax/hotwax.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8BC092BA1635FAD6002BDAA0"
BuildableName = "libhotwax.a"
BlueprintName = "hotwax"
ReferencedContainer = "container:hotwax.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>hotwax.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>8BC092BA1635FAD6002BDAA0</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
Binary file added Plugin/IOS/hotwax/libhotwax.a
Binary file not shown.

0 comments on commit 8b6f88d

Please sign in to comment.