[anjuta] project-wizard: More fixes to js_minimal template
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] project-wizard: More fixes to js_minimal template
- Date: Sat, 19 Mar 2011 15:31:52 +0000 (UTC)
commit 3c5e412951bde35fc395f3a3ac635f296934abe0
Author: Johannes Schmid <jhs gnome org>
Date: Sat Mar 19 11:28:07 2011 -0400
project-wizard: More fixes to js_minimal template
plugins/project-wizard/templates/js.wiz.in | 8 ++++++++
.../templates/js_minimal/src/Makefile.am.tpl | 10 ++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/plugins/project-wizard/templates/js.wiz.in b/plugins/project-wizard/templates/js.wiz.in
index 1340e91..0587864 100644
--- a/plugins/project-wizard/templates/js.wiz.in
+++ b/plugins/project-wizard/templates/js.wiz.in
@@ -29,6 +29,7 @@
<property type="hidden" name="NameCUpper" default='[+(string->c-name! (string-substitute (string-upcase (get "Name")) " " "_"))+]'/>
<property type="hidden" name="NameCLower" default='[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]'/>
<property type="hidden" name="NameHLower" default='[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]'/>
+ <property type="boolean" name="HaveBuilderUI" _label="Use GtkBuilder for user interface:" _description="Use GtkBuilder to create the user-interface in a graphical way and load it from xml files at runtime" default="1"/>
</page>
<content>
@@ -44,6 +45,13 @@
<file source="Makefile.am.tpl" destination="Makefile.am"/>
</directory>
</directory>
+ <directory source="gtk" destination="[+Destination+]">
+ <directory source="src">
+[+IF (=(get "HaveBuilderUI") "1")+]
+ <file source="project.ui" destination="[+NameHLower+].ui"/>
+[+ENDIF+]
+ </directory>
+ </directory>
<directory source="licenses" destination="[+Destination+]">
<file source="[+License+]" destination="COPYING"/>
</directory>
diff --git a/plugins/project-wizard/templates/js_minimal/src/Makefile.am.tpl b/plugins/project-wizard/templates/js_minimal/src/Makefile.am.tpl
index 48d3864..0751e98 100644
--- a/plugins/project-wizard/templates/js_minimal/src/Makefile.am.tpl
+++ b/plugins/project-wizard/templates/js_minimal/src/Makefile.am.tpl
@@ -3,6 +3,11 @@
## Created by Anjuta
+[+IF (=(get "HaveBuilderUI") "1")+]
+uidir = $(datadir)/[+NameHLower+]/ui
+ui_DATA = [+NameHLower+].ui
+[+ENDIF+]
+
jsdir = $(pkgdatadir)
js_DATA = \
main.js
@@ -11,6 +16,11 @@ bin_SCRIPTs = main.js
EXTRA_DIST = $(js_DATA)
+[+IF (=(get "HaveBuilderUI") "1")+]
+EXTRA_DIST += $(ui_DATA)
+[+ENDIF+]
+
uninstall-local:
-rm -r $(jsdir)
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]