Skip to content

Commit

Permalink
using feature files
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Apr 2, 2019
1 parent ba95c58 commit 250cce0
Show file tree
Hide file tree
Showing 42 changed files with 146 additions and 314 deletions.
4 changes: 1 addition & 3 deletions examples/automotive/automotive.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = automotive
CONFIG += qskexample

HEADERS += \
ButtonBar.h \
Expand Down
4 changes: 1 addition & 3 deletions examples/boxes/boxes.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = boxes
CONFIG += qskexample

HEADERS += \
Box.h \
Expand Down
5 changes: 1 addition & 4 deletions examples/buttons/buttons.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
include( $${PWD}/../example.pri )
include( $${PWD}/../qmlexample.pri )

TARGET = buttons
CONFIG += qskexample qskqmlexport

RESOURCES += \
buttons.qrc
Expand Down
5 changes: 1 addition & 4 deletions examples/colorswitch/colorswitch.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
include( $${PWD}/../example.pri )
include( $${PWD}/../qmlexample.pri )

TARGET = colorswitch
CONFIG += qskexample qskqmlexport

RESOURCES += \
colorswitch.qrc
Expand Down
6 changes: 1 addition & 5 deletions examples/desktop/desktop.pro
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = desktop

QT += quick
CONFIG += qskexample

SOURCES += \
main.cpp
29 changes: 0 additions & 29 deletions examples/example.pri

This file was deleted.

5 changes: 1 addition & 4 deletions examples/frames/frames.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
include( $${PWD}/../example.pri )
include( $${PWD}/../qmlexample.pri )

TARGET = frames
CONFIG += qskexample qskqmlexport

RESOURCES += \
frames.qrc
Expand Down
4 changes: 1 addition & 3 deletions examples/gbenchmark/gbenchmark.pro
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
include( $${PWD}/../example.pri )
CONFIG += qskexample

QT += svg

TARGET = gbenchmark

HEADERS += \
Benchmark.h

Expand Down
5 changes: 1 addition & 4 deletions examples/glabels/glabels.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
include( $${PWD}/../example.pri )
include( $${PWD}/../qmlexample.pri )

TARGET = glabels
CONFIG += qskexample qskqmlexport

RESOURCES += \
glabels.qrc
Expand Down
6 changes: 1 addition & 5 deletions examples/layouts/layouts.pro
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = layouts

QT += quick
CONFIG += qskexample

HEADERS += \
TestRectangle.h \
Expand Down
4 changes: 1 addition & 3 deletions examples/listbox/listbox.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = listbox
CONFIG += qskexample

SOURCES += \
main.cpp
6 changes: 1 addition & 5 deletions examples/messagebox/messagebox.pro
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = messagebox

QT += quick
CONFIG += qskexample

SOURCES += \
main.cpp
6 changes: 2 additions & 4 deletions examples/messageboxQml/messageboxQml.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
include( $${PWD}/../example.pri )
include( $${PWD}/../qmlexample.pri )

TARGET = messageboxQml
CONFIG += qskexample
CONFIG += qskqmlexport

RESOURCES += \
messagebox.qrc
Expand Down
4 changes: 1 addition & 3 deletions examples/mycontrols/mycontrols.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = mycontrols
CONFIG += qskexample

SOURCES += \
MySkin.cpp \
Expand Down
7 changes: 0 additions & 7 deletions examples/qmlexample.pri

This file was deleted.

4 changes: 1 addition & 3 deletions examples/qvgviewer/qvgviewer.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = qvgviewer
CONFIG += qskexample

HEADERS += \
MainWindow.h
Expand Down
4 changes: 1 addition & 3 deletions examples/sliders/sliders.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = sliders
CONFIG += qskexample

SOURCES += \
Slider.cpp \
Expand Down
6 changes: 1 addition & 5 deletions examples/tabview/tabview.pro
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = tabview

QT += quick
CONFIG += qskexample

SOURCES += \
main.cpp
4 changes: 1 addition & 3 deletions examples/thumbnails/thumbnails.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = thumbnails
CONFIG += qskexample

SOURCES += \
main.cpp
4 changes: 1 addition & 3 deletions examples/tlabels/tlabels.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include( $${PWD}/../example.pri )

TARGET = tlabels
CONFIG += qskexample

SOURCES += \
main.cpp
32 changes: 29 additions & 3 deletions features/default_post.prf
Original file line number Diff line number Diff line change
@@ -1,7 +1,33 @@
load(default_post)

