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