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