* plugins/project-wizard/templates/gtkmm.wiz,
[anjuta-git-plugin.git] / plugins / project-wizard / templates / gtk.wiz
blob3cbf05480df1c2408b821f6ebfaec4db2687def9
1 <project-wizard>
2         <name>GTK+</name>
3         <description>A generic GTK+ project</description>
4         <icon>gtk-logo.png</icon>
5         <category>C</category>
6         <required-program>automake</required-program>
7         <required-program>autoconf</required-program>
8         <required-program>make</required-program>
9         <required-package>gtk+-2.0 >= 2.8</required-package>
10         <required-package>libglade-2.0 >= 2.6.0</required-package>
11 </project-wizard>
13 <page name="basic" _label="Basic information" _description="General Project Information">
14         <property type="string" name="Name" _label="Project Name:" _description="project name" default="gtk-foobar" summary="yes" mandatory="yes"/>
15         <property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
16         <property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
17         <property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
18 </page>
20 <page name="options" _label="Project options" _description="Options for project build system">
21         <property type="directory" name="Destination" _label="Destination:" _description="" default="[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]" mandatory="yes" exist="no" summary="yes"/>
22         <property type="list" name="License" _label="License" _description="Select code license" default="GPL" editable="no">
23                 <item name="GPL" _label="General Public License (GPL)"/>
24                 <item name="LGPL" _label="Lesser General Public License (LGPL)"/>
25                 <item name="BSD" _label="Berkeley Software Distribution License (BSD)"/>
26                 <item name="None" _label="No license"/>
27         </property>
28         <property type="hidden" name="NameUpper" default="[+(string-upcase (get "Name"))+]"/>
29         <property type="hidden" name="NameLower" default="[+(string-downcase (get "Name"))+]"/>
30         <property type="hidden" name="NameCUpper" default="[+(string->c-name! (string-substitute (string-upcase (get "Name")) " " "_"))+]"/>
31         <property type="hidden" name="NameCLower" default="[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]"/>
32         <property type="hidden" name="NameHLower" default="[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]"/>
33         <property type="hidden" name="HavePackage" default="1"/>
34         <property type="hidden" name="PackageModule1" default="gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0"/>
35         <property type="boolean" name="HaveLangCPP" _label="Add C++ support:" _description="Adds C++ support to the project so that C++ source files can be built" default="0"/>
36         <property type="boolean" name="HaveI18n" _label="Add internationalization:" _description="Adds support for internationalization so that your project can have translations in different languages" default="1"/>
37         <property type="boolean" name="HaveSharedlib" _label="Add shared library support:" _description="Adds support for building shared libraries in your project" default="1"/>
38         <property type="boolean" name="HaveGtkDoc" _label="Add gtk-doc system:" _description="gtk-doc is used to compile API documentations for GObject based classes" default="0"/>
39         <property type="boolean" name="HavePackageExtra" _label="Configure external packages:" _description="Use pkg-config to add library support from other packages" default="0"/>
40 </page>
42 [+IF (=(get "HavePackageExtra") "1")+]
43 <page name="packages" _label="Configure external packages" _description="Configure external packages">
44         <property type="string" name="PackageModule2" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'" mandatory="yes"/>
45         <property type="string" name="PackageModule3" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
46         <property type="string" name="PackageModule4" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
47         <property type="string" name="PackageModule5" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
48 </page>
49 [+ENDIF+]
51 <content>
52         <directory source="terminal" destination="[+Destination+]">
53                 <file source="AUTHORS"/>
54                 <file source="ChangeLog"/>
55                 <file source="Makefile.am.tpl" destination="Makefile.am"/>
56                 <file source="NEWS"/>
57                 <file source="README"/>
58                 <file source="autogen.sh" executable="yes"/>
59                 <file source="configure.ac.tpl" destination="configure.ac"/>
60                 <file destination="[+NameHLower+].anjuta" source="project.anjuta"/>
61                 <file source="cvsignore" destination=".cvsignore"/>
62                 <directory source="src">
63                         <file source="cvsignore" destination=".cvsignore"/>
64                 </directory>
65                 [+IF (=(get "HaveI18n") "1") +]
66                 <directory source="po">
67                         <file source="ChangeLog"/>
68                         <file source="POTFILES.in"/>
69                         <file source="LINGUAS" />
70                         <file source="cvsignore" destination=".cvsignore"/>
71                 </directory>
72                 [+ENDIF+]
73         </directory>
74         <directory source="gtk" destination="[+Destination+]">
75                 <directory source="src">
76                         <file source="main.c"/>
77                         <file source="callbacks.c"/>
78                         <file source="callbacks.h"/>
79                         <file source="project.glade" destination="[+NameHLower+].glade"/>
80                         <file source="Makefile.am.tpl" destination="Makefile.am"/>
81                 </directory>
82         </directory>
83 </content>
85 <action>
86         <run command="sh -c 'cd [+Destination+] &amp;&amp; ./autogen.sh'"/>
87         <open file="[+Destination+]/[+NameHLower+].anjuta"/>
88 </action>