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