Skip to content

Commit

Permalink
Qbs: Build new resource file of Tiled Quick
Browse files Browse the repository at this point in the history
Also made some other minor adjustments.
  • Loading branch information
bjorn committed Apr 10, 2017
1 parent 879fb85 commit a51b285
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
7 changes: 2 additions & 5 deletions src/tiledquick/tiledquick.pro
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ macx {
}

SOURCES += main.cpp

OTHER_FILES = main.qml
RESOURCES += \
qml.qrc

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Default rules for deployment.
include(deployment.pri)

RESOURCES += \
qml.qrc
19 changes: 4 additions & 15 deletions src/tiledquick/tiledquick.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ QtGuiApplication {
name: "tiledquick"
targetName: name

condition: Qt.core.versionMajor >= 5

Depends { name: "Qt.core" } // for the Qt version check
Depends {
condition: Qt.core.versionMajor >= 5
name: "Qt"; submodules: ["quick", "widgets"]
name: "Qt"
submodules: ["core", "quick", "widgets"]
versionAtLeast: "5.4"
}

cpp.includePaths: ["."]
Expand All @@ -18,6 +16,7 @@ QtGuiApplication {

files: [
"main.cpp",
"qml.qrc",
]

Properties {
Expand All @@ -37,14 +36,4 @@ QtGuiApplication {
}
fileTagsFilter: product.type
}

Group {
name: "QML files"
qbs.install: true
qbs.installDir: installBase + "qml/tiledquick"
files: [
"DragArea.qml",
"main.qml",
]
}
}
5 changes: 1 addition & 4 deletions src/tiledquickplugin/tiledquickplugin.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ import qbs 1.0
DynamicLibrary {
targetName: "tiledquickplugin"

condition: Qt.core.versionMajor >= 5

Depends { name: "libtiled" }
Depends { name: "Qt.core" } // for the Qt version check
Depends {
condition: Qt.core.versionMajor >= 5
name: "Qt"; submodules: ["qml", "quick"]
versionAtLeast: "5.4"
}

cpp.cxxLanguageVersion: "c++11"
Expand Down

0 comments on commit a51b285

Please sign in to comment.