git.haldean.org wallbotui / master
fixes for nonhidip Haldean Brown 2 years ago
4 changed file(s) with 61 addition(s) and 59 deletion(s). Raw diff Collapse all Expand all
0 import qbs
1 import qbs.Process
2 import qbs.File
3 import qbs.FileInfo
4 import qbs.TextFile
5 import "../../../libs/openFrameworksCompiled/project/qtcreator/ofApp.qbs" as ofApp
6
7 Project{
8 property string of_root: "../../.."
9
10 ofApp {
11 name: { return FileInfo.baseName(path) }
12
13 files: [
14 'src/main.cpp',
15 'src/ofApp.cpp',
16 'src/ofApp.h',
17 'src/bot.h',
18 'src/box.h',
19 ]
20
21 of.addons: [
22 ]
23
24 // additional flags for the project. the of module sets some
25 // flags by default to add the core libraries, search paths...
26 // this flags can be augmented through the following properties:
27 of.pkgConfigs: [] // list of additional system pkgs to include
28 of.includePaths: [] // include search paths
29 of.cFlags: [] // flags passed to the c compiler
30 of.cxxFlags: [] // flags passed to the c++ compiler
31 of.linkerFlags: [] // flags passed to the linker
32 of.defines: [] // defines are passed as -D to the compiler
33 // and can be checked with #ifdef or #if in the code
34
35 // other flags can be set through the cpp module: http://doc.qt.io/qbs/cpp-module.html
36 // eg: this will enable ccache when compiling
37 //
38 // cpp.compilerWrapper: 'ccache'
39
40 Depends{
41 name: "cpp"
42 }
43
44 // common rules that parse the include search paths, core libraries...
45 Depends{
46 name: "of"
47 }
48
49 // dependency with the OF library
50 Depends{
51 name: "openFrameworks"
52 }
53 }
54
55 references: [FileInfo.joinPaths(of_root, "/libs/openFrameworksCompiled/project/qtcreator/openFrameworks.qbs")]
56 }
+0
-55
emptyExample.qbs less more
0 import qbs
1 import qbs.Process
2 import qbs.File
3 import qbs.FileInfo
4 import qbs.TextFile
5 import "../../../libs/openFrameworksCompiled/project/qtcreator/ofApp.qbs" as ofApp
6
7 Project{
8 property string of_root: "../../.."
9
10 ofApp {
11 name: { return FileInfo.baseName(path) }
12
13 files: [
14 'src/main.cpp',
15 'src/ofApp.cpp',
16 'src/ofApp.h',
17 ]
18
19 of.addons: [
20 ]
21
22 // additional flags for the project. the of module sets some
23 // flags by default to add the core libraries, search paths...
24 // this flags can be augmented through the following properties:
25 of.pkgConfigs: [] // list of additional system pkgs to include
26 of.includePaths: [] // include search paths
27 of.cFlags: [] // flags passed to the c compiler
28 of.cxxFlags: [] // flags passed to the c++ compiler
29 of.linkerFlags: [] // flags passed to the linker
30 of.defines: [] // defines are passed as -D to the compiler
31 // and can be checked with #ifdef or #if in the code
32
33 // other flags can be set through the cpp module: http://doc.qt.io/qbs/cpp-module.html
34 // eg: this will enable ccache when compiling
35 //
36 // cpp.compilerWrapper: 'ccache'
37
38 Depends{
39 name: "cpp"
40 }
41
42 // common rules that parse the include search paths, core libraries...
43 Depends{
44 name: "of"
45 }
46
47 // dependency with the OF library
48 Depends{
49 name: "openFrameworks"
50 }
51 }
52
53 references: [FileInfo.joinPaths(of_root, "/libs/openFrameworksCompiled/project/qtcreator/openFrameworks.qbs")]
54 }
22
33 int main()
44 {
5 ofSetupOpenGL(2000, 1200, OF_WINDOW);
5 ofSetupOpenGL(1200, 700, OF_WINDOW);
66 ofRunApp(new ofApp());
77 }
22 void ofApp::setup()
33 {
44 ofDisableAntiAliasing();
5 fontb.loadFont("C:\\Users\\willh\\Google Drive\\Projects\\Wallbot\\UI\\apps\\myApps\\WALL__UI\\src\\CPMono_v07_Black.otf", 16);
6 fontr.loadFont("C:\\Users\\willh\\Google Drive\\Projects\\Wallbot\\UI\\apps\\myApps\\WALL__UI\\src\\CPMono_v07_Plain.otf", 16);
5 fontb.loadFont("./src/CPMono_v07_Black.otf", 9);
6 fontr.loadFont("./src/CPMono_v07_Plain.otf", 9);
77
88 int width = ofGetWidth();
99 int height = ofGetHeight();
3939
4040 ofSetColor(0);
4141 ofNoFill();
42 ofSetLineWidth(2);
42 ofSetLineWidth(1);
4343
4444 header->draw();
4545 }