##// END OF EJS Templates
Huge cleanup, removed "out of dir building" now libuc contains qmake and...
Huge cleanup, removed "out of dir building" now libuc contains qmake and spec files. Libuc uses now qmake's prl file for dependecy propagation.

File last commit:

r71:608b7f0e27c2 dev_alexis
r71:608b7f0e27c2 dev_alexis
Show More
libuc2.prf
87 lines | 1.8 KiB | application/pics-rules | TextLexer
New version totaly integrated to Qt through custom sdk build!...
r47 #
# Libuc2 common rules
#
#
Huge cleanup, removed "out of dir building" now libuc contains qmake and...
r71 defineTest(copyFiles) {
files = $$1
DDIR = $$2
win32:DDIR ~= s,/,\\,g
QMAKE_POST_LINK += $$QMAKE_MKDIR $$quote($$DDIR) $$escape_expand(\\n\\t)
for(FILE, files) {
message(copying file $$FILE)
# Replace slashes in paths with backslashes for Windows
win32:FILE ~= s,/,\\,g
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
}
export(QMAKE_POST_LINK)
}
INCLUDEPATH += $$[QT_INSTALL_HEADERS] \
$$[QT_INSTALL_HEADERS]/GRAPHIC/CONTROLERS \
$$[QT_INSTALL_HEADERS]/GRAPHIC/TC_CONTROLERS \
$$[QT_INSTALL_HEADERS]/GRAPHIC/GUI/FONTS \
$$[QT_INSTALL_HEADERS]/GRAPHIC/GUI/Widgets
#
# Microcontroler switch
#
#
contains( TEMPLATE, app ) {
!isEmpty( BSP ) {
include(./boards/$$BSP/bsp.pri)
}
INCLUDEPATH+= $$[QT_INSTALL_PREFIX]/bsp/src/$$BSP
CONFIG += link_prl
OBJECTS_DIR=obj-$$UCMODEL
DESTDIR=bin-$$UCMODEL
}
!isEmpty( UCMODEL ) {
include(./$$UCMODEL/cpu.pri)
include(./$$UCMODEL/qmake.conf)
}
!isEmpty(FILESTOCOPY.files) {
copyFiles($$FILESTOCOPY.files,$$FILESTOCOPY.path)
}
New version totaly integrated to Qt through custom sdk build!...
r47 contains( TEMPLATE, lib ) {
Huge cleanup, removed "out of dir building" now libuc contains qmake and...
r71
CONFIG+=staticlib
OBJECTS_DIR=obj-$$UCMODEL
contains( CONFIG, libuc2lib) {
CONFIG += create_prl
DESTDIR=$$[QT_INSTALL_LIBS]/$$UCMODEL
New version totaly integrated to Qt through custom sdk build!...
r47 }else{
Huge cleanup, removed "out of dir building" now libuc contains qmake and...
r71 contains( CONFIG, bsp) {
DESTDIR=$$[QT_INSTALL_PREFIX]/bsp/lib/$$BSP
CONFIG += create_prl
!isEmpty( BSPFILE ) {
#bspFileCopy.target = bspFileCopy
#bspFileCopy.commands = echo hello
#QMAKE_EXTRA_TARGETS += bspFileCopy
#target.depend += bspFileCopy
#PRE_TARGETDEPS += bspFileCopy
copyFiles($$BSPFILE,$$[QT_INSTALL_PREFIX]/mkspecs/features/boards/$$BSP)
}
}else{
DESTDIR=bin-$$UCMODEL
}
New version totaly integrated to Qt through custom sdk build!...
r47 }
}