aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/wizard/meson.build
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-12 12:25:53 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-12 12:25:53 +0900
commit397e21d0de067ab7623bb8427e2a688f482882f5 (patch)
tree2d4bbf97ecdb1bea1497b4ed791172e4e71f9421 /src/modules/wizard/meson.build
parentmeson build - minimize teamwork meson build too like other modules (diff)
downloadenlightenment-397e21d0de067ab7623bb8427e2a688f482882f5.tar.gz
meson build - simplify wizard module build like others
Diffstat (limited to 'src/modules/wizard/meson.build')
-rw-r--r--src/modules/wizard/meson.build91
1 files changed, 35 insertions, 56 deletions
diff --git a/src/modules/wizard/meson.build b/src/modules/wizard/meson.build
index fda7db1e7..83acfa37e 100644
--- a/src/modules/wizard/meson.build
+++ b/src/modules/wizard/meson.build
@@ -1,72 +1,51 @@
-module = 'wizard'
-opt = 'wizard'
-conf = 'USE_MODULE_WIZARD'
-
src = files(
'e_mod_main.c',
'e_wizard.c',
'e_wizard.h'
)
-pages = [
- 'page_000',
- 'page_010',
- 'page_011',
- 'page_020',
- 'page_030',
- 'page_040',
- 'page_050',
- 'page_060',
- 'page_065',
- 'page_070',
- 'page_080',
- 'page_090',
- 'page_100',
- 'page_110',
- 'page_120',
- 'page_130',
- 'page_150',
- 'page_160',
- 'page_170',
- 'page_180',
- 'page_200'
-]
-
-ibar_def = [
- 'data/def-ibar.txt'
-]
-
-desktops = [
- 'data/desktop/home.desktop',
- 'data/desktop/root.desktop',
- 'data/desktop/tmp.desktop'
-]
-
-dir_mod = join_paths(dir_module_e, module)
-dir_mod_bin = join_paths(dir_mod, module_arch)
-
-if get_option(opt) == true
- config_h.set(conf, '1')
- module_files += join_paths(dir_mod_bin, module + '.so')
-
- install_data(ibar_def, install_dir: dir_mod)
- install_data(desktops, install_dir: join_paths(dir_mod, 'desktop'))
-
- shared_module(module, src,
- include_directories: include_directories(module_includes),
- name_prefix : '',
- dependencies : module_deps,
- install_dir : dir_mod_bin,
- install : true
- )
+if get_option(m) == true
+ pages = [
+ 'page_000',
+ 'page_010',
+ 'page_011',
+ 'page_020',
+ 'page_030',
+ 'page_040',
+ 'page_050',
+ 'page_060',
+ 'page_065',
+ 'page_070',
+ 'page_080',
+ 'page_090',
+ 'page_100',
+ 'page_110',
+ 'page_120',
+ 'page_130',
+ 'page_150',
+ 'page_160',
+ 'page_170',
+ 'page_180',
+ 'page_200'
+ ]
foreach page: pages
shared_module(page, '@0@.c'.format(page),
include_directories: include_directories(module_includes),
name_prefix : '',
dependencies : module_deps,
- install_dir : dir_mod_bin,
+ install_dir : _dir_bin,
install : true
)
endforeach
+
+ data = [
+ 'data/def-ibar.txt'
+ ]
+ install_data(['data/desktop/home.desktop',
+ 'data/desktop/root.desktop',
+ 'data/desktop/tmp.desktop'],
+ install_dir: join_paths(_dir, 'desktop'))
+
+ no_icon = true
endif