xref: /aoo41x/main/scp2/source/python/file_python.scp (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#include "macros.inc"
29
30File gid_File_Lib_Pyuno
31    TXT_FILE_BODY;
32  #ifdef UNX
33    Name = STRING(CONCAT2(libpyuno,UNXSUFFIX));
34  #else
35    Name = "pyuno.pyd";
36  #endif
37    Dir = gid_Dir_Program;
38    Styles = (PACKED);
39End
40
41File gid_File_Lib_Pythonloader
42    TXT_FILE_BODY;
43    Dir = gid_Dir_Program;
44  #ifdef UNX
45    Name = STRING(CONCAT2(pythonloader.uno,UNXSUFFIX));
46  #else
47    Name = "pythonloader.uno.dll";
48  #endif
49    Styles = (PACKED);
50End
51
52File gid_File_Py_Unohelper
53    TXT_FILE_BODY;
54    Dir = gid_Dir_Program;
55    Name = "unohelper.py";
56    Styles = (PACKED);
57End
58
59File gid_File_Py_Officehelper
60    TXT_FILE_BODY;
61    Dir = gid_Dir_Program;
62    Name = "officehelper.py";
63    Styles = (PACKED);
64End
65
66File gid_File_Py_Uno
67    TXT_FILE_BODY;
68    Dir = gid_Dir_Program;
69    Name = "uno.py";
70    Styles = (PACKED);
71End
72
73File gid_File_Py_Pythonloader
74    TXT_FILE_BODY;
75    Dir = gid_Dir_Program;
76    Name = "pythonloader.py";
77    Styles = (PACKED);
78End
79
80#ifndef SYSTEM_PYTHON
81File gid_File_Py_Python_Core
82    TXT_FILE_BODY;
83    Dir = gid_Dir_Program;
84  #ifdef MACOSX
85    Name = "OOoPython.framework.zip";
86    Styles = (ARCHIVE,USE_INTERNAL_RIGHTS);
87  #else
88    Name = STRING(CONCAT3(python-core-,PYVERSION,.zip));
89    Styles = (ARCHIVE);
90  #endif
91End
92
93#ifdef UNX
94#ifndef MACOSX
95File gid_File_Py_Python_Bin
96    BIN_FILE_BODY;
97    Dir = gid_Dir_Program;
98    Name = "python.bin";
99    Styles = (PACKED);
100End
101#endif
102#endif
103#endif
104
105// Scripting Framework Python script proxy
106
107File gid_File_Py_Pythonscript
108    TXT_FILE_BODY;
109    Dir = gid_Dir_Program;
110    Name = "pythonscript.py";
111    Styles = (PACKED);
112End
113
114//Scripting Framework Python example scripts
115
116File gid_File_Scripts_Python
117    TXT_FILE_BODY;
118    Styles = (ARCHIVE);
119    Dir = gid_Dir_Share_Scripts;
120    Name = "ScriptsPython.zip";
121End
122
123// Scripting Framework Python configuration settings
124
125File gid_File_Share_Registry_Pyuno_Xcd
126    TXT_FILE_BODY;
127    Styles = (PACKED);
128    Dir = gid_Dir_Share_Registry;
129    Name = "pyuno.xcd";
130End
131
132#ifndef SYSTEM_PYTHON
133#ifndef MACOSX
134File gid_File_Lib_Python_So
135    TXT_FILE_BODY;
136    Dir = gid_Dir_Program;
137    Name = STRING(PY_FULL_DLL_NAME);
138    Styles = (PACKED);
139End
140#else //MACOSX
141//directory entries solely to be able to create the symlinks
142Directory gid_Dir_PythonFramework
143    ParentID = gid_Dir_Program;
144    HostName = "OOoPython.framework";
145End
146
147Unixlink gid_Unixlink_Python_Headers
148    BIN_FILE_BODY;
149    Dir = gid_Dir_PythonFramework;
150    Name = "Headers";
151    Target = "Versions/Current/Headers";
152    Styles = ();
153End
154
155Unixlink gid_Unixlink_Python_Resources
156    BIN_FILE_BODY;
157    Dir = gid_Dir_PythonFramework;
158    Name = "Resources";
159    Target = "Versions/Current/Resources";
160    Styles = ();
161End
162
163Directory gid_Dir_PythonFramework_Versions
164    ParentID = gid_Dir_PythonFramework;
165    HostName = "Versions";
166End
167
168Unixlink gid_Unixlink_Python_Versions_Current
169    BIN_FILE_BODY;
170    Dir = gid_Dir_PythonFramework_Versions;
171    Name = "Current";
172    Target = STRING(PYMAJMIN);
173    Styles = ();
174End
175
176Directory gid_Dir_PythonFramework_Versions_ver
177    ParentID = gid_Dir_PythonFramework_Versions;
178    HostName = STRING(PYMAJMIN);
179End
180
181Unixlink gid_Unixlink_Python_Versions_ver_Headers
182    BIN_FILE_BODY;
183    Dir = gid_Dir_PythonFramework_Versions_ver;
184    Name = "Headers";
185    Target = STRING(CONCAT2(include/python,PYMAJMIN));
186    Styles = ();
187End
188
189Directory gid_Dir_PythonFramework_Versions_ver_bin
190    ParentID = gid_Dir_PythonFramework_Versions_ver;
191    HostName = "bin";
192End
193
194Directory gid_Dir_PythonFramework_Versions_ver_lib
195    ParentID = gid_Dir_PythonFramework_Versions_ver;
196    HostName = "lib";
197End
198
199Directory gid_Dir_PythonFramework_Versions_ver_lib_pythonver
200    ParentID = gid_Dir_PythonFramework_Versions_ver_lib;
201    HostName = STRING(CONCAT2(python,PYMAJMIN));
202End
203
204Directory gid_Dir_PythonFramework_Versions_ver_lib_pythonver_config
205    ParentID = gid_Dir_PythonFramework_Versions_ver_lib_pythonver;
206    HostName = "config";
207End
208
209Unixlink gid_Unixlink_Python_OOoPython
210    BIN_FILE_BODY;
211    Dir = gid_Dir_PythonFramework;
212    Name = "OOoPython";
213    Target = "Versions/Current/OOoPython";
214    Styles = ();
215End
216
217Unixlink gid_Unixlink_Python_bin_idle
218    BIN_FILE_BODY;
219    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
220    Name = "idle";
221    Target = STRING(CONCAT2(idle,PYMAJMIN));
222    Styles = ();
223End
224
225Unixlink gid_Unixlink_Python_bin_pydoc
226    BIN_FILE_BODY;
227    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
228    Name = "pydoc";
229    Target = STRING(CONCAT2(pydoc,PYMAJMIN));
230    Styles = ();
231End
232
233Unixlink gid_Unixlink_Python_bin_python_real
234    BIN_FILE_BODY;
235    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
236    Name = "python";
237    Target = "../Resources/Python.app/Contents/MacOS/OOoPython";
238    Styles = ();
239End
240
241Unixlink gid_Unixlink_Python_bin_python
242    BIN_FILE_BODY;
243    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
244    Name = "python";
245    Target = STRING(CONCAT2(python,PYMAJMIN));
246    Styles = ();
247End
248
249Unixlink gid_Unixlink_Python_bin_pythonconfig
250    BIN_FILE_BODY;
251    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
252    Name = "python-config";
253    Target = STRING(CONCAT3(python,PYMAJMIN,-config));
254    Styles = ();
255End
256
257Unixlink gid_Unixlink_Python_bin_pythonw_real
258    BIN_FILE_BODY;
259    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
260    Name = "pythonw";
261    Target = "../Resources/Python.app/Contents/MacOS/OOoPython";
262    Styles = ();
263End
264
265Unixlink gid_Unixlink_Python_bin_pythonw
266    BIN_FILE_BODY;
267    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
268    Name = "pythonw";
269    Target = STRING(CONCAT2(pythonw,PYMAJMIN));
270    Styles = ();
271End
272
273Unixlink gid_Unixlink_Python_bin_smtpdpy
274    BIN_FILE_BODY;
275    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
276    Name = "smtpd.py";
277    Target = STRING(CONCAT3(smtpd,PYMAJMIN,.py));
278    Styles = ();
279End
280
281Unixlink gid_Unixlink_Python_libpython
282    BIN_FILE_BODY;
283    Dir = gid_Dir_PythonFramework_Versions_ver_lib_pythonver_config;
284    Name = STRING(PY_FULL_DLL_NAME);
285    Target = "../../../OOoPython";
286    Styles = ();
287End
288#endif //MACOSX
289
290#ifdef WNT
291File gid_File_Lib_Python_So_Brand // Fix for system-python-problem on windows
292    TXT_FILE_BODY;
293    Dir = gid_Brand_Dir_Program;
294    Name = STRING(PY_FULL_DLL_NAME);
295    Styles = (PACKED);
296End
297#endif
298#endif
299
300#ifdef UNX
301
302// pyuno.so even on Mac OS X, because it is a python module
303File gid_File_Pyuno
304    TXT_FILE_BODY;
305    Name = "pyuno.so";
306    Dir = gid_Dir_Program;
307    Styles = (PACKED);
308End
309
310#endif
311
312