build: add built .plugin files to CLEANFILES
[anjuta.git] / plugins / project-wizard / templates / anjuta-plugin.wiz.in
blobe3b343998b8b7ab2851b9f27b8e830f9a5611d31
1 <project-template>
2         <project-wizard>
3                 <_name>Anjuta Plugin</_name>
4                 <_description>Anjuta plugin project that uses libanjuta framework</_description>
5                 <icon>anjuta-plugin-logo.png</icon>
6                 <category>C</category>
7                 <order>6</order>
8                 <required-program>automake</required-program>
9                 <required-program>autoconf</required-program>
10                 <required-program>make</required-program>
11                 <required-package>libanjuta-3.0</required-package>
12         </project-wizard>
14         <page name="basic" _label="Basic information" _description="General Project Information">
15                 <property type="string" name="Name" _label="Project Name:" _description="Project name must not contain spaces, because it will be the name of the project build target (executable, library etc.)" default="anjuta-plugin-foobar" summary="yes" restriction="filename" mandatory="yes"/>
16                 <property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
17                 <property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
18                 <property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
19         </page>
21         <page name="options" _label="Project options" _description="Options for project build system">
22                 <property type="directory" name="Destination" _label="Destination:" _description="" default='[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]' mandatory="yes" exist="no" summary="yes"/>
23                 [+INCLUDE "licenses.tpl"+]
24                 <property type="hidden" name="NameUpper" default='[+(string-upcase (get "Name"))+]'/>
25                 <property type="hidden" name="NameLower" default='[+(string-downcase (get "Name"))+]'/>
26                 <property type="hidden" name="NameCUpper" default='[+(string-append (if (~~* (get "Name") "[0-9]") "_" "") (string->c-name! (string-substitute (string-upcase (get "Name")) " " "_")))+]'/>
27                 <property type="hidden" name="NameCLower" default='[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]'/>
28                 <property type="hidden" name="NameHLower" default='[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]'/>
29                 <property type="hidden" name="NameCClass" default='[+(string-capitalize! (string-substitute (get "Name") "-" ""))+]'/>
30                 <property type="string" name="PluginTitle" _label="Plugin Title:" _description="Display title of the plugin" default="Anjuta Foobar Sample Plugin" summary="yes" mandatory="yes"/>
31                 <property type="string" name="PluginDescription" _label="Plugin Description:" _description="Display description of the plugin" default="A sample demonstration plugin for Anjuta" summary="yes" mandatory="yes"/>
32                 <property type="string" name="PluginClass" _label="Plugin Class Name:" _description="Plugin class name" default="AnjutaFoobarPlugin" summary="yes" mandatory="yes"/>
33                 <property type="string" name="PluginDependencies" _label="Plugin Dependencies:" _description="Comma separated, other plugins that this plugin depends on. It could be either primary interface name or plugin location (library:class)" default="" summary="yes"/>
34                 <property type="icon" name="Icon" _label="Icon File:" _description="Icon file for the plugin" summary="yes" mandatory="yes"/>
35                 <property type="boolean" name="HasGladeFile" _label="Create Gtk Builder interface file" _description="Create a template Gtk Builder interface file" default="1"/>
36                 <property type="boolean" name="HasUI" _label="Plugin has menus or/and toolbars" _description="Whether the plugin has menus or toolbars" default="1"/>
37                 <property type="hidden" name="HaveI18n" default="1"/>
38                 <property type="hidden" name="HaveSharedlib" default="1"/>
39                 <property type="boolean" name="HavePackage" _label="Configure external packages:" _description="Use pkg-config to add library support from other packages" default="0"/>
40         </page>
42         <page name="packages" _label="Configure external packages" _description="Configure external packages">
43                 <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"/>
44         [+IF (=(get "HavePackage") "1")+]
45                 <property type="package" name="PackageModule1" _label="Required Packages:" _description="Check the packages that your project requires" mandatory="yes"/>
46         [+ENDIF+]
47         </page>
49         <page name="watches" _label="Values to watch" _description="Shell values to watch">
50                 <property type="string" name="value1" _label="Value Name:" _description="Name of the value to watch" default="" summary="yes"/>
51                 <property type="string" name="value2" _label="Value Name:" _description="Name of the value to watch" default="" summary="yes"/>
52                 <property type="string" name="value3" _label="Value Name:" _description="Name of the value to watch" default="" summary="yes"/>
53         </page>
55         <page name="compoments" _label="Implement plugin interfaces" _description="Plugin interfaces to implement">
56                 <property type="string" name="interface1" _label="Interface:" _description="Interface implemented by the plugin"/>
57                 <property type="string" name="interface2" _label="Interface:" _description="Interface implemented by the plugin"/>
58                 <property type="string" name="interface3" _label="Interface:" _description="Interface implemented by the plugin"/>
59         </page>
61         <content>
62                 <directory source="terminal" destination="[+Destination+]">
63                         <file source="AUTHORS"/>
64                         <file source="ChangeLog"/>
65                         <file source="Makefile.am.tpl" destination="Makefile.am"/>
66                         <file source="NEWS"/>
67                         <file source="README"/>
68                         <file source="autogen.sh" executable="yes"/>
69                         <file destination="[+NameHLower+].anjuta" source="project.anjuta"/>
70                         [+IF (=(get "HaveI18n") "1")+]
71                         <directory source="po">
72                                 <file source="ChangeLog"/>
73                                 <file source="LINGUAS" />
74                         </directory>
75                         [+ENDIF+]
76                 </directory>
77                 <directory source="anjuta-plugin" destination="[+Destination+]">
78                         <file source="configure.ac.tpl" destination="configure.ac"/>
79                         <directory source="src">
80                                 <file source="Makefile.am.tpl" destination="Makefile.am"/>
81                                 <file source="plugin.c"/>
82                                 <file source="plugin.h"/>
83                                 <file source="[+Icon+]" destination="[+NameHLower+].png"/>
84                                 <file source="plugin.plugin.in" destination="[+NameHLower+].plugin.in"/>
85                                 [+IF (=(get "HasUI") "1")+]
86                                         <file source="plugin.xml" destination="[+NameHLower+].xml"/>
87                                 [+ENDIF+]
88                                 [+IF (=(get "HasGladeFile") "1")+]
89                                         <file source="plugin.ui" destination="[+NameHLower+].ui"/>
90                                 [+ENDIF+]
91                         </directory>
92                         [+IF (=(get "HaveI18n") "1")+]
93                         <directory source="po">
94                                 <file source="POTFILES.in"/>
95                         </directory>
96                         [+ENDIF+]
97                 </directory>
98                 <directory source="licenses" destination="[+Destination+]">
99                         <file source="[+License+].txt" destination="COPYING"/>  
100                 </directory>
101                 <directory source="minimal" destination="[+Destination+]">
102                         <directory source="." destination=".anjuta">
103                                 <directory source="." destination="session">
104                                         <file source="anjuta.session"/>
105                                 </directory>
106                         </directory>
107                 </directory>
108         </content>
110         <action>
111                 <open file="[+Destination+]/[+NameHLower+].anjuta"/>
112         </action>
113 </project-template>