Commit 7d324c6f authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Split lib and test app in separate QBS files

parent 6809157f
......@@ -2,61 +2,10 @@ import qbs;
Project {
name: "The Qt5 HTTP Server";
references: [
"libQt5HttpServer.qbs",
"testAppQt5HttpServer.qbs",
]
property bool buildAsSharedLib : true;
Product {
name: "qt5-http-server-lib";
type: (project.buildAsSharedLib ? "dynamiclibrary" : "staticlibrary");
targetName: "Qt5HttpServer";
cpp.includePaths: ".";
Depends {
name: "cpp";
}
Depends {
name: "Qt";
submodules: ["core", "network"];
}
Group {
name: "C++ Sources";
files: ["QtHttp*.cpp"];
}
Group {
name: "C++ Headers";
files: ["QtHttp*.h"]
}
Group {
qbs.install: true;
fileTagsFilter: (project.buildAsSharedLib ? "dynamiclibrary" : "staticlibrary");
}
}
Application {
name: "qt5-http-server-test-app";
targetName: "Qt5HttpServerTestApp";
Depends {
name: "cpp";
}
Depends {
name: "Qt";
submodules: ["core", "network"];
}
Depends {
name: "qt5-http-server-lib";
}
Group {
name: "C++ Sources";
files: ["Example*.cpp", "main.cpp"];
}
Group {
name: "C++ Headers";
files: ["Example*.h"]
}
Group {
qbs.install: true;
fileTagsFilter: "application";
}
}
}
import qbs;
Product {
name: "qt5-http-server-lib";
type: (project.buildAsSharedLib ? "dynamiclibrary" : "staticlibrary");
targetName: "Qt5HttpServer";
cpp.includePaths: ".";
Export {
cpp.includePaths: ".";
Depends {
name: "cpp";
}
Depends {
name: "Qt";
submodules: ["core", "network"];
}
}
Depends {
name: "cpp";
}
Depends {
name: "Qt";
submodules: ["core", "network"];
}
Group {
name: "C++ Sources";
files: ["QtHttp*.cpp"];
}
Group {
name: "C++ Headers";
files: ["QtHttp*.h"]
}
Group {
qbs.install: true;
fileTagsFilter: product.type;
}
}
import qbs;
Application {
name: "qt5-http-server-test-app";
targetName: "Qt5HttpServerTestApp";
Depends {
name: "cpp";
}
Depends {
name: "Qt";
submodules: ["core", "network"];
}
Depends {
name: "qt5-http-server-lib";
}
Group {
name: "C++ Sources";
files: ["Example*.cpp", "main.cpp"];
}
Group {
name: "C++ Headers";
files: ["Example*.h"]
}
Group {
qbs.install: true;
fileTagsFilter: "application";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment