Skip to content

Commit

Permalink
fix linux project templates for QtCreator (#6011)
Browse files Browse the repository at this point in the history
Removes leftover lines in qt creator project template files.

These lines would trip up QT Creator, which would refuse to open newly
created QtCreator project files.

The artifacts look like they might have been leftover when copying a
similar template used for the QtCreator Wizard plug-in.
  • Loading branch information
tgfrerer authored and arturoc committed May 10, 2018
1 parent b5ee15a commit fbcf32b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
16 changes: 2 additions & 14 deletions scripts/templates/linux/qtcreator.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import qbs.Process
import qbs.File
import qbs.FileInfo
import qbs.TextFile
import "%{JS: %{CorrectInitialOFPath}?'../../..':'%{OFPath}'}/libs/openFrameworksCompiled/project/qtcreator/ofApp.qbs" as ofApp
import "../../../libs/openFrameworksCompiled/project/qtcreator/ofApp.qbs" as ofApp

Project{
property string of_root: %{JS: %{CorrectInitialOFPath}?'\'../../..\'':'\'%{OFPath}\''}
property string of_root: "../../.."

ofApp {
name: { return FileInfo.baseName(sourceDirectory) }
Expand All @@ -18,18 +18,6 @@ Project{
]

of.addons: [
%{JS:
[].concat(%{ofx3DModelLoader} ? ['\'ofx3DModelLoader\''] : [])
.concat(%{ofxAssimpModelLoader} ? ['\'ofxAssimpModelLoader\''] : [])
.concat(%{ofxGui} ? ['\'ofxGui\''] : [])
.concat(%{ofxKinect} ? ['\'ofxKinect\''] : [])
.concat(%{ofxNetwork} ? ['\'ofxNetwork\''] : [])
.concat(%{ofxOpenCv} ? ['\'ofxOpenCv\''] : [])
.concat(%{ofxOsc} ? ['\'ofxOsc\''] : [])
.concat(%{ofxSvg} ? ['\'ofxSvg\''] : [])
.concat(%{ofxVectorGraphics} ? ['\'ofxVectorGraphics\''] : [])
.concat(%{ofxXmlSettings} ? ['\'ofxXmlSettings\''] : []).toString()
}
]

// additional flags for the project. the of module sets some
Expand Down
16 changes: 2 additions & 14 deletions scripts/templates/linux64/qtcreator.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import qbs.Process
import qbs.File
import qbs.FileInfo
import qbs.TextFile
import "%{JS: %{CorrectInitialOFPath}?'../../..':'%{OFPath}'}/libs/openFrameworksCompiled/project/qtcreator/ofApp.qbs" as ofApp
import "../../../libs/openFrameworksCompiled/project/qtcreator/ofApp.qbs" as ofApp

Project{
property string of_root: %{JS: %{CorrectInitialOFPath}?'\'../../..\'':'\'%{OFPath}\''}
property string of_root: "../../.."

ofApp {
name: { return FileInfo.baseName(sourceDirectory) }
Expand All @@ -18,18 +18,6 @@ Project{
]

of.addons: [
%{JS:
[].concat(%{ofx3DModelLoader} ? ['\'ofx3DModelLoader\''] : [])
.concat(%{ofxAssimpModelLoader} ? ['\'ofxAssimpModelLoader\''] : [])
.concat(%{ofxGui} ? ['\'ofxGui\''] : [])
.concat(%{ofxKinect} ? ['\'ofxKinect\''] : [])
.concat(%{ofxNetwork} ? ['\'ofxNetwork\''] : [])
.concat(%{ofxOpenCv} ? ['\'ofxOpenCv\''] : [])
.concat(%{ofxOsc} ? ['\'ofxOsc\''] : [])
.concat(%{ofxSvg} ? ['\'ofxSvg\''] : [])
.concat(%{ofxVectorGraphics} ? ['\'ofxVectorGraphics\''] : [])
.concat(%{ofxXmlSettings} ? ['\'ofxXmlSettings\''] : []).toString()
}
]

// additional flags for the project. the of module sets some
Expand Down

0 comments on commit fbcf32b

Please sign in to comment.