darwin:equals(TEMPLATE, lib) {
# Add install name to all libraries, including plugins
LIBS += -Wl,-install_name,@rpath/lib$${TARGET}.dylib
equals(TEMPLATE, lib) {

plugin {

!isEmpty( QSK_PLUGIN_SUBDIR ) {

DESTDIR = $${QSK_PLUGIN_DIR}/$${QSK_PLUGIN_SUBDIR}
}

darwin {
# Add install name to all libraries, including plugins
LIBS += -Wl,-install_name,@rpath/lib$${TARGET}.dylib
}
}
else {

DESTDIR = $${QSK_LIB_DIR}
}

VERSION = $${QSK_VERSION}

contains(QSK_CONFIG, QskDll) {

CONFIG += dll
DEFINES += QSK_DLL
}
else {
CONFIG += staticlib
}
}

16 changes: 16 additions & 0 deletions features/default_pre.prf
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
load(default_pre)

QSK_ROOT = $$clean_path( $$PWD/.. )

equals( QSK_ROOT, $$_PRO_FILE_PWD_ ) {

QSK_SUB_DIR = "."
QSK_OUT_ROOT = $$OUT_PWD
}
else {

QSK_SUB_DIR = $$relative_path( $$_PRO_FILE_PWD_, $$QSK_ROOT )
QSK_OUT_ROOT = $$replace( OUT_PWD, /$$QSK_SUB_DIR, "" )
}

QSK_PLUGIN_DIR = $${QSK_OUT_ROOT}/plugins
QSK_LIB_DIR = $${QSK_OUT_ROOT}/lib

include( qskconfig.pri )
include( qskfunctions.pri )
6 changes: 6 additions & 0 deletions features/qskexample.prf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TEMPLATE = app
CONFIG += qskinny qsktestsupport

DESTDIR = $$clean_path( $${OUT_PWD}/../bin )

message( $$TARGET )
16 changes: 16 additions & 0 deletions features/qskinny.prf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
QT *= quick

QSK_DIRS = \
$${QSK_ROOT}/src/common \
$${QSK_ROOT}/src/controls \
$${QSK_ROOT}/src/dialogs \
$${QSK_ROOT}/src/graphic \
$${QSK_ROOT}/src/inputpanel \
$${QSK_ROOT}/src/layouts \
$${QSK_ROOT}/src/nodes

INCLUDEPATH *= $${QSK_DIRS}
DEPENDPATH *= $${QSK_DIRS}

QMAKE_RPATHDIR *= $${QSK_LIB_DIR}
qskAddLibrary( $${QSK_LIB_DIR}, qskinny )
7 changes: 7 additions & 0 deletions features/qskqmlexport.prf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
QSK_QML_EXPORT_DIRS = $${QSK_ROOT}/qmlexport

INCLUDEPATH *= $${QSK_QML_EXPORT_DIRS}
DEPENDPATH *= $${QSK_QML_EXPORT_DIRS}

QMAKE_RPATHDIR *= $${QSK_LIB_DIR}
qskAddLibrary( $${QSK_LIB_DIR}, qskqmlexport)
7 changes: 7 additions & 0 deletions features/qsktestsupport.prf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
QSK_TEST_SUPPORT_DIRS = $${QSK_ROOT}/support

INCLUDEPATH *= $${QSK_TEST_SUPPORT_DIRS}
DEPENDPATH *= $${QSK_TEST_SUPPORT_DIRS}

QMAKE_RPATHDIR *= $${QSK_LIB_DIR}
qskAddLibrary( $${QSK_LIB_DIR}, qsktestsupport)
31 changes: 6 additions & 25 deletions inputcontext/inputcontext.pro
Original file line number Diff line number Diff line change
@@ -1,30 +1,16 @@
QSK_ROOT = $${PWD}/..
QSK_OUT_ROOT = $${OUT_PWD}/..

TEMPLATE = lib
TARGET = $$qskPluginTarget(qskinputcontext)

QT += quick gui-private
CONFIG += no_private_qt_headers_warning
QT += gui-private

# CONFIG += pinyin
# CONFIG += hunspell

QSK_SUBDIRS = \
$${QSK_ROOT}/src/common \
$${QSK_ROOT}/src/nodes \
$${QSK_ROOT}/src/graphic \
$${QSK_ROOT}/src/controls \
$${QSK_ROOT}/src/layouts \
$${QSK_ROOT}/src/dialogs \
$${QSK_ROOT}/src/inputpanel

INCLUDEPATH *= $${QSK_SUBDIRS}
DEPENDPATH *= $${QSK_SUBDIRS}

DESTDIR = $${QSK_OUT_ROOT}/plugins/platforminputcontexts
CONFIG += plugin
CONFIG += qskinny

qskAddLibrary($${QSK_OUT_ROOT}/lib, qskinny)
QSK_PLUGIN_SUBDIR = platforminputcontexts
contains(QSK_CONFIG, QskDll): DEFINES += QSK_INPUTCONTEXT_MAKEDLL

HEADERS += \
QskInputContextGlobal.h
Expand Down Expand Up @@ -65,10 +51,5 @@ hunspell {

}

contains(QSK_CONFIG, QskDll) {
DEFINES += QSK_DLL QSK_INPUTCONTEXT_MAKEDLL
}

target.path = $${QSK_INSTALL_PLUGINS}/platforminputcontexts
target.path = $${QSK_INSTALL_PLUGINS}/$${QSK_PLUGIN_SUBDIR}
INSTALLS = target

6 changes: 1 addition & 5 deletions playground/dialogbuttons/dialogbuttons.pro
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
include( $${PWD}/../playground.pri )

TARGET = dialogbuttons

QT += quick
CONFIG += qskexample

HEADERS += \
Window.h
Expand Down
5 changes: 1 addition & 4 deletions playground/images/images.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
include( $${PWD}/../playground.pri )
include( $${PWD}/../qmlplayground.pri )

TARGET = images
CONFIG += qskexample qskqmlexport

RESOURCES += \
images.qrc
Expand Down
4 changes: 1 addition & 3 deletions playground/inputpanel/inputpanel.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include( $${PWD}/../playground.pri )

TARGET = inputpanel
CONFIG += qskexample

SOURCES += \
main.cpp
4 changes: 1 addition & 3 deletions playground/invoker/invoker.pro
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
include( $${PWD}/../playground.pri )
CONFIG += qskexample

QMAKE_MOC_OPTIONS += -nw # disable warning about missing READ

TARGET = invoker

HEADERS += \
Callback.h \
Invoker.h
Expand Down
Loading

0 comments on commit 250cce0

Please sign in to comment.