merge the formfield patch from ooo-build
[ooovba.git] / scp2 / source / python / profileitem_python.scp
blob75bb6710f0f982c2142238bf06e2453c76759533
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  * 
5  * Copyright 2008 by Sun Microsystems, Inc.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * $RCSfile: profileitem_python.scp,v $
10  * $Revision: 1.10 $
11  *
12  * This file is part of OpenOffice.org.
13  *
14  * OpenOffice.org is free software: you can redistribute it and/or modify
15  * it under the terms of the GNU Lesser General Public License version 3
16  * only, as published by the Free Software Foundation.
17  *
18  * OpenOffice.org is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU Lesser General Public License version 3 for more details
22  * (a copy is included in the LICENSE file that accompanied this code).
23  *
24  * You should have received a copy of the GNU Lesser General Public License
25  * version 3 along with OpenOffice.org.  If not, see
26  * <http://www.openoffice.org/license.html>
27  * for a copy of the LGPLv3 License.
28  *
29  ************************************************************************/
31 #include "macros.inc"
34 Profile gid_Profile_Pythonloader_Uno_Ini
35     ModuleID = gid_Module_Optional_Pyuno;
36   #ifdef UNX
37     Name = "pythonloader.unorc";
38   #else
39     Name = "pythonloader.uno.ini";
40   #endif
41     Dir = gid_Dir_Program;
42     Styles = (NETWORK);
43 End
45 #ifndef SYSTEM_PYTHON
46 ProfileItem gid_Profileitem_Pythonloader_Pythonhome
47     ProfileID = gid_Profile_Pythonloader_Uno_Ini;
48     ModuleID = gid_Module_Optional_Pyuno;
49     Section = "Bootstrap";
50     Order = 1;
51     Key = "PYUNO_LOADER_PYTHONHOME";
52     Value = CONCAT2($ORIGIN/python-core-,PYVERSION);
53 End
54 #endif
56 ProfileItem gid_Profileitem_Pythonloader_Pythonpath
57     ProfileID = gid_Profile_Pythonloader_Uno_Ini;
58     ModuleID = gid_Module_Optional_Pyuno;
59     Section = "Bootstrap";
60     Order = 1;
61     Key = "PYUNO_LOADER_PYTHONPATH";
62 #ifdef SYSTEM_PYTHON
63     Value = "$ORIGIN";
64 #else
65   #ifdef UNX
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   #else
72    #ifdef _gcc3
73     Value = STRING(CONCAT9($ORIGIN/python-core-,PYVERSION,
74                    /lib $ORIGIN/python-core-,PYVERSION,
75                    /lib/lib-dynload $ORIGIN/python-core-,PYVERSION,
76                    /lib/lib-tk $ORIGIN/python-core-,PYVERSION,
77                    /lib/site-packages $ORIGIN));
78    #else
79     Value = STRING(CONCAT5($ORIGIN/python-core-,PYVERSION,
80                    /lib $ORIGIN/python-core-,PYVERSION,
81                    /lib/site-packages $ORIGIN));
82    #endif
83   #endif
84 #endif
85 End