xref: /aoo41x/main/scp2/source/sdkoo/sdkoo.scp (revision 022bd5b4)
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
128
129File gid_File_Txt_License
130    TXT_FILE_BODY;
131    Dir = gid_Dir_Share_Readme_Sdk;
132  #ifdef UNX
133    Name = "LICENSE_en-US";
134  #endif
135  #ifdef WNT
136    Name = "license_en-US.txt";
137  #endif
138    Styles = (PACKED, SCPZIP_REPLACE);
139End
140
141File gid_File_Txt_License_Html
142    TXT_FILE_BODY;
143    Dir = gid_Dir_Share_Readme_Sdk;
144  #ifdef UNX
145    Name = "LICENSE_en-US.html";
146  #endif
147  #ifdef WNT
148    Name = "license_en-US.html";
149  #endif
150    Styles = (PACKED, SCPZIP_REPLACE);
151End
152
153File gid_File_Txt_Readme
154    TXT_FILE_BODY;
155    Dir = gid_Dir_Share_Readme_Sdk;
156  #ifdef UNX
157    Name = "README_en-US";
158  #endif
159  #ifdef WNT
160    Name = "readme_en-US.txt";
161  #endif
162    Styles = (PACKED, SCPZIP_REPLACE);
163End
164
165File gid_File_Txt_Readme_Html
166    TXT_FILE_BODY;
167    Dir = gid_Dir_Share_Readme_Sdk;
168  #ifdef UNX
169    Name = "README_en-US.html";
170  #endif
171  #ifdef WNT
172    Name = "readme_en-US.html";
173  #endif
174    Styles = (PACKED, SCPZIP_REPLACE);
175End
176
177
178File gid_File_Zip_Odkexamples
179    TXT_FILE_BODY;
180    Dir = gid_Dir_Basis_Sdk;
181    Name = "odkexamples.zip";
182    Styles = (ARCHIVE,USE_INTERNAL_RIGHTS);
183End
184
185
186File gid_File_Zip_Odkcommon
187    TXT_FILE_BODY;
188    Dir = gid_Dir_Basis_Sdk;
189    Name = "odkcommon.zip";
190    Styles = (ARCHIVE,USE_INTERNAL_RIGHTS);
191End
192
193#if (!defined(WNT) && !defined( MACOSX) )
194Directory gid_Dir_Lib_Sdk
195    Styles = (CREATE);
196    ParentID = gid_Dir_Basis_Sdk;
197    DosName = "lib";
198End
199#endif
200
201#if (!defined(WNT) && !defined( MACOSX) )
202Unixlink gid_Unixlink_Sal_Link_Sdk
203    BIN_FILE_BODY;
204    Styles = ();
205    Name = SCP2_URE_DL_UNO_NORMAL("sal");
206    Dir = gid_Dir_Lib_Sdk;
207    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_VER("sal", "3");
208End
209#endif
210
211#if (!defined(WNT) && !defined( MACOSX) )
212Unixlink gid_Unixlink_Salhelper_Link_Sdk
213    BIN_FILE_BODY;
214    Styles = ();
215    Name = SCP2_URE_DL_UNO_COMID_NORMAL("salhelper");
216    Dir = gid_Dir_Lib_Sdk;
217    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_COMID_VER("salhelper", "3");
218End
219#endif
220
221#if (!defined(WNT) && !defined( MACOSX) )
222Unixlink gid_Unixlink_Cppu_Link_Sdk
223    BIN_FILE_BODY;
224    Styles = ();
225    Name = SCP2_URE_DL_UNO_NORMAL("cppu");
226    Dir = gid_Dir_Lib_Sdk;
227    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_VER("cppu", "3");
228End
229#endif
230
231#if (!defined(WNT) && !defined( MACOSX) )
232Unixlink gid_Unixlink_Cppuhelper_Link_Sdk
233    BIN_FILE_BODY;
234    Styles = ();
235    // Styles = (LAYERLINK);
236    Name = SCP2_URE_DL_UNO_COMID_NORMAL("cppuhelper");
237    Dir = gid_Dir_Lib_Sdk;
238    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_COMID_VER("cppuhelper", "3");
239End
240#endif
241
242#if (!defined(WNT) && !defined( MACOSX) )
243Unixlink gid_Unixlink_Purpenvhelper_Link_Sdk
244    BIN_FILE_BODY;
245    Styles = ();
246    Name = SCP2_URE_DL_UNO_COMID_NORMAL("purpenvhelper");
247    Dir = gid_Dir_Lib_Sdk;
248    Target = "../../ure-link/lib/" SCP2_URE_DL_UNO_COMID_VER("purpenvhelper", "3");
249End
250#endif
251
252#ifdef MACOSX
253ScpAction scp_Copy_Dmg_Background_Image
254    Copy = "osxdndinstall.png";
255    Name = "background.png";
256    UnixRights = 444;
257    Styles = ();
258    Subdir = ".background";
259End
260
261ScpAction scp_Copy_Ds_Store
262    Copy = "DS_Store_SDK";
263#    PatchCopy = "DS_Store_Patch";
264    Name = ".DS_Store";
265    UnixRights = 444;
266    Styles = ();
267End
268#endif
269