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