xref: /aoo42x/main/scp2/source/sdkoo/sdkoo.scp (revision cdf0e10c)
1/*************************************************************************
2*
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26************************************************************************/
27
28#include "macros.inc"
29
30Installation gid_Installation_Sdk
31    ProductName = "${PRODUCTNAME}";
32    ProductVersion = "${PRODUCTVERSION}";
33    ProductExtension = "${PRODUCTEXTENSION}";
34    OOoBaseVersion = "${OOOBASEVERSION}";
35#if defined WNT
36    DefaultDestPath = "<winprogpath>\%PRODUCTNAME";
37#else
38    DefaultDestPath = "/opt/%PRODUCTNAME";
39#endif
40End
41
42DataCarrier gid_Datacarrier
43    Name = "%PRODUCTNAME %PRODUCTVERSION";
44    DiskNo = 1;
45End
46
47#ifndef MACOSX
48
49#ifdef WNT
50Directory gid_Dir_Sdkoo_Root
51    ParentID = PREDEFINED_PROGDIR;
52    HostName = "${PRODUCTNAME}_${PRODUCTVERSION}_${POSTVERSIONEXTENSION}";
53    Styles = (OFFICEDIRECTORY, ISINSTALLLOCATION);
54End
55#endif
56
57#ifndef WNT
58Directory gid_Dir_Ooo_Openofficeorg_Sdk
59    ParentID = PREDEFINED_PROGDIR;
60  #ifdef WNT
61    HostName = "${BASISROOTNAME}";
62  #else
63    HostName = "${UNIXBASISROOTNAME}";
64  #endif
65End
66#endif
67
68#ifndef WNT
69Directory gid_Dir_Ooo_Basis_Sdk
70    ParentID = gid_Dir_Ooo_Openofficeorg_Sdk;
71  #ifdef WNT
72    HostName = "Basis ${OOOBASEVERSION}";
73  #else
74    HostName = "basis${OOOBASEVERSION}";
75  #endif
76    Styles = (BASISDIRECTORY);
77End
78#endif
79
80#endif
81
82Directory gid_Dir_Basis_Sdk
83#if defined MACOSX
84    ParentID = PREDEFINED_PROGDIR;
85    // DosName = "OpenOffice.org${OOOBASEVERSION}_SDK";
86    DosName = "OpenOffice.org_SDK";
87#else
88  #if defined WNT
89    ParentID = gid_Dir_Sdkoo_Root;
90  #else
91    ParentID = gid_Dir_Ooo_Basis_Sdk;
92  #endif
93    DosName = "sdk";
94#endif
95End
96
97
98#if defined MACOSX
99ScpAction scp_Copy_License_Html_Sdk
100    README_TXT_ALL_LANG(Copy, LICENSE, html);
101    README_TXT_ALL_LANG(Name, LICENSE, html);
102    Styles = (SCPZIP_REPLACE);
103    Subdir = "LICENSEs";
104End
105
106ScpAction scp_Copy_License_Txt_Sdk
107    README_ALL_LANG(Copy, LICENSE);
108    README_ALL_LANG(Name, LICENSE);
109    Styles = (SCPZIP_REPLACE);
110    Subdir = "LICENSEs";
111End
112#endif
113
114
115Directory gid_Dir_Share_Sdk
116    ParentID = gid_Dir_Basis_Sdk;
117    DosName = "share";
118End
119
120Directory gid_Dir_Share_Readme_Sdk
121    ParentID = gid_Dir_Share_Sdk;
122    DosName = "readme";
123End
124
125
126Module gid_Module_Root
127    Name = "sdkoo";
128    Description = "sdkoo";
129    PackageInfo = "packinfo_sdkoo.txt";
130End
131
132
133File gid_File_Txt_License
134    TXT_FILE_BODY;
135    Dir = gid_Dir_Share_Readme_Sdk;
136  #ifdef UNX
137    Name = "LICENSE_en-US";
138  #endif
139  #ifdef WNT
140    Name = "license_en-US.txt";
141  #endif
142    Styles = (PACKED, SCPZIP_REPLACE);
143End
144
145File gid_File_Txt_License_Html
146    TXT_FILE_BODY;
147    Dir = gid_Dir_Share_Readme_Sdk;
148  #ifdef UNX
149    Name = "LICENSE_en-US.html";
150  #endif
151  #ifdef WNT
152    Name = "license_en-US.html";
153  #endif
154    Styles = (PACKED, SCPZIP_REPLACE);
155End
156
157File gid_File_Txt_Readme
158    TXT_FILE_BODY;
159    Dir = gid_Dir_Share_Readme_Sdk;
160  #ifdef UNX
161    Name = "README_en-US";
162  #endif
163  #ifdef WNT
164    Name = "readme_en-US.txt";
165  #endif
166    Styles = (PACKED, SCPZIP_REPLACE);
167End
168
169File gid_File_Txt_Readme_Html
170    TXT_FILE_BODY;
171    Dir = gid_Dir_Share_Readme_Sdk;
172  #ifdef UNX
173    Name = "README_en-US.html";
174  #endif
175  #ifdef WNT
176    Name = "readme_en-US.html";
177  #endif
178    Styles = (PACKED, SCPZIP_REPLACE);
179End
180
181
182File gid_File_Zip_Odkexamples
183    TXT_FILE_BODY;
184    Dir = gid_Dir_Basis_Sdk;
185    Name = "odkexamples.zip";
186    Styles = (ARCHIVE,USE_INTERNAL_RIGHTS);
187End
188
189
190File gid_File_Zip_Odkcommon
191    TXT_FILE_BODY;
192    Dir = gid_Dir_Basis_Sdk;
193    Name = "odkcommon.zip";
194    Styles = (ARCHIVE,USE_INTERNAL_RIGHTS);
195End
196
197#if (!defined(WNT) && !defined( MACOSX) )
198Directory gid_Dir_Lib_Sdk
199    Styles = (CREATE);
200    ParentID = gid_Dir_Basis_Sdk;
201    DosName = "lib";
202End
203#endif
204
205#if (!defined(WNT) && !defined( MACOSX) )
206Unixlink gid_Unixlink_Sal_Link_Sdk
207    BIN_FILE_BODY;
208    Styles = ();
209    Name = SCP2_URE_DL_UNO_NORMAL("sal");
210    Dir = gid_Dir_Lib_Sdk;
211    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_VER("sal", "3");
212End
213#endif
214
215#if (!defined(WNT) && !defined( MACOSX) )
216Unixlink gid_Unixlink_Salhelper_Link_Sdk
217    BIN_FILE_BODY;
218    Styles = ();
219    Name = SCP2_URE_DL_UNO_COMID_NORMAL("salhelper");
220    Dir = gid_Dir_Lib_Sdk;
221    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_COMID_VER("salhelper", "3");
222End
223#endif
224
225#if (!defined(WNT) && !defined( MACOSX) )
226Unixlink gid_Unixlink_Cppu_Link_Sdk
227    BIN_FILE_BODY;
228    Styles = ();
229    Name = SCP2_URE_DL_UNO_NORMAL("cppu");
230    Dir = gid_Dir_Lib_Sdk;
231    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_VER("cppu", "3");
232End
233#endif
234
235#if (!defined(WNT) && !defined( MACOSX) )
236Unixlink gid_Unixlink_Cppuhelper_Link_Sdk
237    BIN_FILE_BODY;
238    Styles = ();
239    // Styles = (LAYERLINK);
240    Name = SCP2_URE_DL_UNO_COMID_NORMAL("cppuhelper");
241    Dir = gid_Dir_Lib_Sdk;
242    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_COMID_VER("cppuhelper", "3");
243End
244#endif
245
246#if (!defined(WNT) && !defined( MACOSX) )
247Unixlink gid_Unixlink_Purpenvhelper_Link_Sdk
248    BIN_FILE_BODY;
249    Styles = ();
250    Name = SCP2_URE_DL_UNO_COMID_NORMAL("purpenvhelper");
251    Dir = gid_Dir_Lib_Sdk;
252    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_COMID_VER("purpenvhelper", "3");
253End
254#endif
255