xref: /trunk/main/scp2/source/python/file_python.scp (revision 1076d7f7)
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
26File gid_File_Lib_Pyuno
27    TXT_FILE_BODY;
28  #ifdef UNX
29    Name = STRING(CONCAT2(libpyuno,UNXSUFFIX));
30  #elif defined(OS2)
31    Name = "pyuno.dll";
32  #else
33    Name = "pyuno.pyd";
34  #endif
35#if defined MACOSX
36    Dir = gid_Brand_Dir_Program;
37#else
38    Dir = gid_Dir_Common_Ure;
39#endif
40//    Dir = gid_Dir_Program;
41    Styles = (PACKED);
42End
43
44File gid_File_Lib_Pythonloader
45    TXT_FILE_BODY;
46#if defined MACOSX
47    Dir = gid_Brand_Dir_Program;
48#else
49    Dir = gid_Dir_Common_Ure;
50#endif
51//    Dir = gid_Dir_Program;
52  #ifdef UNX
53    Name = STRING(CONCAT2(pythonloader.uno,UNXSUFFIX));
54  #elif defined(OS2)
55    Name = "pythonlo.dll";
56  #else
57    Name = "pythonloader.uno.dll";
58  #endif
59    Styles = (PACKED);
60End
61
62File gid_File_Py_Unohelper
63    TXT_FILE_BODY;
64#if defined MACOSX
65    Dir = gid_Brand_Dir_Program;
66#else
67    Dir = gid_Dir_Common_Ure;
68#endif
69//    Dir = gid_Dir_Program;
70    Name = "unohelper.py";
71    Styles = (PACKED);
72End
73
74File gid_File_Py_Officehelper
75    TXT_FILE_BODY;
76#if defined MACOSX
77    Dir = gid_Brand_Dir_Program;
78#else
79    Dir = gid_Dir_Common_Ure;
80#endif
81//    Dir = gid_Dir_Program;
82    Name = "officehelper.py";
83    Styles = (PACKED);
84End
85
86File gid_File_Py_Uno
87    TXT_FILE_BODY;
88#if defined MACOSX
89    Dir = gid_Brand_Dir_Program;
90#else
91    Dir = gid_Dir_Common_Ure;
92#endif
93//    Dir = gid_Dir_Program;
94    Name = "uno.py";
95    Styles = (PACKED);
96End
97
98File gid_File_Py_Pythonloader
99    TXT_FILE_BODY;
100    Dir = gid_Brand_Dir_Program;
101//    Dir = gid_Dir_Program;
102    Name = "pythonloader.py";
103    Styles = (PACKED);
104End
105
106#ifndef SYSTEM_PYTHON
107File gid_File_Py_Python_Core
108    TXT_FILE_BODY;
109#if defined MACOSX
110    Dir = gid_Brand_Dir_Program;
111#else
112    Dir = gid_Dir_Common_Ure;
113#endif
114//    Dir = gid_Dir_Program;
115  #ifdef MACOSX
116    Name = "OOoPython.framework.zip";
117    Styles = (ARCHIVE,USE_INTERNAL_RIGHTS);
118  #else
119    Name = STRING(CONCAT3(python-core-,PYVERSION,.zip));
120    Styles = (ARCHIVE);
121  #endif
122End
123
124#ifdef UNX
125#ifndef MACOSX
126File gid_File_Py_Python_Bin
127    BIN_FILE_BODY;
128    Dir = gid_Dir_Common_Ure;
129//    Dir = gid_Dir_Program;
130    Name = "python.bin";
131    Styles = (PACKED);
132End
133#endif
134#endif
135#endif
136
137// Scripting Framework Python script proxy
138
139File gid_File_Py_Pythonscript
140    TXT_FILE_BODY;
141#if defined MACOSX
142    Dir = gid_Brand_Dir_Program;
143#else
144    Dir = gid_Dir_Common_Ure;
145#endif
146//    Dir = gid_Dir_Program;
147    Name = "pythonscript.py";
148    Styles = (PACKED);
149End
150
151//Scripting Framework Python example scripts
152
153File gid_File_Scripts_Python
154    TXT_FILE_BODY;
155    Styles = (ARCHIVE);
156    Dir = gid_Dir_Share_Scripts;
157    Name = "ScriptsPython.zip";
158End
159
160// Scripting Framework Python configuration settings
161
162File gid_File_Share_Registry_Pyuno_Xcd
163    TXT_FILE_BODY;
164    Styles = (PACKED);
165    Dir = gid_Dir_Share_Registry;
166    Name = "pyuno.xcd";
167End
168
169#ifndef SYSTEM_PYTHON
170#ifndef MACOSX
171File gid_File_Lib_Python_So
172    TXT_FILE_BODY;
173    Dir = gid_Dir_Common_Ure;
174//    Dir = gid_Dir_Program;
175    Name = STRING(PY_FULL_DLL_NAME);
176    Styles = (PACKED);
177End
178#else //MACOSX
179//directory entries solely to be able to create the symlinks
180Directory gid_Dir_PythonFramework
181#if defined MACOSX
182    Dir = gid_Brand_Dir_Program;
183#else
184    Dir = gid_Dir_Common_Ure;
185#endif
186//    ParentID = gid_Dir_Program;
187    HostName = "OOoPython.framework";
188End
189
190Unixlink gid_Unixlink_Python_Headers
191    BIN_FILE_BODY;
192    Dir = gid_Dir_PythonFramework;
193    Name = "Headers";
194    Target = "Versions/Current/Headers";
195    Styles = ();
196End
197
198Unixlink gid_Unixlink_Python_Resources
199    BIN_FILE_BODY;
200    Dir = gid_Dir_PythonFramework;
201    Name = "Resources";
202    Target = "Versions/Current/Resources";
203    Styles = ();
204End
205
206Directory gid_Dir_PythonFramework_Versions
207    ParentID = gid_Dir_PythonFramework;
208    HostName = "Versions";
209End
210
211Unixlink gid_Unixlink_Python_Versions_Current
212    BIN_FILE_BODY;
213    Dir = gid_Dir_PythonFramework_Versions;
214    Name = "Current";
215    Target = STRING(PYMAJMIN);
216    Styles = ();
217End
218
219Directory gid_Dir_PythonFramework_Versions_ver
220    ParentID = gid_Dir_PythonFramework_Versions;
221    HostName = STRING(PYMAJMIN);
222End
223
224Unixlink gid_Unixlink_Python_Versions_ver_Headers
225    BIN_FILE_BODY;
226    Dir = gid_Dir_PythonFramework_Versions_ver;
227    Name = "Headers";
228    Target = STRING(CONCAT2(include/python,PYMAJMIN));
229    Styles = ();
230End
231
232Directory gid_Dir_PythonFramework_Versions_ver_bin
233    ParentID = gid_Dir_PythonFramework_Versions_ver;
234    HostName = "bin";
235End
236
237Directory gid_Dir_PythonFramework_Versions_ver_lib
238    ParentID = gid_Dir_PythonFramework_Versions_ver;
239    HostName = "lib";
240End
241
242Directory gid_Dir_PythonFramework_Versions_ver_lib_pythonver
243    ParentID = gid_Dir_PythonFramework_Versions_ver_lib;
244    HostName = STRING(CONCAT2(python,PYMAJMIN));
245End
246
247Directory gid_Dir_PythonFramework_Versions_ver_lib_pythonver_config
248    ParentID = gid_Dir_PythonFramework_Versions_ver_lib_pythonver;
249    HostName = "config";
250End
251
252Unixlink gid_Unixlink_Python_OOoPython
253    BIN_FILE_BODY;
254    Dir = gid_Dir_PythonFramework;
255    Name = "OOoPython";
256    Target = "Versions/Current/OOoPython";
257    Styles = ();
258End
259
260Unixlink gid_Unixlink_Python_bin_idle
261    BIN_FILE_BODY;
262    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
263    Name = "idle";
264    Target = STRING(CONCAT2(idle,PYMAJMIN));
265    Styles = ();
266End
267
268Unixlink gid_Unixlink_Python_bin_pydoc
269    BIN_FILE_BODY;
270    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
271    Name = "pydoc";
272    Target = STRING(CONCAT2(pydoc,PYMAJMIN));
273    Styles = ();
274End
275
276Unixlink gid_Unixlink_Python_bin_python_real
277    BIN_FILE_BODY;
278    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
279    Name = "python";
280    Target = "../Resources/Python.app/Contents/MacOS/OOoPython";
281    Styles = ();
282End
283
284Unixlink gid_Unixlink_Python_bin_python
285    BIN_FILE_BODY;
286    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
287    Name = "python";
288    Target = STRING(CONCAT2(python,PYMAJMIN));
289    Styles = ();
290End
291
292Unixlink gid_Unixlink_Python_bin_pythonconfig
293    BIN_FILE_BODY;
294    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
295    Name = "python-config";
296    Target = STRING(CONCAT3(python,PYMAJMIN,-config));
297    Styles = ();
298End
299
300Unixlink gid_Unixlink_Python_bin_pythonw_real
301    BIN_FILE_BODY;
302    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
303    Name = "pythonw";
304    Target = "../Resources/Python.app/Contents/MacOS/OOoPython";
305    Styles = ();
306End
307
308Unixlink gid_Unixlink_Python_bin_pythonw
309    BIN_FILE_BODY;
310    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
311    Name = "pythonw";
312    Target = STRING(CONCAT2(pythonw,PYMAJMIN));
313    Styles = ();
314End
315
316Unixlink gid_Unixlink_Python_bin_smtpdpy
317    BIN_FILE_BODY;
318    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
319    Name = "smtpd.py";
320    Target = STRING(CONCAT3(smtpd,PYMAJMIN,.py));
321    Styles = ();
322End
323
324Unixlink gid_Unixlink_Python_libpython
325    BIN_FILE_BODY;
326    Dir = gid_Dir_PythonFramework_Versions_ver_lib_pythonver_config;
327    Name = STRING(PY_FULL_DLL_NAME);
328    Target = "../../../OOoPython";
329    Styles = ();
330End
331#endif //MACOSX
332
333//#ifdef WNT
334//File gid_File_Lib_Python_So_Brand // Fix for system-python-problem on windows
335//    TXT_FILE_BODY;
336//    Dir = gid_Brand_Dir_Program;
337//    Name = STRING(PY_FULL_DLL_NAME);
338//    Styles = (PACKED);
339//End
340//#endif
341#endif
342
343#ifdef UNX
344
345// pyuno.so even on Mac OS X, because it is a python module
346File gid_File_Pyuno
347    TXT_FILE_BODY;
348    Name = "pyuno.so";
349#if defined MACOSX
350    Dir = gid_Brand_Dir_Program;
351#else
352    Dir = gid_Dir_Common_Ure;
353#endif
354//    Dir = gid_Dir_Program;
355    Styles = (PACKED);
356End
357
358#endif
359
360