[gnome-builder] Revert "beautifier: embed beautifier resources"



commit caeb167805b4df15929b70f12bf449cbb387e875
Author: Christian Hergert <chergert redhat com>
Date:   Mon Sep 25 16:08:22 2017 -0700

    Revert "beautifier: embed beautifier resources"
    
    This reverts commit 9fed9f2ab895cdbc47fb5d0e23c1117ab5109c03.

 src/plugins/beautifier/beautifier.gresource.xml    |   25 --------------------
 .../data/automake/config.ini                       |    0
 .../data/c-sharp/config.ini                        |    0
 .../{ => beautifier_plugin}/data/c-sharp/mono.cfg  |    0
 .../{ => beautifier_plugin}/data/c/config.ini      |    0
 .../{ => beautifier_plugin}/data/c/gnu-indent.cfg  |    0
 .../{ => beautifier_plugin}/data/c/k&r.cfg         |    0
 .../data/c/linux-kernel.cfg                        |    0
 .../{ => beautifier_plugin}/data/d/config.ini      |    0
 .../{ => beautifier_plugin}/data/d/d.cfg           |    0
 .../{ => beautifier_plugin}/data/global.ini        |    0
 .../{ => beautifier_plugin}/data/html/config.ini   |    0
 .../data/html/tidy-autoindent.cfg                  |    0
 .../data/html/tidy-indent.cfg                      |    0
 .../{ => beautifier_plugin}/data/objc/config.ini   |    0
 .../{ => beautifier_plugin}/data/objc/objc.cfg     |    0
 .../{ => beautifier_plugin}/data/python/config.ini |    0
 .../{ => beautifier_plugin}/data/xml/config.ini    |    0
 .../internal/align_makefile.py                     |    0
 src/plugins/beautifier/gb-beautifier.gresource.xml |    7 +++++
 src/plugins/beautifier/meson.build                 |    8 ++++-
 21 files changed, 13 insertions(+), 27 deletions(-)
