[gimp/meson: 22/805] Added data subdir



commit 8f585a442f1a1a6c70fffec9fac0cd73aa7b8dec
Author: Félix Piédallu <felix piedallu me>
Date:   Wed Nov 1 18:30:26 2017 +0100

    Added data subdir

 data/brushes/meson.build        |   27 +++++++++++
 data/dynamics/Basic/meson.build |   12 +++++
 data/dynamics/FX/meson.build    |    7 +++
 data/dynamics/meson.build       |   15 ++++++
 data/environ/meson.build        |    3 +
 data/gradients/meson.build      |   93 +++++++++++++++++++++++++++++++++++++++
 data/images/meson.build         |   11 +++++
 data/interpreters/meson.build   |    3 +
 data/meson.build                |   11 +++++
 data/palettes/meson.build       |   47 ++++++++++++++++++++
 data/patterns/meson.build       |   21 +++++++++
 data/tags/meson.build           |   14 ++++++
 data/tips/meson.build           |   30 ++++++++++++
 data/tool-presets/meson.build   |   21 +++++++++
 meson.build                     |   16 +++---
 15 files changed, 323 insertions(+), 8 deletions(-)
---
diff --git a/data/brushes/meson.build b/data/brushes/meson.build
new file mode 100644
index 0000000..b1ef0d7
--- /dev/null
+++ b/data/brushes/meson.build
@@ -0,0 +1,27 @@
+brushes = run_command('find',
+  meson.current_source_dir(),
+  '-maxdepth', '1',
+  '-mindepth', '1',
+  '-type', 'd',
+  '-printf', '%f\n'
+).stdout().strip().split('\n')
+
+foreach brush : brushes
+  files = run_command('find',
+    join_paths(meson.current_source_dir(), brush),
+    '-type', 'f',
+    '(',
+    '-name', '*.gbr',
+    '-o',
+    '-name', '*.gih',
+    '-o',
+    '-name', '*.vbr',
+    ')',
+    '-printf', brush + '/%f\n'
+  ).stdout().strip().split('\n')
+
+
+  install_data(files,
+    install_dir: join_paths(datadir, 'brushes', brush)
+  )
+endforeach
diff --git a/data/dynamics/Basic/meson.build b/data/dynamics/Basic/meson.build
new file mode 100644
index 0000000..03581d6
--- /dev/null
+++ b/data/dynamics/Basic/meson.build
@@ -0,0 +1,12 @@
+install_data([
+    'Basic-Simple.gdyn',
+    'Dynamics-Random.gdyn',
+    'Negative-Size-Pressure.gdyn',
+    'Pencil-Generic.gdyn',
+    'Pencil-Shader.gdyn',
+    'Pen-Generic.gdyn',
+    'Pressure-Opacity.gdyn',
+    'Pressure-Size.gdyn',
+  ],
+  install_dir: join_paths(datadir, 'dynamics', 'Basic')
+)
diff --git a/data/dynamics/FX/meson.build b/data/dynamics/FX/meson.build
new file mode 100644
index 0000000..5f74e71
--- /dev/null
+++ b/data/dynamics/FX/meson.build
@@ -0,0 +1,7 @@
+install_data([
+    'Confetti.gdyn',
+    'Perspective.gdyn',
+    'Speed_Size_Opacity.gdyn',
+  ],
+  install_dir: join_paths(datadir, 'dynamics', 'FX')
+)
diff --git a/data/dynamics/meson.build b/data/dynamics/meson.build
new file mode 100644
index 0000000..086bc78
--- /dev/null
+++ b/data/dynamics/meson.build
@@ -0,0 +1,15 @@
+install_data([
+    'Basic-Dynamics.gdyn',
+    'Color-From-Gradient.gdyn',
+    'Dynamics-Off.gdyn',
+    'Fade-Tapering.gdyn',
+    'Random-Color.gdyn',
+    'Tilt-Angle.gdyn',
+    'Track-Direction.gdyn',
+    'Velocity-Tapering.gdyn',
+  ],
+  install_dir: join_paths(datadir, 'dynamics', 'FX')
+)
+
+subdir('Basic')
+subdir('FX')
diff --git a/data/environ/meson.build b/data/environ/meson.build
new file mode 100644
index 0000000..5668bb4
--- /dev/null
+++ b/data/environ/meson.build
@@ -0,0 +1,3 @@
+install_data('default.env',
+  install_dir: join_paths(datadir, 'environ')
+)
\ No newline at end of file
diff --git a/data/gradients/meson.build b/data/gradients/meson.build
new file mode 100644
index 0000000..ef5361f
--- /dev/null
+++ b/data/gradients/meson.build
@@ -0,0 +1,93 @@
+gradients = [
+  'Abstract_1.ggr',
+  'Abstract_2.ggr',
+  'Abstract_3.ggr',
+  'Aneurism.ggr',
+  'Blinds.ggr',
+  'Blue_Green.ggr',
+  'Browns.ggr',
+  'Brushed_Aluminium.ggr',
+  'Burning_Paper.ggr',
+  'Burning_Transparency.ggr',
+  'Caribbean_Blues.ggr',
+  'CD_Half.ggr',
+  'CD.ggr',
+  'Coffee.ggr',
+  'Cold_Steel_2.ggr',
+  'Cold_Steel.ggr',
+  'Crown_molding.ggr',
+  'Dark_1.ggr',
+  'Deep_Sea.ggr',
+  'Default.ggr',
+  'Flare_Glow_Angular_1.ggr',
+  'Flare_Glow_Radial_1.ggr',
+  'Flare_Glow_Radial_2.ggr',
+  'Flare_Glow_Radial_3.ggr',
+  'Flare_Glow_Radial_4.ggr',
+  'Flare_Radial_101.ggr',
+  'Flare_Radial_102.ggr',
+  'Flare_Radial_103.ggr',
+  'Flare_Rays_Radial_1.ggr',
+  'Flare_Rays_Radial_2.ggr',
+  'Flare_Rays_Size_1.ggr',
+  'Flare_Sizefac_101.ggr',
+  'Four_bars.ggr',
+  'Full_saturation_spectrum_CCW.ggr',
+  'Full_saturation_spectrum_CW.ggr',
+  'Golden.ggr',
+  'Greens.ggr',
+  'Horizon_1.ggr',
+  'Horizon_2.ggr',
+  'Incandescent.ggr',
+  'Land_1.ggr',
+  'Land_and_Sea.ggr',
+  'Metallic_Something.ggr',
+  'Nauseating_Headache.ggr',
+  'Neon_Cyan.ggr',
+  'Neon_Green.ggr',
+  'Neon_Yellow.ggr',
+  'Pastel_Rainbow.ggr',
+  'Pastels.ggr',
+  'Purples.ggr',
+  'Radial_Eyeball_Blue.ggr',
+  'Radial_Eyeball_Brown.ggr',
+  'Radial_Eyeball_Green.ggr',
+  'Radial_Glow_1.ggr',
+  'Radial_Rainbow_Hoop.ggr',
+  'Rounded_edge.ggr',
+  'Shadows_1.ggr',
+  'Shadows_2.ggr',
+  'Shadows_3.ggr',
+  'Skyline_polluted.ggr',
+  'Skyline.ggr',
+  'Square_Wood_Frame.ggr',
+  'Sunrise.ggr',
+  'Three_bars_sin.ggr',
+  'Tropical_Colors.ggr',
+  'Tube_Red.ggr',
+  'Wood_1.ggr',
+  'Wood_2.ggr',
+  'Yellow_Contrast.ggr',
+  'Yellow_Orange.ggr',
+]
+
+
+gradients_obsolete = [
+  'French_flag.ggr',
+  'French_flag_smooth.ggr',
+  'German_flag.ggr',
+  'German_flag_smooth.ggr',
+  'Mexican_flag.ggr',
+  'Mexican_flag_smooth.ggr',
+  'Romanian_flag.ggr',
+  'Romanian_flag_smooth.ggr',
+]
+
+install_data(
+  gradients,
+  install_dir: join_paths(datadir, 'gradients'),
+)
+install_data(
+  gradients_obsolete,
+  install_dir: join_paths(datadir, 'gradients', 'gimp-obsolete-files'),
+)
diff --git a/data/images/meson.build b/data/images/meson.build
new file mode 100644
index 0000000..eca6aed
--- /dev/null
+++ b/data/images/meson.build
@@ -0,0 +1,11 @@
+
+images = [
+  'gimp-splash.png',
+  'wilber.png',
+]
+images += stable ? 'gimp-logo.png' : 'gimp-devel-logo.png'
+
+install_data(
+  images,
+  install_dir: join_paths(datadir, 'images'),
+)
\ No newline at end of file
diff --git a/data/interpreters/meson.build b/data/interpreters/meson.build
new file mode 100644
index 0000000..6949860
--- /dev/null
+++ b/data/interpreters/meson.build
@@ -0,0 +1,3 @@
+install_data('default.interp',
+  install_dir: join_paths(datadir, 'interpreters')
+)
\ No newline at end of file
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..1c31fad
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,11 @@
+subdir('brushes')
+subdir('dynamics')
+subdir('environ')
+subdir('gradients')
+subdir('images')
+subdir('interpreters')
+subdir('palettes')
+subdir('patterns')
+subdir('tags')
+subdir('tips')
+subdir('tool-presets')
diff --git a/data/palettes/meson.build b/data/palettes/meson.build
new file mode 100644
index 0000000..213809e
--- /dev/null
+++ b/data/palettes/meson.build
@@ -0,0 +1,47 @@
+
+palettes = [
+  'Bears.gpl',
+  'Bgold.gpl',
+  'Blues.gpl',
+  'Borders.gpl',
+  'Browns_And_Yellows.gpl',
+  'Caramel.gpl',
+  'Cascade.gpl',
+  'China.gpl',
+  'Coldfire.gpl',
+  'Cool_Colors.gpl',
+  'Cranes.gpl',
+  'Dark_pastels.gpl',
+  'Default.gpl',
+  'Ega.gpl',
+  'Firecode.gpl',
+  'Gold.gpl',
+  'Grayblue.gpl',
+  'Grays.gpl',
+  'GrayViolet.gpl',
+  'Greens.gpl',
+  'Hilite.gpl',
+  'Khaki.gpl',
+  'Lights.gpl',
+  'Muted.gpl',
+  'Named_Colors.gpl',
+  'News3.gpl',
+  'Op2.gpl',
+  'Paintjet.gpl',
+  'Pastels.gpl',
+  'Plasma.gpl',
+  'Reds.gpl',
+  'Reds_And_Purples.gpl',
+  'Royal.gpl',
+  'Tango.gpl',
+  'Topographic.gpl',
+  'Visibone.gpl',
+  'Visibone_2.gpl',
+  'Volcano.gpl',
+  'Warm_Colors.gpl',
+  'Web.gpl',
+]
+
+install_data(palettes,
+  install_dir: join_paths(datadir, 'palettes'),
+)
\ No newline at end of file
diff --git a/data/patterns/meson.build b/data/patterns/meson.build
new file mode 100644
index 0000000..1006ef5
--- /dev/null
+++ b/data/patterns/meson.build
@@ -0,0 +1,21 @@
+patterns = run_command('find',
+  meson.current_source_dir(),
+  '-maxdepth', '1',
+  '-mindepth', '1',
+  '-type', 'd',
+  '-printf', '%f\n'
+).stdout().strip().split('\n')
+
+foreach pattern : patterns
+  files = run_command('find',
+    join_paths(meson.current_source_dir(), pattern),
+    '-type', 'f',
+    '-name', '*.pat',
+    '-printf', pattern + '/%f\n'
+  ).stdout().strip().split('\n')
+
+
+  install_data(files,
+    install_dir: join_paths(datadir, 'patterns', pattern)
+  )
+endforeach
diff --git a/data/tags/meson.build b/data/tags/meson.build
new file mode 100644
index 0000000..82628c6
--- /dev/null
+++ b/data/tags/meson.build
@@ -0,0 +1,14 @@
+
+xmlfile = 'gimp-tags-default.xml'
+
+# i18n.merge_file(xmlfile,
+#   input : xmlfile + '.in',
+#   output: xmlfile,
+#
+#   po_dir: join_paths(meson.source_root(), 'po-tags'),
+#
+#   install: true,
+#   install_dir: join_paths(datadir, 'tags'),
+# )
+
+# TODO
\ No newline at end of file
diff --git a/data/tips/meson.build b/data/tips/meson.build
new file mode 100644
index 0000000..7d1ab64
--- /dev/null
+++ b/data/tips/meson.build
@@ -0,0 +1,30 @@
+
+xmlfile = 'gimp-tips.xml'
+
+# i18n.merge_file(xmlfile,
+#   input : xmlfile + '.in',
+#   output: xmlfile,
+#
+#   po_dir: join_paths(meson.source_root(), 'po-tips'),
+#
+#   install: true,
+#   install_dir: join_paths(datadir, 'tips'),
+# )
+#
+#
+# if xsltproc.found()
+#   custom_target('fortunes',
+#     input : [ xmlfile, 'fortunes.xsl', ],
+#     output: 'fortunes',
+#     command: [
+#       xsltproc.path(),
+#       '--stringparam',
+#       'lang', 'en',
+#       '-o', '@OUTPUT@',
+#       '@INPUT1@',
+#     ],
+#     build_by_default: false,
+#   )
+# endif
+
+# TODO
\ No newline at end of file
diff --git a/data/tool-presets/meson.build b/data/tool-presets/meson.build
new file mode 100644
index 0000000..e329961
--- /dev/null
+++ b/data/tool-presets/meson.build
@@ -0,0 +1,21 @@
+presets = run_command('find',
+  meson.current_source_dir(),
+  '-maxdepth', '1',
+  '-mindepth', '1',
+  '-type', 'd',
+  '-printf', '%f\n'
+).stdout().strip().split('\n')
+
+foreach preset : presets
+  files = run_command('find',
+    join_paths(meson.current_source_dir(), preset),
+    '-type', 'f',
+    '-name', '*.gtp',
+    '-printf', preset + '/%f\n'
+  ).stdout().strip().split('\n')
+
+
+  install_data(files,
+    install_dir: join_paths(datadir, 'tool-presets', preset)
+  )
+endforeach
diff --git a/meson.build b/meson.build
index 961b5c5..445ed0d 100644
--- a/meson.build
+++ b/meson.build
@@ -737,14 +737,14 @@ has_nl_measurement = cc.has_function(
 
 subdir('cursors')
 subdir('themes')
-subdir('po')
-subdir('po-libgimp')
-subdir('po-plug-ins')
-subdir('po-python')
-subdir('po-script-fu')
-subdir('po-tips')
-# subdir('data')
-# subdir('desktop')
+# subdir('po')
+# subdir('po-libgimp')
+# subdir('po-plug-ins')
+# subdir('po-python')
+# subdir('po-script-fu')
+# subdir('po-tips')
+subdir('data')
+subdir('desktop')
 # subdir('menus')
 # subdir('libgimpbase')
 # subdir('tools')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]