Commit df393db1 authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Create subfolders to re-arrange files better

parent 7d324c6f
Pipeline #548 failed with stage
......@@ -3,8 +3,9 @@ import qbs;
Project {
name: "The Qt5 HTTP Server";
references: [
"libQt5HttpServer.qbs",
"testAppQt5HttpServer.qbs",
"lib/libQt5HttpServer.qbs",
"test/static-files/testAppQtHttpStaticFiles.qbs",
"test/request-parsing/testAppQtHttpRequestParsing.qbs",
]
property bool buildAsSharedLib : true;
......
......@@ -26,11 +26,23 @@ Product {
}
Group {
name: "C++ Sources";
files: ["QtHttp*.cpp"];
files: [
"QtHttpClientWrapper.cpp",
"QtHttpHeader.cpp",
"QtHttpReply.cpp",
"QtHttpRequest.cpp",
"QtHttpServer.cpp",
]
}
Group {
name: "C++ Headers";
files: ["QtHttp*.h"]
files: [
"QtHttpClientWrapper.h",
"QtHttpHeader.h",
"QtHttpReply.h",
"QtHttpRequest.h",
"QtHttpServer.h",
]
}
Group {
qbs.install: true;
......
#include <QCoreApplication>
#include <QDir>
#include "ExampleRequestParsing.h"
int main (int argc, char * argv []) {
QCoreApplication app (argc, argv);
new ExampleRequestParsing (&app);
return app.exec ();
}
import qbs;
Application {
name: "app-test-qt5-http-request-parsing";
targetName: "testQt5HttpRequestParsing";
Depends {
name: "cpp";
}
Depends {
name: "Qt";
submodules: ["core", "network"];
}
Depends {
name: "qt5-http-server-lib";
}
Group {
name: "C++ Sources";
files: [
"ExampleRequestParsing.cpp",
"main_requestParsing.cpp",
]
}
Group {
name: "C++ Headers";
files: [
"ExampleRequestParsing.h",
]
}
Group {
qbs.install: true;
fileTagsFilter: "application";
}
}
......@@ -2,12 +2,10 @@
#include <QCoreApplication>
#include <QDir>
#include "ExampleRequestParsing.h"
#include "ExampleStaticFileServing.h"
int main (int argc, char * argv []) {
QCoreApplication app (argc, argv);
//new ExampleRequestParsing (&app);
new ExampleStaticFileServing (QDir::homePath (), &app);
return app.exec ();
}
......
import qbs;
Application {
name: "qt5-http-server-test-app";
targetName: "Qt5HttpServerTestApp";
name: "app-test-qt5-http-static-files";
targetName: "testQt5HttpStaticFiles";
Depends {
name: "cpp";
......@@ -17,11 +17,16 @@ Application {
Group {
name: "C++ Sources";
files: ["Example*.cpp", "main.cpp"];
files: [
"ExampleStaticFileServing.cpp",
"main_staticFiles.cpp",
]
}
Group {
name: "C++ Headers";
files: ["Example*.h"]
files: [
"ExampleStaticFileServing.h",
]
}
Group {
qbs.install: true;
......
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