dwm-speedie/meson.build

81 lines
2.1 KiB
Meson
Raw Normal View History

2023-07-06 19:10:41 +02:00
project(
'dwm',
'c',
version : '"6.4"',
default_options : ['warning_level=3']
)
cc = meson.get_compiler('c')
project_source_files = [
'drw.c',
'dwm.c',
2023-09-13 15:24:02 +02:00
'util.c',
]
project_status_source_files = [
'status.c',
2023-07-06 19:10:41 +02:00
]
project_dependencies = [
2023-09-13 10:57:58 +02:00
dependency('xft'),
2023-07-06 19:10:41 +02:00
dependency('pango'),
2023-09-13 10:57:58 +02:00
dependency('pangoxft'),
2023-07-06 19:10:41 +02:00
dependency('x11'),
dependency('xcb'),
dependency('xcb-res'),
dependency('x11-xcb'),
dependency('xrender'),
cc.find_library('m', required : false),
]
2023-09-13 15:24:02 +02:00
project_status_dependencies = [
dependency('x11'),
]
2023-07-06 19:10:41 +02:00
build_args = [
'-DVERSION=' + meson.project_version(),
2023-09-13 15:24:02 +02:00
]
2023-07-06 19:10:41 +02:00
2023-09-13 15:24:02 +02:00
build_status_args = [
'-DVERSION=' + meson.project_version(),
2023-07-06 19:10:41 +02:00
]
if get_option('xinerama')
project_dependencies += [ dependency('xinerama') ]
build_args += [ '-DXINERAMA' ]
endif
project_target = executable(
meson.project_name(),
project_source_files, install : true,
dependencies: project_dependencies,
c_args : build_args,
)
2023-09-13 15:24:02 +02:00
project_status_target = executable(
'dwm_status',
project_status_source_files, install : true,
dependencies : project_status_dependencies,
c_args : build_status_args,
)
install_data(sources : 'modules/module_bat', install_dir : 'bin')
install_data(sources : 'modules/module_config', install_dir : 'bin')
install_data(sources : 'modules/module_date', install_dir : 'bin')
install_data(sources : 'modules/module_dfmpeg', install_dir : 'bin')
install_data(sources : 'modules/module_email', install_dir : 'bin')
install_data(sources : 'modules/module_music', install_dir : 'bin')
install_data(sources : 'modules/module_net', install_dir : 'bin')
install_data(sources : 'modules/module_news', install_dir : 'bin')
install_data(sources : 'modules/module_ram', install_dir : 'bin')
install_data(sources : 'modules/module_temp', install_dir : 'bin')
install_data(sources : 'modules/module_time', install_dir : 'bin')
install_data(sources : 'modules/module_toggle', install_dir : 'bin')
install_data(sources : 'modules/module_vol', install_dir : 'bin')
install_data(sources : 'modules/module_weather', install_dir : 'bin')
2023-09-13 15:28:55 +02:00
install_data(sources : 'dwm_init', install_dir : 'bin')
2023-09-13 15:24:02 +02:00
2023-07-06 19:10:41 +02:00
test('dwm', project_target)
2023-09-13 15:24:02 +02:00
test('dwm_status', project_status_target)