compile with theos/logos

This commit is contained in:
matthias.ringwald@gmail.com 2014-01-05 00:16:02 +00:00
parent ddac20d315
commit 6b08cdaf92
4 changed files with 26 additions and 36 deletions

View File

@ -0,0 +1,21 @@
# lipoplastic setup for armv6 + arm64 compilation
TARGET := iphone:clang
THEOS_PLATFORM_SDK_ROOT_armv6 = /Applications/Xcode-4.4.1.app/Contents/Developer
SDKVERSION_armv6 = 5.1
TARGET_IPHONEOS_DEPLOYMENT_VERSION = 3.0
TARGET_IPHONEOS_DEPLOYMENT_VERSION_arm64 = 7.0
ARCHS = armv6 arm64
TWEAK_NAME = SpringBoardAccess
SpringBoardAccess_FILES = Tweak.xm
SpringBoardAccess_LIBRARIES = substrate
SpringBoardAccess_FRAMEWORKS = UIKit
SpringBoardAccess_PRIVATE_FRAMEWORKS = BluetoothManager
TOOL_NAME = SpringBoardAccess-test
SpringBoardAccess-test_FILES = SpringBoardAccess-test.c SpringBoardAccess.c
SpringBoardAccess-test_FRAMEWORKS = CoreFoundation Foundation
include $(THEOS)/makefiles/common.mk
include $(THEOS_MAKE_PATH)/tool.mk
include $(THEOS_MAKE_PATH)/tweak.mk

View File

@ -136,15 +136,12 @@ CFDataRef myCallBack(CFMessagePortRef local, SInt32 msgid, CFDataRef cfData, voi
//______________________________________________________________________________
%hook SpringBoard
-(void) applicationDidFinishLaunching(id app){
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-(void) applicationDidFinishLaunching:(id) app{
%orig();
CFMessagePortRef local = CFMessagePortCreateLocal(NULL, CFSTR(SBA_MessagePortName), myCallBack, NULL, NULL);
CFRunLoopSourceRef source = CFMessagePortCreateRunLoopSource(NULL, local, 0);
CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
[pool release];
}
%end

View File

@ -1,9 +1,10 @@
Package: ch.ringwald.springboardaccess
Package: ch.ringwald.springboardaccess
Name: SpringBoardAccess
Description: Controls status bar icons from daemons
Section: Networking
Architecture: iphoneos-arm
Depends: mobilesubstrate (>= 0.9.3367-1), firmware (<< 4.0) | libstatusbar (>= 0.9.1)
Maintainer: Matthias Ringwald <iphone@ringwald.ch>
Author: Matthias Ringwald <iphone@ringwald.ch>
Author: Mattthias Ringwald <tickets@btstack.uservoice.com>
Maintainer: Mattthias Ringwald <tickets@btstack.uservoice.com>
Section: Development
Version: 0.3

View File

@ -1,29 +0,0 @@
#!/bin/sh
PACKAGE=SpringBoardAccess
VERSION=0.2
REVISION=`svn info | grep Revision | cut -d " " -f 2`
ARCHIVE=$PACKAGE-$VERSION-$REVISION.deb
echo Creating $PACKAGE package version $VERSION revision $REVISION
sudo rm -rf $PACKAGE
mkdir -p $PACKAGE/DEBIAN
cp control $PACKAGE/DEBIAN
echo "Version: $VERSION-$REVISION" >> $PACKAGE/DEBIAN/control
mkdir -p $PACKAGE/usr/local/bin
cp SpringBoardAccess-test $PACKAGE/usr/local/bin
mkdir -p $PACKAGE/Library/MobileSubstrate/DynamicLibraries
cp SpringBoardAccess.dylib SpringBoardAccess.plist $PACKAGE/Library/MobileSubstrate/DynamicLibraries
# set ownership to root:root
sudo chown -R 0:0 $PACKAGE
echo Packaging $PACKAGE
export COPYFILE_DISABLE
export COPY_EXTENDED_ATTRIBUTES_DISABLE
dpkg-deb -b $PACKAGE $ARCHIVE
dpkg-deb --info $ARCHIVE