2 <name>Generic (Minimal)</name>
3 <description>A generic minimal and flat project </description>
4 <icon>terminal-logo.png</icon>
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-sample" 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"/>
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"/>
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="HaveLangCPP" _label="Add C++ support:" _description="Adds c++ support to the project so that c++ source files can be built" default="0"/>
28 <property type="boolean" name="HaveSharedlib" _label="Add shared library support:" _description="Adds supports for building shared libraries in your project" default="0"/>
29 <property type="boolean" name="HavePackage" _label="Configure external packages:" _description="Use pkg-config to add library supports from other packages" default="0"/>
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 >= 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 >= 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 >= 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 >= 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 >= 2.2.0'"/>
43 <directory source="minimal" destination="[+Destination+]">
44 <file source="Makefile.am.tpl" destination="Makefile.am"/>
45 <file source="autogen.sh" executable="yes"/>
46 <file source="configure.ac.tpl" destination="configure.ac"/>
47 <file destination="[+NameLower+].anjuta" source="project.anjuta"/>
49 <directory source="terminal" destination="[+Destination+]">
50 <file source="cvsignore" destination=".cvsignore"/>
51 <directory source="src" destination=".">
52 <file source="main.c"/>
58 <run command="sh -c 'cd [+Destination+] && ./autogen.sh'"/>
59 <open file="[+Destination+]/[+NameLower+].anjuta"/>