aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-20 14:08:05 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-21 11:11:54 +0900
commit8726c95e2b1f779653d15965f902a84621f90111 (patch)
tree31ec82382a245bf85497e65312818ec7a98beead /data
parenttheme - remove warnings about missing description in theme part (diff)
downloadrage-8726c95e2b1f779653d15965f902a84621f90111.tar.gz
replace autofoo with meson...
learning how meson works. may not be the cleanest or nicest... but it's not too bad. it does work. ninja dist works. build times improved. for a full autogen.sh, make etc. -> 5.205s to 0.759s
Diffstat (limited to 'data')
-rw-r--r--data/desktop/meson.build2
-rw-r--r--data/icons/meson.build2
-rw-r--r--data/meson.build3
-rw-r--r--data/themes/meson.build13
-rwxr-xr-xdata/themes/perms.sh3
5 files changed, 23 insertions, 0 deletions
diff --git a/data/desktop/meson.build b/data/desktop/meson.build
new file mode 100644
index 0000000..8fa561b
--- /dev/null
+++ b/data/desktop/meson.build
@@ -0,0 +1,2 @@
+install_data('rage.desktop',
+ install_dir: join_paths(dir_data, 'applications'))
diff --git a/data/icons/meson.build b/data/icons/meson.build
new file mode 100644
index 0000000..d7de06a
--- /dev/null
+++ b/data/icons/meson.build
@@ -0,0 +1,2 @@
+install_data('rage.png',
+ install_dir: join_paths(dir_data, 'icons'))
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..2f97830
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,3 @@
+subdir('themes')
+subdir('desktop')
+subdir('icons')
diff --git a/data/themes/meson.build b/data/themes/meson.build
new file mode 100644
index 0000000..e895488
--- /dev/null
+++ b/data/themes/meson.build
@@ -0,0 +1,13 @@
+cmd = [ edje_cmd,
+ '-id', join_paths(meson.source_root(), 'data' , 'themes', 'images'),
+ '@INPUT@', '@OUTPUT@'
+ ]
+src = 'default'
+custom_target(src + '.edj',
+ input : src + '.edc',
+ output : src + '.edj',
+ command : cmd,
+ install_dir: join_paths(dir_data, proj, 'themes'),
+ install : true
+ )
+meson.add_install_script('perms.sh')
diff --git a/data/themes/perms.sh b/data/themes/perms.sh
new file mode 100755
index 0000000..9aa2a99
--- /dev/null
+++ b/data/themes/perms.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+chmod a+r "${DESTDIR}/${MESON_INSTALL_PREFIX}/share/rage/themes/default.edj"