@@ -1,66 +1,66 | |||
|
1 | 1 | |
|
2 | 2 | app_moc_headers = [ |
|
3 | 3 | 'include/MainWindow.h', |
|
4 | 4 | 'include/toolbar.h' |
|
5 | 5 | ] |
|
6 | 6 | |
|
7 | 7 | app_ui_files = [ |
|
8 | 8 | 'ui/MainWindow.ui' |
|
9 | 9 | ] |
|
10 | 10 | |
|
11 | 11 | app_qresources = ['resources/qlopapp.qrc'] |
|
12 | 12 | |
|
13 | 13 | app_moc_files = qt5.preprocess(moc_headers : app_moc_headers, |
|
14 | 14 | ui_files : app_ui_files, |
|
15 | 15 | qresources : app_qresources) |
|
16 | 16 | |
|
17 | 17 | app_sources = [ |
|
18 | 18 | 'src/Main.cpp', |
|
19 | 19 | 'src/MainWindow.cpp', |
|
20 | 20 | 'src/toolbar.cpp' |
|
21 | 21 | ] |
|
22 | 22 | |
|
23 | 23 | app_inc = include_directories(['include']) |
|
24 | 24 | |
|
25 | 25 | if host_machine.system()=='windows' or build_machine.system()=='windows' |
|
26 | 26 | winmod = import('windows') |
|
27 | 27 | rc = winmod.compile_resources('resources/qlopapp.rc') |
|
28 | 28 | else |
|
29 | 29 | rc = [] |
|
30 | 30 | endif |
|
31 | 31 | |
|
32 | 32 | app_libs = [] |
|
33 | 33 | cpp_args = [] |
|
34 | 34 | if 'static' == get_option('default_library') |
|
35 | 35 | app_libs = [sciqlop_python_providers] |
|
36 | 36 | cpp_args += ['-DQT_STATICPLUGIN'] |
|
37 | 37 | endif |
|
38 | 38 | |
|
39 | sciqlop_app = executable('sciqlop', | |
|
40 | app_sources, | |
|
41 | app_moc_files, | |
|
42 | rc, | |
|
43 | include_directories : [ app_inc], | |
|
44 | link_with: app_libs, | |
|
45 | cpp_args: cpp_args, | |
|
46 | dependencies : [sciqlop_gui, sciqlop_core], | |
|
47 | install : true | |
|
48 | ) | |
|
39 | #sciqlop_app = executable('sciqlop', | |
|
40 | # app_sources, | |
|
41 | # app_moc_files, | |
|
42 | # rc, | |
|
43 | # include_directories : [ app_inc], | |
|
44 | # link_with: app_libs, | |
|
45 | # cpp_args: cpp_args, | |
|
46 | # dependencies : [sciqlop_gui, sciqlop_core], | |
|
47 | # install : true | |
|
48 | # ) | |
|
49 | 49 | |
|
50 | 50 | sciqlop_app_lib = library('sciqlop', |
|
51 | 51 | app_sources, |
|
52 | 52 | app_moc_files, |
|
53 | 53 | rc, |
|
54 | 54 | include_directories : [ app_inc], |
|
55 | 55 | link_with: app_libs, |
|
56 | 56 | cpp_args: cpp_args, |
|
57 | 57 | dependencies : [sciqlop_gui, sciqlop_core], |
|
58 | 58 | install : true |
|
59 | 59 | ) |
|
60 | 60 | |
|
61 | 61 | sciqlop_app_dep = declare_dependency(link_with : sciqlop_app_lib, |
|
62 | 62 | include_directories : app_inc, |
|
63 | 63 | dependencies : [sciqlop_gui, sciqlop_core]) |
|
64 | 64 | |
|
65 | 65 | |
|
66 | 66 | subdir('PySide2-bindings') |
General Comments 0
You need to be logged in to leave comments.
Login now