call get_version.sh from ios src makefile

This commit is contained in:
Matthias Ringwald 2015-05-03 21:04:14 +02:00
parent d277f4dc01
commit 61d3083200
2 changed files with 22 additions and 26 deletions

View File

@ -1,9 +0,0 @@
#!/bin/sh
# get version from repository
tools/get_version.sh
# check if $THEOS is set
# use theos Makefiles ??
cp platforms/ios/example/Makefile.iphone example/daemon/Makefile

View File

@ -10,14 +10,16 @@ BTSTACK_ROOT=../../..
POSIX_ROOT=$(BTSTACK_ROOT)/platforms/posix POSIX_ROOT=$(BTSTACK_ROOT)/platforms/posix
DAEMON_ROOT=$(BTSTACK_ROOT)/platforms/daemon DAEMON_ROOT=$(BTSTACK_ROOT)/platforms/daemon
VPATH += $(BTSTACK_ROOT)/src
LIBRARY_NAME = libBTstack LIBRARY_NAME = libBTstack
libBTstack_FILES = \ libBTstack_FILES = \
$(BTSTACK_ROOT)/src/hci_cmds.c \ hci_cmds.c \
$(BTSTACK_ROOT)/src/hci_dump.c \ hci_dump.c \
$(BTSTACK_ROOT)/src/linked_list.c \ linked_list.c \
$(BTSTACK_ROOT)/src/run_loop.c \ run_loop.c \
$(BTSTACK_ROOT)/src/sdp_util.c \ sdp_util.c \
$(BTSTACK_ROOT)/src/utils.c \ utils.c \
$(BTSTACK_ROOT)/platforms/cocoa/run_loop_cocoa.m \ $(BTSTACK_ROOT)/platforms/cocoa/run_loop_cocoa.m \
$(POSIX_ROOT)/src/run_loop_posix.c \ $(POSIX_ROOT)/src/run_loop_posix.c \
$(DAEMON_ROOT)/src/btstack.c \ $(DAEMON_ROOT)/src/btstack.c \
@ -28,17 +30,17 @@ libBTstack_CFLAGS = -I$(BTSTACK_ROOT)/include -I$(BTSTACK_ROOT)/ble -I$(BTSTACK_
TOOL_NAME = BTdaemon TOOL_NAME = BTdaemon
BTdaemon_FILES = \ BTdaemon_FILES = \
$(libBTstack_FILES) \ $(libBTstack_FILES) \
$(BTSTACK_ROOT)/src/btstack_memory.c \ btstack_memory.c \
$(BTSTACK_ROOT)/src/hci.c \ hci.c \
$(BTSTACK_ROOT)/src/l2cap.c \ l2cap.c \
$(BTSTACK_ROOT)/src/l2cap_signaling.c \ l2cap_signaling.c \
$(BTSTACK_ROOT)/src/memory_pool.c \ memory_pool.c \
$(BTSTACK_ROOT)/src/rfcomm.c \ rfcomm.c \
$(BTSTACK_ROOT)/src/sdp.c \ sdp.c \
$(BTSTACK_ROOT)/src/sdp_client.c \ sdp_client.c \
$(BTSTACK_ROOT)/src/sdp_parser.c \ sdp_parser.c \
$(BTSTACK_ROOT)/src/sdp_query_rfcomm.c \ sdp_query_rfcomm.c \
$(BTSTACK_ROOT)/src/sdp_query_util.c \ sdp_query_util.c \
$(DAEMON_ROOT)/src/daemon.c \ $(DAEMON_ROOT)/src/daemon.c \
$(POSIX_ROOT)/src/hci_transport_h4.c \ $(POSIX_ROOT)/src/hci_transport_h4.c \
$(BTSTACK_ROOT)/platforms/ios/src/bt_control_iphone.m \ $(BTSTACK_ROOT)/platforms/ios/src/bt_control_iphone.m \
@ -50,6 +52,9 @@ BTdaemon_FILES = \
BTdaemon_CFLAGS = -I$(BTSTACK_ROOT)/include -I$(BTSTACK_ROOT)/ble -I$(BTSTACK_ROOT)/src -I.. BTdaemon_CFLAGS = -I$(BTSTACK_ROOT)/include -I$(BTSTACK_ROOT)/ble -I$(BTSTACK_ROOT)/src -I..
BTdaemon_LDFLAGS += $(SYSROOT)/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit BTdaemon_LDFLAGS += $(SYSROOT)/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
before-all::
../../../tools/get_version.sh
after-BTdaemon-stage:: after-BTdaemon-stage::
echo $(THEOS_STAGING_DIR) echo $(THEOS_STAGING_DIR)
mkdir -p ../.theos/_/usr/local/lib mkdir -p ../.theos/_/usr/local/lib