mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-27 05:37:05 +00:00
switch to rpetrich's theos fork for now, build armv6+arm64 binaries
This commit is contained in:
parent
679c88d115
commit
f4220df52c
@ -1,3 +1,7 @@
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
# this uses rpetrich's lipoplastic feature not present in dhowett's repository
|
||||
# you need to install Xcode 4.4.1 as /Applications/Xcode_4.4.1.app
|
||||
|
||||
SUBPROJECTS = src PatchBlueTool PrefsBundle
|
||||
include $(FW_MAKEDIR)/aggregate.mk
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
include $(THEOS_MAKE_PATH)/aggregate.mk
|
||||
|
@ -1,7 +1,14 @@
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
# 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
|
||||
|
||||
TOOL_NAME = PatchBlueTool
|
||||
|
||||
PatchBlueTool_FILES = PatchBlueTool.c
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
include $(THEOS_MAKE_PATH)/tool.mk
|
||||
|
@ -1,14 +1,21 @@
|
||||
export TARGET=iphone:latest:4.0
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
# 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
|
||||
|
||||
BUNDLE_NAME = BTstack
|
||||
BTstack_FILES = PrefsViewController.m BluetoothController.m BluetoothTableViewAdapter.m
|
||||
BTstack_INSTALL_PATH = /Library/PreferenceBundles
|
||||
BTstack_FRAMEWORKS = UIKit
|
||||
BTstack_CFLAGS = -I.. -I../include -g
|
||||
BTstack_LDFLAGS = -L../src/obj -lBTstack
|
||||
|
||||
BTstack_LDFLAGS = -L../src/.theos/obj -lBTstack
|
||||
BTstack_PRIVATE_FRAMEWORKS = Preferences
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
include $(THEOS_MAKE_PATH)/bundle.mk
|
||||
|
||||
internal-stage::
|
||||
|
@ -1,5 +1,13 @@
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
# 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
|
||||
|
||||
ADDITIONAL_CFLAGS = -I.. -I../include
|
||||
ADDITIONAL_LDFLAGS = -L../src/obj -lBTstack
|
||||
|
||||
|
@ -10,4 +10,4 @@ Maintainer: Matthias Ringwald <iphone@ringwald.ch>
|
||||
Author: Matthias Ringwald <iphone@ringwald.ch>
|
||||
Section: Development
|
||||
Tag: role::developer
|
||||
Version: 0.6
|
||||
Version: 0.8
|
||||
|
@ -5,3 +5,4 @@ cp /usr/sbin/BlueTool /tmp/BlueToolH4
|
||||
ldid -s /tmp/BlueToolH4
|
||||
cp -f /tmp/BlueToolH4 /usr/local/bin
|
||||
rm -f /tmp/BlueToolH4
|
||||
exit 0
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/sh
|
||||
/bin/launchctl load /Library/LaunchDaemons/ch.ringwald.BTstack.plist 2&> /dev/null
|
||||
exit 0
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
/bin/launchctl unload /Library/LaunchDaemons/ch.ringwald.BTstack.plist 2&> /dev/null
|
||||
rm -f /usr/local/bin/BlueToolH4
|
||||
exit 0
|
||||
|
@ -1,4 +1,10 @@
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
# 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
|
||||
|
||||
LIBRARY_NAME = libBTstack
|
||||
libBTstack_FILES = btstack.c hci_cmds.c linked_list.c
|
||||
@ -31,11 +37,12 @@ BTdaemon_CFLAGS = -I../include -I..
|
||||
BTdaemon_LDFLAGS += $(SYSROOT)/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
|
||||
|
||||
after-BTdaemon-stage::
|
||||
echo "current dir" `pwd`
|
||||
mkdir -p ../_/usr/local/lib
|
||||
mkdir -p ../_/usr/local/bin
|
||||
ln -s /usr/lib/libBTstack.dylib ../_/usr/local/lib
|
||||
ln -s /usr/bin/BTdaemon ../_/usr/local/bin/BTdaemon
|
||||
echo $(THEOS_STAGING_DIR)
|
||||
mkdir -p ../.theos/_/usr/local/lib
|
||||
mkdir -p ../.theos/_/usr/local/bin
|
||||
ln -s /usr/lib/libBTstack.dylib ../.theos/_/usr/local/lib
|
||||
ln -s /usr/bin/BTdaemon ../.theos/_/usr/local/bin/BTdaemon
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
include $(THEOS_MAKE_PATH)/library.mk
|
||||
include $(THEOS_MAKE_PATH)/tool.mk
|
||||
|
Loading…
x
Reference in New Issue
Block a user