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