xref: /aoo41x/main/scp2/source/python/file_python.scp (revision d44f38ed)
1022bd5b4SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3022bd5b4SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4022bd5b4SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5022bd5b4SAndrew Rist * distributed with this work for additional information
6022bd5b4SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7022bd5b4SAndrew Rist * to you under the Apache License, Version 2.0 (the
8022bd5b4SAndrew Rist * "License"); you may not use this file except in compliance
9022bd5b4SAndrew Rist * with the License.  You may obtain a copy of the License at
10022bd5b4SAndrew Rist *
11022bd5b4SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12022bd5b4SAndrew Rist *
13022bd5b4SAndrew Rist * Unless required by applicable law or agreed to in writing,
14022bd5b4SAndrew Rist * software distributed under the License is distributed on an
15022bd5b4SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16022bd5b4SAndrew Rist * KIND, either express or implied.  See the License for the
17022bd5b4SAndrew Rist * specific language governing permissions and limitations
18022bd5b4SAndrew Rist * under the License.
19022bd5b4SAndrew Rist *
20022bd5b4SAndrew Rist *************************************************************/
21022bd5b4SAndrew Rist
22022bd5b4SAndrew 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));
30*d44f38edSYuri Dario  #elif defined(OS2)
31*d44f38edSYuri Dario    Name = "pyuno.dll";
32cdf0e10cSrcweir  #else
33cdf0e10cSrcweir    Name = "pyuno.pyd";
34cdf0e10cSrcweir  #endif
35cdf0e10cSrcweir    Dir = gid_Dir_Program;
36cdf0e10cSrcweir    Styles = (PACKED);
37cdf0e10cSrcweirEnd
38cdf0e10cSrcweir
39cdf0e10cSrcweirFile gid_File_Lib_Pythonloader
40cdf0e10cSrcweir    TXT_FILE_BODY;
41cdf0e10cSrcweir    Dir = gid_Dir_Program;
42cdf0e10cSrcweir  #ifdef UNX
43cdf0e10cSrcweir    Name = STRING(CONCAT2(pythonloader.uno,UNXSUFFIX));
44*d44f38edSYuri Dario  #elif defined(OS2)
45*d44f38edSYuri Dario    Name = "pythonlo.dll";
46cdf0e10cSrcweir  #else
47cdf0e10cSrcweir    Name = "pythonloader.uno.dll";
48cdf0e10cSrcweir  #endif
49cdf0e10cSrcweir    Styles = (PACKED);
50cdf0e10cSrcweirEnd
51cdf0e10cSrcweir
52cdf0e10cSrcweirFile gid_File_Py_Unohelper
53cdf0e10cSrcweir    TXT_FILE_BODY;
54cdf0e10cSrcweir    Dir = gid_Dir_Program;
55cdf0e10cSrcweir    Name = "unohelper.py";
56cdf0e10cSrcweir    Styles = (PACKED);
57cdf0e10cSrcweirEnd
58cdf0e10cSrcweir
59cdf0e10cSrcweirFile gid_File_Py_Officehelper
60cdf0e10cSrcweir    TXT_FILE_BODY;
61cdf0e10cSrcweir    Dir = gid_Dir_Program;
62cdf0e10cSrcweir    Name = "officehelper.py";
63cdf0e10cSrcweir    Styles = (PACKED);
64cdf0e10cSrcweirEnd
65cdf0e10cSrcweir
66cdf0e10cSrcweirFile gid_File_Py_Uno
67cdf0e10cSrcweir    TXT_FILE_BODY;
68cdf0e10cSrcweir    Dir = gid_Dir_Program;
69cdf0e10cSrcweir    Name = "uno.py";
70cdf0e10cSrcweir    Styles = (PACKED);
71cdf0e10cSrcweirEnd
72cdf0e10cSrcweir
73cdf0e10cSrcweirFile gid_File_Py_Pythonloader
74cdf0e10cSrcweir    TXT_FILE_BODY;
75cdf0e10cSrcweir    Dir = gid_Dir_Program;
76cdf0e10cSrcweir    Name = "pythonloader.py";
77cdf0e10cSrcweir    Styles = (PACKED);
78cdf0e10cSrcweirEnd
79cdf0e10cSrcweir
80cdf0e10cSrcweir#ifndef SYSTEM_PYTHON
81cdf0e10cSrcweirFile gid_File_Py_Python_Core
82cdf0e10cSrcweir    TXT_FILE_BODY;
83cdf0e10cSrcweir    Dir = gid_Dir_Program;
84cdf0e10cSrcweir  #ifdef MACOSX
85cdf0e10cSrcweir    Name = "OOoPython.framework.zip";
86cdf0e10cSrcweir    Styles = (ARCHIVE,USE_INTERNAL_RIGHTS);
87cdf0e10cSrcweir  #else
88cdf0e10cSrcweir    Name = STRING(CONCAT3(python-core-,PYVERSION,.zip));
89cdf0e10cSrcweir    Styles = (ARCHIVE);
90cdf0e10cSrcweir  #endif
91cdf0e10cSrcweirEnd
92cdf0e10cSrcweir
93cdf0e10cSrcweir#ifdef UNX
94cdf0e10cSrcweir#ifndef MACOSX
95cdf0e10cSrcweirFile gid_File_Py_Python_Bin
96cdf0e10cSrcweir    BIN_FILE_BODY;
97cdf0e10cSrcweir    Dir = gid_Dir_Program;
98cdf0e10cSrcweir    Name = "python.bin";
99cdf0e10cSrcweir    Styles = (PACKED);
100cdf0e10cSrcweirEnd
101cdf0e10cSrcweir#endif
102cdf0e10cSrcweir#endif
103cdf0e10cSrcweir#endif
104cdf0e10cSrcweir
105cdf0e10cSrcweir// Scripting Framework Python script proxy
106cdf0e10cSrcweir
107cdf0e10cSrcweirFile gid_File_Py_Pythonscript
108cdf0e10cSrcweir    TXT_FILE_BODY;
109cdf0e10cSrcweir    Dir = gid_Dir_Program;
110cdf0e10cSrcweir    Name = "pythonscript.py";
111cdf0e10cSrcweir    Styles = (PACKED);
112cdf0e10cSrcweirEnd
113cdf0e10cSrcweir
114cdf0e10cSrcweir//Scripting Framework Python example scripts
115cdf0e10cSrcweir
116cdf0e10cSrcweirFile gid_File_Scripts_Python
117cdf0e10cSrcweir    TXT_FILE_BODY;
118cdf0e10cSrcweir    Styles = (ARCHIVE);
119cdf0e10cSrcweir    Dir = gid_Dir_Share_Scripts;
120cdf0e10cSrcweir    Name = "ScriptsPython.zip";
121cdf0e10cSrcweirEnd
122cdf0e10cSrcweir
123cdf0e10cSrcweir// Scripting Framework Python configuration settings
124cdf0e10cSrcweir
125cdf0e10cSrcweirFile gid_File_Share_Registry_Pyuno_Xcd
126cdf0e10cSrcweir    TXT_FILE_BODY;
127cdf0e10cSrcweir    Styles = (PACKED);
128cdf0e10cSrcweir    Dir = gid_Dir_Share_Registry;
129cdf0e10cSrcweir    Name = "pyuno.xcd";
130cdf0e10cSrcweirEnd
131cdf0e10cSrcweir
132cdf0e10cSrcweir#ifndef SYSTEM_PYTHON
133cdf0e10cSrcweir#ifndef MACOSX
134cdf0e10cSrcweirFile gid_File_Lib_Python_So
135cdf0e10cSrcweir    TXT_FILE_BODY;
136cdf0e10cSrcweir    Dir = gid_Dir_Program;
137cdf0e10cSrcweir    Name = STRING(PY_FULL_DLL_NAME);
138cdf0e10cSrcweir    Styles = (PACKED);
139cdf0e10cSrcweirEnd
140cdf0e10cSrcweir#else //MACOSX
141cdf0e10cSrcweir//directory entries solely to be able to create the symlinks
142cdf0e10cSrcweirDirectory gid_Dir_PythonFramework
143cdf0e10cSrcweir    ParentID = gid_Dir_Program;
144cdf0e10cSrcweir    HostName = "OOoPython.framework";
145cdf0e10cSrcweirEnd
146cdf0e10cSrcweir
147cdf0e10cSrcweirUnixlink gid_Unixlink_Python_Headers
148cdf0e10cSrcweir    BIN_FILE_BODY;
149cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework;
150cdf0e10cSrcweir    Name = "Headers";
151cdf0e10cSrcweir    Target = "Versions/Current/Headers";
152cdf0e10cSrcweir    Styles = ();
153cdf0e10cSrcweirEnd
154cdf0e10cSrcweir
155cdf0e10cSrcweirUnixlink gid_Unixlink_Python_Resources
156cdf0e10cSrcweir    BIN_FILE_BODY;
157cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework;
158cdf0e10cSrcweir    Name = "Resources";
159cdf0e10cSrcweir    Target = "Versions/Current/Resources";
160cdf0e10cSrcweir    Styles = ();
161cdf0e10cSrcweirEnd
162cdf0e10cSrcweir
163cdf0e10cSrcweirDirectory gid_Dir_PythonFramework_Versions
164cdf0e10cSrcweir    ParentID = gid_Dir_PythonFramework;
165cdf0e10cSrcweir    HostName = "Versions";
166cdf0e10cSrcweirEnd
167cdf0e10cSrcweir
168cdf0e10cSrcweirUnixlink gid_Unixlink_Python_Versions_Current
169cdf0e10cSrcweir    BIN_FILE_BODY;
170cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework_Versions;
171cdf0e10cSrcweir    Name = "Current";
172cdf0e10cSrcweir    Target = STRING(PYMAJMIN);
173cdf0e10cSrcweir    Styles = ();
174cdf0e10cSrcweirEnd
175cdf0e10cSrcweir
176cdf0e10cSrcweirDirectory gid_Dir_PythonFramework_Versions_ver
177cdf0e10cSrcweir    ParentID = gid_Dir_PythonFramework_Versions;
178cdf0e10cSrcweir    HostName = STRING(PYMAJMIN);
179cdf0e10cSrcweirEnd
180cdf0e10cSrcweir
181cdf0e10cSrcweirUnixlink gid_Unixlink_Python_Versions_ver_Headers
182cdf0e10cSrcweir    BIN_FILE_BODY;
183cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework_Versions_ver;
184cdf0e10cSrcweir    Name = "Headers";
185cdf0e10cSrcweir    Target = STRING(CONCAT2(include/python,PYMAJMIN));
186cdf0e10cSrcweir    Styles = ();
187cdf0e10cSrcweirEnd
188cdf0e10cSrcweir
189cdf0e10cSrcweirDirectory gid_Dir_PythonFramework_Versions_ver_bin
190cdf0e10cSrcweir    ParentID = gid_Dir_PythonFramework_Versions_ver;
191cdf0e10cSrcweir    HostName = "bin";
192cdf0e10cSrcweirEnd
193cdf0e10cSrcweir
194cdf0e10cSrcweirDirectory gid_Dir_PythonFramework_Versions_ver_lib
195cdf0e10cSrcweir    ParentID = gid_Dir_PythonFramework_Versions_ver;
196cdf0e10cSrcweir    HostName = "lib";
197cdf0e10cSrcweirEnd
198cdf0e10cSrcweir
199cdf0e10cSrcweirDirectory gid_Dir_PythonFramework_Versions_ver_lib_pythonver
200cdf0e10cSrcweir    ParentID = gid_Dir_PythonFramework_Versions_ver_lib;
201cdf0e10cSrcweir    HostName = STRING(CONCAT2(python,PYMAJMIN));
202cdf0e10cSrcweirEnd
203cdf0e10cSrcweir
204cdf0e10cSrcweirDirectory gid_Dir_PythonFramework_Versions_ver_lib_pythonver_config
205cdf0e10cSrcweir    ParentID = gid_Dir_PythonFramework_Versions_ver_lib_pythonver;
206cdf0e10cSrcweir    HostName = "config";
207cdf0e10cSrcweirEnd
208cdf0e10cSrcweir
209cdf0e10cSrcweirUnixlink gid_Unixlink_Python_OOoPython
210cdf0e10cSrcweir    BIN_FILE_BODY;
211cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework;
212cdf0e10cSrcweir    Name = "OOoPython";
213cdf0e10cSrcweir    Target = "Versions/Current/OOoPython";
214cdf0e10cSrcweir    Styles = ();
215cdf0e10cSrcweirEnd
216cdf0e10cSrcweir
217cdf0e10cSrcweirUnixlink gid_Unixlink_Python_bin_idle
218cdf0e10cSrcweir    BIN_FILE_BODY;
219cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
220cdf0e10cSrcweir    Name = "idle";
221cdf0e10cSrcweir    Target = STRING(CONCAT2(idle,PYMAJMIN));
222cdf0e10cSrcweir    Styles = ();
223cdf0e10cSrcweirEnd
224cdf0e10cSrcweir
225cdf0e10cSrcweirUnixlink gid_Unixlink_Python_bin_pydoc
226cdf0e10cSrcweir    BIN_FILE_BODY;
227cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
228cdf0e10cSrcweir    Name = "pydoc";
229cdf0e10cSrcweir    Target = STRING(CONCAT2(pydoc,PYMAJMIN));
230cdf0e10cSrcweir    Styles = ();
231cdf0e10cSrcweirEnd
232cdf0e10cSrcweir
233cdf0e10cSrcweirUnixlink gid_Unixlink_Python_bin_python_real
234cdf0e10cSrcweir    BIN_FILE_BODY;
235cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
236cdf0e10cSrcweir    Name = "python";
237cdf0e10cSrcweir    Target = "../Resources/Python.app/Contents/MacOS/OOoPython";
238cdf0e10cSrcweir    Styles = ();
239cdf0e10cSrcweirEnd
240cdf0e10cSrcweir
241cdf0e10cSrcweirUnixlink gid_Unixlink_Python_bin_python
242cdf0e10cSrcweir    BIN_FILE_BODY;
243cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
244cdf0e10cSrcweir    Name = "python";
245cdf0e10cSrcweir    Target = STRING(CONCAT2(python,PYMAJMIN));
246cdf0e10cSrcweir    Styles = ();
247cdf0e10cSrcweirEnd
248cdf0e10cSrcweir
249cdf0e10cSrcweirUnixlink gid_Unixlink_Python_bin_pythonconfig
250cdf0e10cSrcweir    BIN_FILE_BODY;
251cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
252cdf0e10cSrcweir    Name = "python-config";
253cdf0e10cSrcweir    Target = STRING(CONCAT3(python,PYMAJMIN,-config));
254cdf0e10cSrcweir    Styles = ();
255cdf0e10cSrcweirEnd
256cdf0e10cSrcweir
257cdf0e10cSrcweirUnixlink gid_Unixlink_Python_bin_pythonw_real
258cdf0e10cSrcweir    BIN_FILE_BODY;
259cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
260cdf0e10cSrcweir    Name = "pythonw";
261cdf0e10cSrcweir    Target = "../Resources/Python.app/Contents/MacOS/OOoPython";
262cdf0e10cSrcweir    Styles = ();
263cdf0e10cSrcweirEnd
264cdf0e10cSrcweir
265cdf0e10cSrcweirUnixlink gid_Unixlink_Python_bin_pythonw
266cdf0e10cSrcweir    BIN_FILE_BODY;
267cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
268cdf0e10cSrcweir    Name = "pythonw";
269cdf0e10cSrcweir    Target = STRING(CONCAT2(pythonw,PYMAJMIN));
270cdf0e10cSrcweir    Styles = ();
271cdf0e10cSrcweirEnd
272cdf0e10cSrcweir
273cdf0e10cSrcweirUnixlink gid_Unixlink_Python_bin_smtpdpy
274cdf0e10cSrcweir    BIN_FILE_BODY;
275cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework_Versions_ver_bin;
276cdf0e10cSrcweir    Name = "smtpd.py";
277cdf0e10cSrcweir    Target = STRING(CONCAT3(smtpd,PYMAJMIN,.py));
278cdf0e10cSrcweir    Styles = ();
279cdf0e10cSrcweirEnd
280cdf0e10cSrcweir
281cdf0e10cSrcweirUnixlink gid_Unixlink_Python_libpython
282cdf0e10cSrcweir    BIN_FILE_BODY;
283cdf0e10cSrcweir    Dir = gid_Dir_PythonFramework_Versions_ver_lib_pythonver_config;
284cdf0e10cSrcweir    Name = STRING(PY_FULL_DLL_NAME);
285cdf0e10cSrcweir    Target = "../../../OOoPython";
286cdf0e10cSrcweir    Styles = ();
287cdf0e10cSrcweirEnd
288cdf0e10cSrcweir#endif //MACOSX
289cdf0e10cSrcweir
290cdf0e10cSrcweir#ifdef WNT
291cdf0e10cSrcweirFile gid_File_Lib_Python_So_Brand // Fix for system-python-problem on windows
292cdf0e10cSrcweir    TXT_FILE_BODY;
293cdf0e10cSrcweir    Dir = gid_Brand_Dir_Program;
294cdf0e10cSrcweir    Name = STRING(PY_FULL_DLL_NAME);
295cdf0e10cSrcweir    Styles = (PACKED);
296cdf0e10cSrcweirEnd
297cdf0e10cSrcweir#endif
298cdf0e10cSrcweir#endif
299cdf0e10cSrcweir
300cdf0e10cSrcweir#ifdef UNX
301cdf0e10cSrcweir
302cdf0e10cSrcweir// pyuno.so even on Mac OS X, because it is a python module
303cdf0e10cSrcweirFile gid_File_Pyuno
304cdf0e10cSrcweir    TXT_FILE_BODY;
305cdf0e10cSrcweir    Name = "pyuno.so";
306cdf0e10cSrcweir    Dir = gid_Dir_Program;
307cdf0e10cSrcweir    Styles = (PACKED);
308cdf0e10cSrcweirEnd
309cdf0e10cSrcweir
310cdf0e10cSrcweir#endif
311cdf0e10cSrcweir
312