Updated Spanish translation
[anjuta.git] / plugins / project-wizard / templates / library.wiz.in
blob9c4eae169c4b63da08b1a766cf7beece08cba13b
1 <project-template>
2         <project-wizard>
3                 <_name>Library</_name>
4                 <_description>A shared or a static library project</_description>
5                 <icon>terminal-logo.png</icon>
6                 <category>C</category>
7                 <order>3</order>
8                 <required-program>automake</required-program>
9                 <required-program>autoconf</required-program>
10                 <required-program>make</required-program>
11         </project-wizard>
12         
13         <page name="basic" _label="Basic information" _description="General Project Information">
14                 <property type="string" name="Name" _label="Project Name:" _description="project name" default="libfoo" summary="yes" restriction="filename" 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>
19         
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                 [+INCLUDE "licenses.tpl"+]
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-append (if (~~* (get "Name") "[0-9]") "_" "") (string->c-name! (string-substitute (string-upcase (get "Name")) " " "_")))+]'/>
26                 <property type="hidden" name="NameCLower" default='[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]'/>
27                 <property type="hidden" name="NameHLower" default='[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]'/>
28                 <property type="list" name="LibraryType" _label="Build library as" _description="Select library type to build" default="Both" editable="no">
29                         <item name="Both" _label="Shared and Static library"/>
30                         <item name="Shared" _label="Only Shared"/>
31                         <item name="Static" _label="Only Static"/>
32                 </property>
33                 <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"/>
34                 <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"/>
35                 <property type="boolean" name="HavePackage" _label="Configure external packages:" _description="Use pkg-config to add library support from other packages" default="0"/>
36                 <property type="boolean" name="HaveWindowsSupport" _label="Add Windows support:" _description="Adds support for building on Windows platforms" default="0"/>
37         </page>
38         
39 [+IF (=(get "HavePackage") "1")+]
40         <page name="packages" _label="Configure external packages" _description="Configure external packages">
41                 <property type="package" name="PackageModule1" _label="Required Packages:" _description="Check the packages that your project requires" mandatory="yes"/>
42         </page>
43 [+ENDIF+]       
44         
45         <content>
46                 <directory source="terminal" destination="[+Destination+]">
47                         <file source="AUTHORS"/>
48                         <file source="ChangeLog"/>
49                         <file source="Makefile.am.tpl" destination="Makefile.am"/>
50                         <file source="NEWS"/>
51                         <file source="README"/>
52                         <file source="autogen.sh" executable="yes"/>
53                         <file destination="[+NameHLower+].anjuta" source="project.anjuta"/>
54                         [+IF (=(get "HaveI18n") "1") +]
55                         <directory source="po">
56                                 <file source="ChangeLog"/>
57                                 <file source="LINGUAS" />
58                         </directory>
59                         [+ENDIF+]
60                 </directory>
61                 <directory source="library" destination="[+Destination+]">
62                         <file source="configure.ac.tpl" destination="configure.ac"/>
63                         <directory source="src">
64                                 <file source="Makefile.am.tpl" destination="Makefile.am"/>
65                                 <file source="library.pc.in" destination="[+NameHLower+]-[+Version+].pc.in"/>
66                                 <file source="lib.c"/>
67                                 <file source="lib.h" destination="[+NameHLower+].h"/>
68                         </directory>
69                         [+IF (=(get "HaveI18n") "1") +]
70                         <directory source="po">
71                                 <file source="POTFILES.in"/>
72                         </directory>
73                         [+ENDIF+]
74                 </directory>
75                 <directory source="licenses" destination="[+Destination+]">
76                         <file source="[+License+].txt" destination="COPYING"/>
77                 </directory>
78                 <directory source="minimal" destination="[+Destination+]">
79                         <directory source="." destination=".anjuta">
80                                 <directory source="." destination="session">
81                                         <file source="anjuta.session"/>
82                                 </directory>
83                         </directory>
84                 </directory>
85         </content>
86         
87         <action>
88                 <open file="[+Destination+]/[+NameHLower+].anjuta"/>
89         </action>
90 </project-template>