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