xref: /aoo42x/main/scp2/source/sdkoo/sdkoo.scp (revision 04c650f9)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#include "macros.inc"
25
26Installation gid_Installation_Sdk
27    ProductName = "${PRODUCTNAME}";
28    ProductVersion = "${PRODUCTVERSION}";
29    ProductExtension = "${PRODUCTEXTENSION}";
30    OOoBaseVersion = "${OOOBASEVERSION}";
31#if defined WNT
32    DefaultDestPath = "<winprogpath>\%PRODUCTNAME";
33#else
34    DefaultDestPath = "/opt/%PRODUCTNAME";
35#endif
36End
37
38DataCarrier gid_Datacarrier
39    Name = "%PRODUCTNAME %PRODUCTVERSION";
40    DiskNo = 1;
41End
42
43#ifndef MACOSX
44
45#ifdef WNT
46Directory gid_Dir_Sdkoo_Root
47    ParentID = PREDEFINED_PROGDIR;
48    HostName = "${PRODUCTNAME}_${PRODUCTVERSION}_${POSTVERSIONEXTENSION}";
49    Styles = (OFFICEDIRECTORY, ISINSTALLLOCATION);
50End
51#endif
52
53#ifndef WNT
54Directory gid_Dir_Ooo_Openofficeorg_Sdk
55    ParentID = PREDEFINED_PROGDIR;
56  #ifdef WNT
57    HostName = "${BASISROOTNAME}";
58  #else
59    HostName = "${UNIXBASISROOTNAME}";
60  #endif
61End
62#endif
63
64#ifndef WNT
65Directory gid_Dir_Ooo_Basis_Sdk
66    ParentID = gid_Dir_Ooo_Openofficeorg_Sdk;
67  #ifdef WNT
68    HostName = "Basis ${OOOBASEVERSION}";
69  #else
70    HostName = "basis${OOOBASEVERSION}";
71  #endif
72    Styles = (BASISDIRECTORY);
73End
74#endif
75
76#endif
77
78Directory gid_Dir_Basis_Sdk
79#if defined MACOSX
80    ParentID = PREDEFINED_PROGDIR;
81    // DosName = "OpenOffice.org${OOOBASEVERSION}_SDK";
82    DosName = "OpenOffice.org_SDK";
83#else
84  #if defined WNT
85    ParentID = gid_Dir_Sdkoo_Root;
86  #else
87    ParentID = gid_Dir_Ooo_Basis_Sdk;
88  #endif
89    DosName = "sdk";
90#endif
91End
92
93
94#if defined MACOSX
95ScpAction scp_Copy_License_Html_Sdk
96    README_TXT_ALL_LANG(Copy, LICENSE, html);
97    README_TXT_ALL_LANG(Name, LICENSE, html);
98    Styles = (SCPZIP_REPLACE);
99    Subdir = "LICENSEs";
100End
101
102ScpAction scp_Copy_License_Txt_Sdk
103    README_ALL_LANG(Copy, LICENSE);
104    README_ALL_LANG(Name, LICENSE);
105    Styles = (SCPZIP_REPLACE);
106    Subdir = "LICENSEs";
107End
108#endif
109
110
111Directory gid_Dir_Share_Sdk
112    ParentID = gid_Dir_Basis_Sdk;
113    DosName = "share";
114End
115
116Directory gid_Dir_Share_Readme_Sdk
117    ParentID = gid_Dir_Share_Sdk;
118    DosName = "readme";
119End
120
121
122Module gid_Module_Root
123    Name = "sdkoo";
124    Description = "sdkoo";
125    PackageInfo = "packinfo_sdkoo.txt";
126End
127
128File gid_File_Txt_Notice
129    TXT_FILE_BODY;
130    Dir = gid_Dir_Basis_Sdk;
131    Name = "NOTICE";
132    Styles = (PACKED, SCPZIP_REPLACE);
133End
134
135File gid_File_Txt_License_Root
136    TXT_FILE_BODY;
137    Dir = gid_Dir_Basis_Sdk;
138    Name = "LICENSE";
139    Styles = (PACKED, SCPZIP_REPLACE);
140End
141
142
143File gid_File_Txt_License
144    TXT_FILE_BODY;
145    Dir = gid_Dir_Share_Readme_Sdk;
146  #ifdef UNX
147    Name = "LICENSE_en-US";
148  #endif
149  #ifdef WNT
150    Name = "license_en-US.txt";
151  #endif
152    Styles = (PACKED, SCPZIP_REPLACE);
153End
154
155File gid_File_Txt_License_Html
156    TXT_FILE_BODY;
157    Dir = gid_Dir_Share_Readme_Sdk;
158  #ifdef UNX
159    Name = "LICENSE_en-US.html";
160  #endif
161  #ifdef WNT
162    Name = "license_en-US.html";
163  #endif
164    Styles = (PACKED, SCPZIP_REPLACE);
165End
166
167File gid_File_Txt_Readme
168    TXT_FILE_BODY;
169    Dir = gid_Dir_Share_Readme_Sdk;
170  #ifdef UNX
171    Name = "README_en-US";
172  #endif
173  #ifdef WNT
174    Name = "readme_en-US.txt";
175  #endif
176    Styles = (PACKED, SCPZIP_REPLACE);
177End
178
179File gid_File_Txt_Readme_Html
180    TXT_FILE_BODY;
181    Dir = gid_Dir_Share_Readme_Sdk;
182  #ifdef UNX
183    Name = "README_en-US.html";
184  #endif
185  #ifdef WNT
186    Name = "readme_en-US.html";
187  #endif
188    Styles = (PACKED, SCPZIP_REPLACE);
189End
190
191
192File gid_File_Zip_Odkexamples
193    TXT_FILE_BODY;
194    Dir = gid_Dir_Basis_Sdk;
195    Name = "odkexamples.zip";
196    Styles = (ARCHIVE,USE_INTERNAL_RIGHTS);
197End
198
199
200File gid_File_Zip_Odkcommon
201    TXT_FILE_BODY;
202    Dir = gid_Dir_Basis_Sdk;
203    Name = "odkcommon.zip";
204    Styles = (ARCHIVE,USE_INTERNAL_RIGHTS);
205End
206
207#if (!defined(WNT) && !defined( MACOSX) )
208Directory gid_Dir_Lib_Sdk
209    Styles = (CREATE);
210    ParentID = gid_Dir_Basis_Sdk;
211    DosName = "lib";
212End
213#endif
214
215#if (!defined(WNT) && !defined( MACOSX) )
216Unixlink gid_Unixlink_Sal_Link_Sdk
217    BIN_FILE_BODY;
218    Styles = ();
219    Name = SCP2_URE_DL_UNO_NORMAL("sal");
220    Dir = gid_Dir_Lib_Sdk;
221    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_VER("sal", "3");
222End
223#endif
224
225#if (!defined(WNT) && !defined( MACOSX) )
226Unixlink gid_Unixlink_Salhelper_Link_Sdk
227    BIN_FILE_BODY;
228    Styles = ();
229    Name = SCP2_URE_DL_UNO_COMID_NORMAL("salhelper");
230    Dir = gid_Dir_Lib_Sdk;
231    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_COMID_VER("salhelper", "3");
232End
233#endif
234
235#if (!defined(WNT) && !defined( MACOSX) )
236Unixlink gid_Unixlink_Cppu_Link_Sdk
237    BIN_FILE_BODY;
238    Styles = ();
239    Name = SCP2_URE_DL_UNO_NORMAL("cppu");
240    Dir = gid_Dir_Lib_Sdk;
241    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_VER("cppu", "3");
242End
243#endif
244
245#if (!defined(WNT) && !defined( MACOSX) )
246Unixlink gid_Unixlink_Cppuhelper_Link_Sdk
247    BIN_FILE_BODY;
248    Styles = ();
249    // Styles = (LAYERLINK);
250    Name = SCP2_URE_DL_UNO_COMID_NORMAL("cppuhelper");
251    Dir = gid_Dir_Lib_Sdk;
252    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_COMID_VER("cppuhelper", "3");
253End
254#endif
255
256#if (!defined(WNT) && !defined( MACOSX) )
257Unixlink gid_Unixlink_Purpenvhelper_Link_Sdk
258    BIN_FILE_BODY;
259    Styles = ();
260    Name = SCP2_URE_DL_UNO_COMID_NORMAL("purpenvhelper");
261    Dir = gid_Dir_Lib_Sdk;
262    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_COMID_VER("purpenvhelper", "3");
263End
264#endif
265
266#ifdef MACOSX
267ScpAction scp_Copy_Dmg_Background_Image
268    Copy = "osxdndinstall.png";
269    Name = "background.png";
270    UnixRights = 444;
271    Styles = ();
272    Subdir = ".background";
273End
274
275ScpAction scp_Copy_Ds_Store
276    Copy = "DS_Store_SDK";
277#    PatchCopy = "DS_Store_Patch";
278    Name = ".DS_Store";
279    UnixRights = 444;
280    Styles = ();
281End
282#endif
283