* plugins/debug-manager/sharedlib.c,
[anjuta-git-plugin.git] / plugins / project-wizard / templates / cpp.wiz
blobd0d2814a83cf9fe4f8b9db66669e336ddbe085ce
1 <project-wizard>
2         <name>Generic C++</name>
3         <description>A generic C++ project</description>
4         <icon>cpp-logo.png</icon>
5         <category>C++</category>
6 </project-wizard>
8 <page name="basic" _label="Basic information" _description="General Project Information">
9         <property type="string" name="Name" _label="Project Name:" _description="project name" default="foobar-cpp" summary="yes" mandatory="yes"/>
10         <property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
11         <property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
12         <property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
13 </page>
15 <page name="options" _label="Project options" _description="Options for project build system">
16         <property type="directory" name="Destination" _label="Destination:" _description="" default="[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]" mandatory="yes" exist="no" summary="yes"/>
17         <property type="list" name="License" _label="License" _description="Select code license" default="GPL" editable="no">
18                 <item name="GPL" _label="General Public License (GPL)"/>
19                 <item name="LGPL" _label="Lesser General Public License (LGPL)"/>
20                 <item name="BSD" _label="Berkeley Software Distribution License (BSD)"/>
21                 <item name="None" _label="No license"/>
22         </property>
23         <property type="hidden" name="NameUpper" default="[+(string-upcase (get "Name"))+]"/>
24         <property type="hidden" name="NameLower" default="[+(string-downcase (get "Name"))+]"/>
25         <property type="hidden" name="NameCUpper" default="[+(string->c-name! (string-upcase (get "Name")))+]"/>
26         <property type="hidden" name="NameCLower" default="[+(string->c-name! (string-downcase (get "Name")))+]"/>
27         <property type="boolean" name="HaveSharedlib" _label="Add shared library support:" _description="Adds support for building shared libraries in your project" default="1"/>
28         <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"/>
29         <property type="boolean" name="HavePackage" _label="Configure external packages:" _description="Use pkg-config to add library support from other packages" default="0"/>
30 </page>
32 [+IF (=(get "HavePackage") "1")+]
33 <page name="packages" _label="Configure external packages" _description="Configure external packages">
34         <property type="string" name="PackageModule1" _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"/>
35         <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'"/>
36         <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'"/>
37         <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'"/>
38         <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'"/>
39 </page>
40 [+ENDIF+]
42 <content>
43         <directory source="terminal" destination="[+Destination+]">
44                 <file source="AUTHORS"/>
45                 <file source="ChangeLog"/>
46                 <file source="Makefile.am.tpl" destination="Makefile.am"/>
47                 <file source="NEWS"/>
48                 <file source="README"/>
49                 <file source="autogen.sh" executable="yes"/>
50                 <file destination="[+NameLower+].anjuta" source="project.anjuta"/>
51                 <file source="cvsignore" destination=".cvsignore"/>
52                 <directory source="src">
53                         <file source="cvsignore" destination=".cvsignore"/>
54                 </directory>
55                 [+IF (=(get "HaveI18n") "1") +]
56                 <directory source="po">
57                         <file source="ChangeLog"/>
58                         <file source="LINGUAS" />
59                         <file source="cvsignore" destination=".cvsignore"/>
60                 </directory>
61                 [+ENDIF+]
62         </directory>
63         <directory source="cpp" destination="[+Destination+]">
64           <file source="configure.ac.tpl" destination="configure.ac"/>
65                 <directory source="src">
66                         <file source="main.cc"/>
67                         <file source="Makefile.am.tpl" destination="Makefile.am"/>
68                 </directory>
69         [+IF (=(get "HaveI18n") "1")+]
70                 <directory source="po">
71                         <file source="POTFILES.in"/>
72                 </directory>
73         [+ENDIF+]
74         </directory>
75 </content>
78 <action>
79         <run command="sh -c 'cd [+Destination+] &amp;&amp; ./autogen.sh'"/>
80         <open file="[+Destination+]/[+NameLower+].anjuta"/>
81 </action>