52 lines
1.3 KiB
Meson
52 lines
1.3 KiB
Meson
|
|
#### Project ####
|
|
project('extramenu', 'c',
|
|
version: '0.3.0',
|
|
license: 'GPL v3',
|
|
meson_version: '>= 0.58.0')
|
|
|
|
|
|
#### Enlightenemnt ####
|
|
dep_e = dependency('enlightenment', version: '>= 0.23.99')
|
|
e_modules_dir = dep_e.get_variable('modules')
|
|
e_release = dep_e.get_variable('release')
|
|
e_module_arch = dep_e.get_variable('module_arch')
|
|
|
|
|
|
#### Install dirs ####
|
|
mod_install_dir = join_paths(e_modules_dir, meson.project_name())
|
|
lib_install_dir = join_paths(mod_install_dir, e_module_arch)
|
|
|
|
|
|
#### config.h ####
|
|
config_h = configuration_data()
|
|
config_h.set_quoted('PACKAGE', meson.project_name())
|
|
config_dir = include_directories('.')
|
|
|
|
|
|
#### Edje cc ####
|
|
edje_cc = find_program('edje_cc')
|
|
|
|
|
|
#### module sources ####
|
|
subdir('src')
|
|
|
|
|
|
#### write config file ####
|
|
configure_file(output: 'extramenu_config.h', configuration: config_h)
|
|
|
|
|
|
#### Data files ####
|
|
install_data('module.desktop', install_dir: mod_install_dir)
|
|
|
|
cmd = [edje_cc,
|
|
'-id', meson.project_source_root(),
|
|
'@INPUT@', '@OUTPUT@']
|
|
custom_target('e-module-extramenu.edj',
|
|
input : 'e-module-extramenu.edc',
|
|
output : 'e-module-extramenu.edj',
|
|
command : cmd,
|
|
install_dir: mod_install_dir,
|
|
install : true
|
|
)
|