This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates Makefile to push app build into sample assets
- Loading branch information
1 parent
b911124
commit e446bd9
Showing
3 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,56 @@ | ||
QMAKE_TARGET = MessageService | ||
PROJECT_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))) | ||
I18N_DIR := $(PROJECT_DIR)/translations | ||
QMAKE = $(QNX_HOST)/usr/bin/qmake | ||
PACKAGER = $(QNX_HOST)/usr/bin/blackberry-nativepackager | ||
I18N_DIR ?= ./translations | ||
|
||
ifdef NUMBER_OF_PROCESSORS | ||
MAKEFLAGS += -j${NUMBER_OF_PROCESSORS} | ||
endif | ||
|
||
default: Device-Release | ||
|
||
.PHONY: FORCE | ||
|
||
Makefile-all: arm/Makefile arm-p/Makefile x86/Makefile translations/Makefile | ||
|
||
arm/Makefile: $(QMAKE_TARGET).pro | ||
@mkdir -p arm | ||
cd arm && $(QMAKE) -spec blackberry-armv7le-qcc ../$(QMAKE_TARGET).pro CONFIG+=debug_and_release CONFIG+=device | ||
|
||
arm-p/Makefile: $(QMAKE_TARGET).pro | ||
@mkdir -p arm-p | ||
cd arm-p && $(QMAKE) -spec blackberry-armv7le-qcc ../$(QMAKE_TARGET).pro CONFIG+=debug_and_release CONFIG+=device CONFIG+=profile | ||
|
||
x86/Makefile: $(QMAKE_TARGET).pro | ||
@mkdir -p x86 | ||
cd x86 && $(QMAKE) -spec blackberry-x86-qcc ../$(QMAKE_TARGET).pro CONFIG+=debug_and_release CONFIG+=simulator | ||
|
||
Device-Release: arm/Makefile translate FORCE | ||
$(MAKE) -C ./arm -f Makefile release | ||
@cp ./arm/$(QMAKE_TARGET) ../www/assets/ 2>/dev/null || : | ||
|
||
Device-Debug: arm/Makefile translate FORCE | ||
$(MAKE) -C ./arm -f Makefile debug | ||
@cp ./arm/$(QMAKE_TARGET) ../www/assets/ 2>/dev/null || : | ||
|
||
Device-Profile: arm-p/Makefile translate FORCE | ||
$(MAKE) -C ./arm-p -f Makefile debug | ||
@cp ./arm-p/$(QMAKE_TARGET) ../www/assets/ 2>/dev/null || : | ||
|
||
Simulator-Debug: x86/Makefile translate FORCE | ||
$(MAKE) -C ./x86 -f Makefile debug | ||
@cp ./x86/$(QMAKE_TARGET) ../www/assets/ 2>/dev/null || : | ||
|
||
include mk/cs-base.mk | ||
translate: FORCE | ||
$(MAKE) -C $(I18N_DIR) -f Makefile update | ||
$(MAKE) -C $(I18N_DIR) -f Makefile release | ||
|
||
clean: FORCE | ||
rm -rf arm arm-p x86 | ||
rm -f $(I18N_DIR)/*.qm | ||
|
||
package: Device-Release FORCE | ||
$(PACKAGER) -package $(QMAKE_TARGET).bar -configuration Device-Release bar-descriptor.xml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.