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 Dir = gid_Dir_Program; 36 Styles = (PACKED); 37End 38 39File gid_File_Lib_Pythonloader 40 TXT_FILE_BODY; 41 Dir = gid_Dir_Program; 42 #ifdef UNX 43 Name = STRING(CONCAT2(pythonloader.uno,UNXSUFFIX)); 44 #elif defined(OS2) 45 Name = "pythonlo.dll"; 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