forked from blackberry/NDK-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
samples.mk
20 lines (15 loc) · 876 Bytes
/
samples.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
EXTRA_CLEAN=$(BUILDNAME).bar
BAR_CONFIG=$(BAR_CONFIG_$(CPU)_$(subst .,_,$(subst -,_,$(COMPOUND_VARIANT))))
BAR_CONFIG_arm_o_le_v7:=Device-Release
BAR_CONFIG_arm_o_le_v7_g:=Device-Debug
BAR_CONFIG_x86_o:=Simulator
BAR_CONFIG_x86_o_g:=Simulator-Debug
CONFIG_ID=$(shell grep -E "<configuration.*name=\"$(BAR_CONFIG)\"" $(PROJECT_ROOT)/bar-descriptor.xml | sed 's/.*id="\([^"]*\)".*/\1/')
bar: $(BUILDNAME).bar
$(BUILDNAME).bar: $(FULLNAME) $(PROJECT_ROOT)/bar-descriptor.xml
cd $(PROJECT_ROOT) ; \
blackberry-nativepackager -devMode -package $(CURDIR)/$(BUILDNAME).bar bar-descriptor.xml -configuration $(CONFIG_ID)
deploy: $(BUILDNAME).bar
blackberry-deploy -installApp -device $(DEVICEIP) -password $(DEVICEPW) -package $(BUILDNAME).bar
run: $(BUILDNAME).bar
blackberry-deploy -installApp -launchApp -device $(DEVICEIP) -password $(DEVICEPW) -package $(BUILDNAME).bar