---
diff --git a/src/plugins/beautifier/data/automake/config.ini 
b/src/plugins/beautifier/beautifier_plugin/data/automake/config.ini
similarity index 100%
rename from src/plugins/beautifier/data/automake/config.ini
rename to src/plugins/beautifier/beautifier_plugin/data/automake/config.ini
diff --git a/src/plugins/beautifier/data/c-sharp/config.ini 
b/src/plugins/beautifier/beautifier_plugin/data/c-sharp/config.ini
similarity index 100%
rename from src/plugins/beautifier/data/c-sharp/config.ini
rename to src/plugins/beautifier/beautifier_plugin/data/c-sharp/config.ini
diff --git a/src/plugins/beautifier/data/c-sharp/mono.cfg 
b/src/plugins/beautifier/beautifier_plugin/data/c-sharp/mono.cfg
similarity index 100%
rename from src/plugins/beautifier/data/c-sharp/mono.cfg
rename to src/plugins/beautifier/beautifier_plugin/data/c-sharp/mono.cfg
diff --git a/src/plugins/beautifier/data/c/config.ini 
b/src/plugins/beautifier/beautifier_plugin/data/c/config.ini
similarity index 100%
rename from src/plugins/beautifier/data/c/config.ini
rename to src/plugins/beautifier/beautifier_plugin/data/c/config.ini
diff --git a/src/plugins/beautifier/data/c/gnu-indent.cfg 
b/src/plugins/beautifier/beautifier_plugin/data/c/gnu-indent.cfg
similarity index 100%
rename from src/plugins/beautifier/data/c/gnu-indent.cfg
rename to src/plugins/beautifier/beautifier_plugin/data/c/gnu-indent.cfg
diff --git a/src/plugins/beautifier/data/c/k&r.cfg b/src/plugins/beautifier/beautifier_plugin/data/c/k&r.cfg
similarity index 100%
rename from src/plugins/beautifier/data/c/k&r.cfg
rename to src/plugins/beautifier/beautifier_plugin/data/c/k&r.cfg
diff --git a/src/plugins/beautifier/data/c/linux-kernel.cfg 
b/src/plugins/beautifier/beautifier_plugin/data/c/linux-kernel.cfg
similarity index 100%
rename from src/plugins/beautifier/data/c/linux-kernel.cfg
rename to src/plugins/beautifier/beautifier_plugin/data/c/linux-kernel.cfg
diff --git a/src/plugins/beautifier/data/d/config.ini 
b/src/plugins/beautifier/beautifier_plugin/data/d/config.ini
similarity index 100%
rename from src/plugins/beautifier/data/d/config.ini
rename to src/plugins/beautifier/beautifier_plugin/data/d/config.ini
diff --git a/src/plugins/beautifier/data/d/d.cfg b/src/plugins/beautifier/beautifier_plugin/data/d/d.cfg
similarity index 100%
rename from src/plugins/beautifier/data/d/d.cfg
rename to src/plugins/beautifier/beautifier_plugin/data/d/d.cfg
diff --git a/src/plugins/beautifier/data/global.ini b/src/plugins/beautifier/beautifier_plugin/data/global.ini
similarity index 100%
rename from src/plugins/beautifier/data/global.ini
rename to src/plugins/beautifier/beautifier_plugin/data/global.ini
diff --git a/src/plugins/beautifier/data/html/config.ini 
b/src/plugins/beautifier/beautifier_plugin/data/html/config.ini
similarity index 100%
rename from src/plugins/beautifier/data/html/config.ini
rename to src/plugins/beautifier/beautifier_plugin/data/html/config.ini
diff --git a/src/plugins/beautifier/data/html/tidy-autoindent.cfg 
b/src/plugins/beautifier/beautifier_plugin/data/html/tidy-autoindent.cfg
similarity index 100%
rename from src/plugins/beautifier/data/html/tidy-autoindent.cfg
rename to src/plugins/beautifier/beautifier_plugin/data/html/tidy-autoindent.cfg
diff --git a/src/plugins/beautifier/data/html/tidy-indent.cfg 
b/src/plugins/beautifier/beautifier_plugin/data/html/tidy-indent.cfg
similarity index 100%
rename from src/plugins/beautifier/data/html/tidy-indent.cfg
rename to src/plugins/beautifier/beautifier_plugin/data/html/tidy-indent.cfg
diff --git a/src/plugins/beautifier/data/objc/config.ini 
b/src/plugins/beautifier/beautifier_plugin/data/objc/config.ini
similarity index 100%
rename from src/plugins/beautifier/data/objc/config.ini
rename to src/plugins/beautifier/beautifier_plugin/data/objc/config.ini
diff --git a/src/plugins/beautifier/data/objc/objc.cfg 
b/src/plugins/beautifier/beautifier_plugin/data/objc/objc.cfg
similarity index 100%
rename from src/plugins/beautifier/data/objc/objc.cfg
rename to src/plugins/beautifier/beautifier_plugin/data/objc/objc.cfg
diff --git a/src/plugins/beautifier/data/python/config.ini 
b/src/plugins/beautifier/beautifier_plugin/data/python/config.ini
similarity index 100%
rename from src/plugins/beautifier/data/python/config.ini
rename to src/plugins/beautifier/beautifier_plugin/data/python/config.ini
diff --git a/src/plugins/beautifier/data/xml/config.ini 
b/src/plugins/beautifier/beautifier_plugin/data/xml/config.ini
similarity index 100%
rename from src/plugins/beautifier/data/xml/config.ini
rename to src/plugins/beautifier/beautifier_plugin/data/xml/config.ini
diff --git a/src/plugins/beautifier/internal/align_makefile.py 
b/src/plugins/beautifier/beautifier_plugin/internal/align_makefile.py
similarity index 100%
rename from src/plugins/beautifier/internal/align_makefile.py
rename to src/plugins/beautifier/beautifier_plugin/internal/align_makefile.py
diff --git a/src/plugins/beautifier/gb-beautifier.gresource.xml 
b/src/plugins/beautifier/gb-beautifier.gresource.xml
new file mode 100644
index 0000000..c1fb12f
--- /dev/null
+++ b/src/plugins/beautifier/gb-beautifier.gresource.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+  <gresource prefix="/org/gnome/builder/plugins/beautifier_plugin">
+    <file>beautifier.plugin</file>
+    <file>gtk/menus.ui</file>
+  </gresource>
+</gresources>
diff --git a/src/plugins/beautifier/meson.build b/src/plugins/beautifier/meson.build
index 40b7386..6fa72b9 100644
--- a/src/plugins/beautifier/meson.build
+++ b/src/plugins/beautifier/meson.build
@@ -1,8 +1,8 @@
 if get_option('with_beautifier')
 
 beautifier_resources = gnome.compile_resources(
-  'beautifier-resources',
-  'beautifier.gresource.xml',
+  'gb-beautifier-resources',
+  'gb-beautifier.gresource.xml',
   c_name: 'gb_beautifier'
 )
 
@@ -22,4 +22,8 @@ beautifier_sources = [
 gnome_builder_plugins_sources += files(beautifier_sources)
 gnome_builder_plugins_sources += beautifier_resources[0]
 
+beautifier_datadir = join_paths(get_option('prefix'), plugindatadir, 'beautifier_plugin')
+install_subdir('beautifier_plugin/data', install_dir: beautifier_datadir)
+install_subdir('beautifier_plugin/internal', install_dir: beautifier_datadir)
+
 endif


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