forked from wxFormBuilder/wxFormBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
105 lines (96 loc) · 3.46 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
project('wxformbuilder', 'cpp', default_options : ['cpp_std=c++17'])
cxx = meson.get_compiler('cpp')
add_project_arguments(cxx.get_supported_arguments([
'-Wall',
'-Wextra',
'-Winit-self',
'-Wimplicit-fallthrough',
'-Wpedantic',
'-Wdelete-non-virtual-dtor',
'-Wlogical-op',
'-Wduplicated-cond',
'-Wduplicated-branches',
'-Wno-overloaded-virtual',
'-Wtautological-compare',
'-Wextra-semi',
'-Wno-inconsistent-missing-override',
'-Wno-ignored-qualifiers',
'-Wno-unused-parameter',
'-Wno-cast-function-type',
]), language : 'cpp')
if get_option('buildtype') == 'debug'
add_project_arguments('-D__WXFB_DEBUG__', language : 'cpp')
endif
if get_option('buildtype') == 'release'
add_project_arguments('-DNDEBUG', language : 'cpp')
endif
wx_dep = dependency('wxwidgets', version : '>=3.0.3',
modules : ['std', 'stc', 'propgrid', 'aui', 'ribbon', 'richtext'])
media_dep = dependency('wxwidgets', version : '>=3.0.3', modules : ['media'], required : false)
if media_dep.found()
add_project_arguments('-DUSE_MEDIACTRL', language : 'cpp')
endif
inc = include_directories(['sdk/plugin_interface'])
ticpp_dep = subproject('ticpp').get_variable('ticpp_dep')
plugin_interface = static_library('plugin_interface', [
'sdk/plugin_interface/xrcconv.cpp',
'sdk/plugin_interface/forms/wizard.cpp',
], dependencies : [ticpp_dep, wx_dep, media_dep])
executable('wxformbuilder', [
'src/codegen/codegen.cpp',
'src/codegen/codeparser.cpp',
'src/codegen/codewriter.cpp',
'src/codegen/cppcg.cpp',
'src/codegen/luacg.cpp',
'src/codegen/phpcg.cpp',
'src/codegen/pythoncg.cpp',
'src/codegen/xrccg.cpp',
'src/maingui.cpp',
'src/md5/md5.cc',
'src/model/database.cpp',
'src/model/objectbase.cpp',
'src/model/types.cpp',
'src/model/xrcfilter.cpp',
'src/rad/about.cpp',
'src/rad/appdata.cpp',
'src/rad/bitmaps.cpp',
'src/rad/cmdproc.cpp',
'src/rad/codeeditor/codeeditor.cpp',
'src/rad/cpppanel/cpppanel.cpp',
'src/rad/dataobject/dataobject.cpp',
'src/rad/designer/innerframe.cpp',
'src/rad/designer/menubar.cpp',
'src/rad/designer/visualeditor.cpp',
'src/rad/designer/visualobj.cpp',
'src/rad/geninheritclass/geninhertclass_gui.cpp',
'src/rad/geninheritclass/geninhertclass.cpp',
'src/rad/inspector/objinspect.cpp',
'src/rad/inspector/wxfbadvprops.cpp',
'src/rad/luapanel/luapanel.cpp',
'src/rad/mainframe.cpp',
'src/rad/menueditor.cpp',
'src/rad/objecttree/objecttree.cpp',
'src/rad/palette.cpp',
'src/rad/phppanel/phppanel.cpp',
'src/rad/pythonpanel/pythonpanel.cpp',
'src/rad/title.cpp',
'src/rad/wxfbevent.cpp',
'src/rad/wxfbmanager.cpp',
'src/rad/xrcpanel/xrcpanel.cpp',
'src/rad/xrcpreview/xrcpreview.cpp',
'src/utils/annoyingdialog.cpp',
'src/utils/filetocarray.cpp',
'src/utils/stringutils.cpp',
'src/utils/typeconv.cpp',
'src/utils/typeconv.cpp',
'src/utils/wxfbipc.cpp',
], dependencies : [ticpp_dep, wx_dep, media_dep], include_directories : inc,
link_with : plugin_interface, install : true)
foreach plugin : ['common', 'containers', 'forms', 'layout', 'additional']
shared_library(plugin, 'plugins/@0@/@[email protected]'.format(plugin), dependencies : [ticpp_dep, wx_dep],
include_directories : inc, link_with : plugin_interface, install : true,
install_dir : '@0@/wxformbuilder'.format(get_option('libdir')))
endforeach
install_subdir('output/xml', install_dir : 'share/wxformbuilder')
install_subdir('output/resources', install_dir : 'share/wxformbuilder')
install_subdir('output/plugins', install_dir : 'share/wxformbuilder')