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