##// END OF EJS Templates
Small fix on Meson build defs...
jeandet -
r1463:05465cf17f8e
parent child
Show More
@@ -1,48 +1,48
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 )
General Comments 0
You need to be logged in to leave comments. Login now