Makefile, project file to build as a shared library.

This commit is contained in:
James Ladan 2013-01-26 23:26:18 -08:00
parent 11f5bff9d9
commit 0d5edc1a58
2 changed files with 72 additions and 0 deletions

36
oauth/Makefile Normal file
View file

@ -0,0 +1,36 @@
QMAKE_TARGET = libkqoauth.so
QMAKE_PRO = oauth
QMAKE = $(QNX_HOST)/usr/bin/qmake
TARGET = $(QMAKE_TARGET)
all: Makefile $(QMAKE_TARGET)
clean:
$(MAKE) -C ./arm -f Makefile sureclean
$(MAKE) -C ./x86 -f Makefile sureclean
Makefile: FORCE
$(QMAKE) -spec unsupported/blackberry-armv7le-qcc -o arm/Makefile $(QMAKE_PRO).pro CONFIG+=device
$(QMAKE) -spec unsupported/blackberry-x86-qcc -o x86/Makefile $(QMAKE_PRO).pro CONFIG+=simulator
$(MAKE) -C ./translations -f Makefile update release
FORCE:
$(QMAKE_TARGET): device simulator
device:
$(MAKE) -C ./arm -f Makefile all
Device-Debug: Makefile
$(MAKE) -C ./arm -f Makefile debug
Device-Release: Makefile
$(MAKE) -C ./arm -f Makefile release
simulator:
$(MAKE) -C ./x86 -f Makefile all
Simulator-Debug: Makefile
$(MAKE) -C ./x86 -f Makefile debug

36
oauth/oauth.pro Normal file
View file

@ -0,0 +1,36 @@
TEMPLATE = lib
TARGET = kqoauth
CONFIG += dll qt warn_on debug_and_release cascades
SOURCES += *.cpp
HEADERS += *.hpp *.h
QT += network
DEFINES += KQOAUTH
device {
CONFIG(release, debug|release) {
DESTDIR = o.le-v7
}
CONFIG(debug, debug|release) {
DESTDIR = o.le-v7-g
}
}
simulator {
CONFIG(release, debug|release) {
DESTDIR = o
}
CONFIG(debug, debug|release) {
DESTDIR = o-g
}
}
OBJECTS_DIR = $${DESTDIR}/.obj
MOC_DIR = $${DESTDIR}/.moc
RCC_DIR = $${DESTDIR}/.rcc
UI_DIR = $${DESTDIR}/.ui
suredelete.target = sureclean
suredelete.commands = $(DEL_FILE) $${MOC_DIR}/*
suredelete.depends = distclean
QMAKE_EXTRA_TARGETS += suredelete