-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
132 lines (123 loc) · 2.66 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
project(
'doom-plugin',
'c',
license : 'GPL-2.0-or-later',
default_options : [
'c_std=c99',
'warning_level=3',
'buildtype=release',
'b_ndebug=if-release',
'debug=false',
],
)
add_project_arguments(
'-DNORMALUNIX',
'-DLINUX',
'-D_DEFAULT_SOURCE',
language : ['c'],
)
cc = meson.get_compiler('c')
src = files([
'src/am_map.c',
'src/d_event.c',
'src/d_items.c',
'src/d_iwad.c',
'src/d_loop.c',
'src/d_main.c',
'src/d_mode.c',
'src/d_net.c',
'src/doomdef.c',
'src/doomgeneric.c',
'src/doomstat.c',
'src/dstrings.c',
'src/dummy.c',
'src/f_finale.c',
'src/f_wipe.c',
'src/g_game.c',
'src/gusconf.c',
'src/hu_lib.c',
'src/hu_stuff.c',
'src/i_cdmus.c',
'src/i_endoom.c',
'src/i_input.c',
'src/i_joystick.c',
'src/i_scale.c',
'src/i_sound.c',
'src/i_system.c',
'src/i_timer.c',
'src/i_video.c',
'src/icon.c',
'src/info.c',
'src/m_argv.c',
'src/m_bbox.c',
'src/m_cheat.c',
'src/m_config.c',
'src/m_controls.c',
'src/m_fixed.c',
'src/m_menu.c',
'src/m_misc.c',
'src/m_random.c',
'src/memio.c',
'src/p_ceilng.c',
'src/p_doors.c',
'src/p_enemy.c',
'src/p_floor.c',
'src/p_inter.c',
'src/p_lights.c',
'src/p_map.c',
'src/p_maputl.c',
'src/p_mobj.c',
'src/p_plats.c',
'src/p_pspr.c',
'src/p_saveg.c',
'src/p_setup.c',
'src/p_sight.c',
'src/p_spec.c',
'src/p_switch.c',
'src/p_telept.c',
'src/p_tick.c',
'src/p_user.c',
'src/plugin.c',
'src/r_bsp.c',
'src/r_data.c',
'src/r_draw.c',
'src/r_main.c',
'src/r_plane.c',
'src/r_segs.c',
'src/r_sky.c',
'src/r_things.c',
'src/s_sound.c',
'src/sha1.c',
'src/sounds.c',
'src/st_lib.c',
'src/st_stuff.c',
'src/statdump.c',
'src/tables.c',
'src/v_video.c',
'src/w_checksum.c',
'src/w_file.c',
'src/w_file_stdc.c',
'src/w_main.c',
'src/w_wad.c',
'src/wi_stuff.c',
'src/z_zone.c',
])
dependencies = [
dependency('gtk+-3.0'),
dependency('libxfce4panel-2.0'),
dependency('libxfce4util-1.0'),
dependency('libxfce4ui-2'),
cc.find_library('m'),
]
plugin_path = get_option('prefix') + '/' + get_option('libdir') + '/xfce4/panel-plugins'
plugin_id = 'doom-plugin'
config = configuration_data()
config.set('PLUGIN_ID', plugin_id)
configure_file(input: 'config.h.in',
output: 'config.h',
configuration: config)
library(plugin_id, src, dependencies: dependencies,
install: true,
install_dir: plugin_path)
#install_data('doom-plugin.svg', install_dir: get_option('prefix') + '/' + get_option('datadir') + '/icons/hicolor/scalable/apps/')
install_data('plugin.desktop', install_dir: get_option('prefix') + '/' + get_option('datadir') + '/xfce4/panel/plugins/', rename: plugin_id + '.desktop')