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