bump product version to 4.1.6.2
[LibreOffice.git] / scp2 / source / python / profileitem_python.scp
blob0bc2a86651d13f37d28510d2d457a3c0f968e39f
1 /*
2  * This file is part of the LibreOffice project.
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  *
8  * This file incorporates work covered by the following license notice:
9  *
10  *   Licensed to the Apache Software Foundation (ASF) under one or more
11  *   contributor license agreements. See the NOTICE file distributed
12  *   with this work for additional information regarding copyright
13  *   ownership. The ASF licenses this file to you under the Apache
14  *   License, Version 2.0 (the "License"); you may not use this file
15  *   except in compliance with the License. You may obtain a copy of
16  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
17  */
19 #include "macros.inc"
21 #ifndef DISABLE_PYUNO
23 Profile gid_Profile_Pythonloader_Uno_Ini
24     ModuleID = gid_Module_Pyuno;
25   #ifdef UNX
26     Name = "pythonloader.unorc";
27   #else
28     Name = "pythonloader.uno.ini";
29   #endif
30     Dir = gid_Brand_Dir_Program;
31     Styles = (NETWORK);
32 End
34 #ifndef SYSTEM_PYTHON
35 ProfileItem gid_Profileitem_Pythonloader_Pythonhome
36     ProfileID = gid_Profile_Pythonloader_Uno_Ini;
37     ModuleID = gid_Module_Pyuno;
38     Section = "Bootstrap";
39     Order = 1;
40     Key = "PYUNO_LOADER_PYTHONHOME";
41   #ifdef MACOSX
42     Value = CONCAT2($ORIGIN,/LibreOfficePython.framework);
43   #else
44     Value = CONCAT2($ORIGIN/python-core-,PYVERSION);
45   #endif
46 End
47 #endif
49 ProfileItem gid_Profileitem_Pythonloader_Pythonpath
50     ProfileID = gid_Profile_Pythonloader_Uno_Ini;
51     ModuleID = gid_Module_Pyuno;
52     Section = "Bootstrap";
53     Order = 1;
54     Key = "PYUNO_LOADER_PYTHONPATH";
55 #ifdef SYSTEM_PYTHON
56     Value = "$ORIGIN";
57 #else
58   #ifdef UNX
59     #ifdef MACOSX
60     #define FRAMEWORKLIB CONCAT3($ORIGIN,/LibreOfficePython.framework/Versions/Current/lib/python,PYMAJMIN)
61     Value = CONCAT4(FRAMEWORKLIB FRAMEWORKLIB,
62                    /lib-dynload FRAMEWORKLIB,
63                    /lib-tk FRAMEWORKLIB,
64                    /site-packages $ORIGIN);
65     #else
66     Value = CONCAT9($ORIGIN/python-core-,PYVERSION,
67                    /lib $ORIGIN/python-core-,PYVERSION,
68                    /lib/lib-dynload $ORIGIN/python-core-,PYVERSION,
69                    /lib/lib-tk $ORIGIN/python-core-,PYVERSION,
70                    /lib/site-packages $ORIGIN);
71     #endif
72   #else
73    #ifdef _gcc3
74     Value = STRING(CONCAT9($ORIGIN/python-core-,PYVERSION,
75                    /lib $ORIGIN/python-core-,PYVERSION,
76                    /lib/lib-dynload $ORIGIN/python-core-,PYVERSION,
77                    /lib/lib-tk $ORIGIN/python-core-,PYVERSION,
78                    /lib/site-packages $ORIGIN));
79    #else
80     Value = STRING(CONCAT5($ORIGIN/python-core-,PYVERSION,
81                    /lib $ORIGIN/python-core-,PYVERSION,
82                    /lib/site-packages $ORIGIN));
83    #endif
84   #endif
85 #endif
86 End
88 // DISABLE_PYUNO
89 #endif