meosn - fix install of scripts and bins and their timestamps and modes
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 27 Dec 2018 15:24:08 +0000 (15:24 +0000)
committerShinwoo Kim <cinoo.kim@samsung.com>
Thu, 3 Jan 2019 09:00:25 +0000 (18:00 +0900)
i was comparing the bindir results of aurtofoo vs meson and some
things were missing/poking out at me. this makes them be in sync -
install the ewl_wl+test obnaries, ensure to chmod +x+r etc. scritps
AND install them

meson.build
meson/meson-chmod.sh [new file with mode: 0755]
src/bin/edje/meson.build
src/bin/eet/meson.build
src/bin/efl_wl/meson.build
src/scripts/eina/meson.build [new file with mode: 0644]
src/scripts/eo/meson.build
src/scripts/meson.build

index 876d885..b3845ab 100644 (file)
@@ -4,11 +4,12 @@ project('efl', ['c','cpp'],
   meson_version : '>=0.47'
 )
 
+chmod    = join_paths(meson.source_root(), 'meson/meson-chmod.sh')
+
 if host_machine.system() == 'darwin'
   add_languages('objc')
 endif
 
-
 clean_check = run_command('meson/clean_check.sh')
 if clean_check.returncode() == 0
   error('Meson build requires a clean source tree')
diff --git a/meson/meson-chmod.sh b/meson/meson-chmod.sh
new file mode 100755 (executable)
index 0000000..e72cb72
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+chmod "$1" "${DESTDIR}/$2" && touch "${DESTDIR}/$2"
index 24d62ea..2a54e7d 100644 (file)
@@ -94,3 +94,7 @@ edje_watch = executable('edje_watch',
         install: true,
         c_args : package_c_args,
 )
+
+install_data('edje_recc', install_dir : dir_bin)
+o = join_paths(dir_bin, 'edje_recc')
+meson.add_install_script(chmod, 'a+r+x', o)
index 6f742ae..f2b7b4a 100644 (file)
@@ -14,3 +14,12 @@ if meson.is_cross_build()
 else
   eet_bin = _eet_bin
 endif
+
+install_data('diffeet', install_dir : dir_bin)
+o = join_paths(dir_bin, 'diffeet')
+meson.add_install_script(chmod, 'a+r+x', o)
+
+install_data('vieet', install_dir : dir_bin)
+o = join_paths(dir_bin, 'vieet')
+meson.add_install_script(chmod, 'a+r+x', o)
+
index 5f0d655..c95cd0e 100644 (file)
@@ -1,11 +1,13 @@
 executable('efl_wl_test',
   'efl_wl_test.c',
   include_directories : config_dir,
-  dependencies: [efl_wl, elementary]
+  dependencies: [efl_wl, elementary],
+  install: true,
 )
 
 executable('efl_wl_test_stack',
   'efl_wl_test_stack.c',
   include_directories : config_dir,
-  dependencies: [efl_wl, elementary]
+  dependencies: [efl_wl, elementary],
+  install: true,
 )
diff --git a/src/scripts/eina/meson.build b/src/scripts/eina/meson.build
new file mode 100644 (file)
index 0000000..aacf0a7
--- /dev/null
@@ -0,0 +1,3 @@
+install_data('eina-bench-cmp', install_dir : dir_bin)
+o = join_paths(dir_bin, 'eina-bench-cmp')
+meson.add_install_script(chmod, 'a+r+x', o)
index bdb2803..164f672 100644 (file)
@@ -9,3 +9,7 @@ configure_file(
   output: 'eo_debug',
   configuration: eo_debug_config,
   install_dir: dir_bin)
+
+# make sure it's executable
+o = join_paths(dir_bin, 'eo_debug')
+meson.add_install_script(chmod, 'a+r+x', o)
index 6057ad7..304d437 100644 (file)
@@ -1,2 +1,3 @@
 subdir('eo')
 subdir('elua')
+subdir('eina')