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 26cdf0e10cSrcweir 27cdf0e10cSrcweirProfile gid_Profile_Pythonloader_Uno_Ini 28cdf0e10cSrcweir ModuleID = gid_Module_Optional_Pyuno; 29cdf0e10cSrcweir #ifdef UNX 30cdf0e10cSrcweir Name = "pythonloader.unorc"; 31cdf0e10cSrcweir #else 32cdf0e10cSrcweir Name = "pythonloader.uno.ini"; 33cdf0e10cSrcweir #endif 34cdf0e10cSrcweir Dir = gid_Dir_Program; 35cdf0e10cSrcweir Styles = (NETWORK); 36cdf0e10cSrcweirEnd 37cdf0e10cSrcweir 38cdf0e10cSrcweir#ifndef SYSTEM_PYTHON 39cdf0e10cSrcweirProfileItem gid_Profileitem_Pythonloader_Pythonhome 40cdf0e10cSrcweir ProfileID = gid_Profile_Pythonloader_Uno_Ini; 41cdf0e10cSrcweir ModuleID = gid_Module_Optional_Pyuno; 42cdf0e10cSrcweir Section = "Bootstrap"; 43cdf0e10cSrcweir Order = 1; 44cdf0e10cSrcweir Key = "PYUNO_LOADER_PYTHONHOME"; 45cdf0e10cSrcweir #ifdef MACOSX 46cdf0e10cSrcweir Value = CONCAT2($ORIGIN,"OOoPython.framework"); 47cdf0e10cSrcweir #else 48cdf0e10cSrcweir Value = CONCAT2($ORIGIN/python-core-,PYVERSION); 49cdf0e10cSrcweir #endif 50cdf0e10cSrcweirEnd 51cdf0e10cSrcweir#endif 52cdf0e10cSrcweir 53cdf0e10cSrcweirProfileItem gid_Profileitem_Pythonloader_Pythonpath 54cdf0e10cSrcweir ProfileID = gid_Profile_Pythonloader_Uno_Ini; 55cdf0e10cSrcweir ModuleID = gid_Module_Optional_Pyuno; 56cdf0e10cSrcweir Section = "Bootstrap"; 57cdf0e10cSrcweir Order = 1; 58cdf0e10cSrcweir Key = "PYUNO_LOADER_PYTHONPATH"; 59cdf0e10cSrcweir#ifdef SYSTEM_PYTHON 60cdf0e10cSrcweir Value = "$ORIGIN"; 61cdf0e10cSrcweir#else 62cdf0e10cSrcweir #ifdef UNX 63cdf0e10cSrcweir #ifdef MACOSX 64cdf0e10cSrcweir #define FRAMEWORKLIB CONCAT4($ORIGIN/OOoPython.framework/Versions/,PYMAJMIN,/lib/python,PYMAJMIN) 65cdf0e10cSrcweir Value = CONCAT4(FRAMEWORKLIB FRAMEWORKLIB, 66cdf0e10cSrcweir /lib-dynload FRAMEWORKLIB, 67cdf0e10cSrcweir /lib-tk FRAMEWORKLIB, 68cdf0e10cSrcweir /site-packages $ORIGIN); 69cdf0e10cSrcweir #else 70cdf0e10cSrcweir Value = CONCAT9($ORIGIN/python-core-,PYVERSION, 71cdf0e10cSrcweir /lib $ORIGIN/python-core-,PYVERSION, 72cdf0e10cSrcweir /lib/lib-dynload $ORIGIN/python-core-,PYVERSION, 73cdf0e10cSrcweir /lib/lib-tk $ORIGIN/python-core-,PYVERSION, 74cdf0e10cSrcweir /lib/site-packages $ORIGIN); 75cdf0e10cSrcweir #endif 76cdf0e10cSrcweir #else 77cdf0e10cSrcweir #ifdef _gcc3 78cdf0e10cSrcweir Value = STRING(CONCAT9($ORIGIN/python-core-,PYVERSION, 79cdf0e10cSrcweir /lib $ORIGIN/python-core-,PYVERSION, 80cdf0e10cSrcweir /lib/lib-dynload $ORIGIN/python-core-,PYVERSION, 81cdf0e10cSrcweir /lib/lib-tk $ORIGIN/python-core-,PYVERSION, 82cdf0e10cSrcweir /lib/site-packages $ORIGIN)); 83cdf0e10cSrcweir #else 84cdf0e10cSrcweir Value = STRING(CONCAT5($ORIGIN/python-core-,PYVERSION, 85cdf0e10cSrcweir /lib $ORIGIN/python-core-,PYVERSION, 86cdf0e10cSrcweir /lib/site-packages $ORIGIN)); 87cdf0e10cSrcweir #endif 88cdf0e10cSrcweir #endif 89cdf0e10cSrcweir#endif 90cdf0e10cSrcweirEnd 91