merged tag ooo/OOO330_m14
[LibreOffice.git] / soldep / inc / appdef.hxx
blobcc8d5d0f2f8bfa8c31404623719f731dd3c3d84a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef _MHAPPDEF_HXX
29 #define _MHAPPDEF_HXX
32 #ifdef UNX
33 #define DEFAULT_INI_ROOT "/so/env"
34 #define DEFAULT_BS_ROOT "/so/env/b_server"
35 #define DEFAULT_EIS_ROOT "/so/env/merge"
36 #define PATH_SEPARATOR '/'
37 #define S_PATH_SEPARATOR "/"
38 #else
39 #define DEFAULT_INI_ROOT "r:"
40 #define DEFAULT_BS_ROOT "n:"
41 #define DEFAULT_EIS_ROOT "w:"
42 #define PATH_SEPARATOR '\\'
43 #define S_PATH_SEPARATOR "\\"
44 #endif
46 #define _INI_DRV DEFAULT_INI_ROOT
47 #define B_SERVER_ROOT DEFAULT_BS_ROOT
48 #define DEFAULT_INI_FILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "b_server.ini"
49 #define BINARYROOT B_SERVER_ROOT S_PATH_SEPARATOR "bin"
50 #define _JOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "db"
51 #define _INJOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dbin"
52 #define _OUTJOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dbout"
53 #define _ERRJOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dberr"
54 #define _BUILDPATTERN_DIR B_SERVER_ROOT S_PATH_SEPARATOR "pattern"
55 #define _COMMENT_DIR B_SERVER_ROOT S_PATH_SEPARATOR "comment"
56 #define _SOLARLIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "solar.lst"
57 #define _DEF_STAND_LIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "stand.lst"
58 #define _DEF_DEFAULT_LIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "default.lst"
59 #define _DEF_SSOLARINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.ini"
60 #define _DEF_SSCOMMON B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.cmn"
61 #define _SERVER_IDENT_FLAG B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "server.id"
62 #define _CUSTOMJOBINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "custom.ini"
63 #define _BUILDCOMMANDINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "bcommand.ini"
64 #define _DATABASEINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "database.ini"
65 #define _ZNINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "bszn.ini"
66 #define _ERRORINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "errinf.lst"
67 #define _REGEXPINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "regexp.lst"
68 #define _POSITIVERRORINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "perrinf.lst"
69 #define _POSITIVREGEXPINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "pregexp.lst"
70 #define _INIROOT B_SERVER_ROOT S_PATH_SEPARATOR "config"
71 #define _INIROOT_OLD B_SERVER_ROOT S_PATH_SEPARATOR "config"
72 #define _ENV_DIR B_SERVER_ROOT S_PATH_SEPARATOR "config"
73 #define _REDIRECTIONPATH B_SERVER_ROOT S_PATH_SEPARATOR "redir"
74 #define _ZLOGSPATH B_SERVER_ROOT S_PATH_SEPARATOR "zlogs"
75 #define DEFAULT_PROTPATH B_SERVER_ROOT S_PATH_SEPARATOR "filesize"
76 #define _INI_UNC "\\\\jumbo2.germany.sun.com\\R-Laufwerk"
77 #define _INI_UNC_OLD "\\\\jumbo2.germany.sun.com\\R-Laufwerk"
78 #define LOG_DIR B_SERVER_ROOT S_PATH_SEPARATOR "log"
80 #define _REDIRECTIONSIZE "10000"
81 #define _EISPATH DEFAULT_EIS_ROOT S_PATH_SEPARATOR "EIS"
83 #define _BUILDEVENTPATH _EISPATH S_PATH_SEPARATOR "EventImport"
85 #define _WRITE_LOGFILES "1"
86 #define _WRITE_JOBFILES "1"
88 #define _VERSION_WINDOW "0"
89 #define _JOB_WINDOW "0"
90 #define _APPWIN_MAXIMIZED "0"
91 #define _CONTEXT_TBOX "0"
93 #define _COLOR_DROPED COL_GRAY
94 #define _COLOR_WAIT COL_BLUE
95 #define _COLOR_BUILD COL_GREEN
96 #define _COLOR_ERROR COL_RED
97 #define _COLOR_BUILDERROR COL_MAGENTA
98 #define _COLOR_OK COL_BLACK
99 #define _COLOR_DELIVERED COL_CYAN
100 #define _COLOR_MASTERSTOP COL_LIGHTRED
102 #define _ASYNCHRON "1"
104 // folowing defines are used to write filesize information for binaries
105 #define OH_GOTT "*"
106 #define UNX_DEFAULT_FILESIZES "bin/" OH_GOTT ".bin;bin/" OH_GOTT ".res;bin/" OH_GOTT ".tlb;lib/" OH_GOTT ".so"
107 #define DOS_DEFAULT_FILESIZES "bin\\*.exe;bin\\*.res;bin\\*.dll;bin\\*.tlb"
109 #ifdef UNX
110 #define DEFAULT_FILESIZES UNX_DEFAULT_FILESIZES
111 #else
112 #define DEFAULT_FILESIZES DOS_DEFAULT_FILESIZES
113 #endif
115 /** States for BuildServer projects and directories
117 #ifndef BuildStatus
118 #define BuildStatus USHORT
119 #endif
120 #define BS_DROPED 0 /// project is waiting for dispatching
121 #define BS_BUILD 1 /// project/directory is building
122 #define BS_WAIT 2 /// project/directory is waiting for building
123 #define BS_OK 3 /// project/directory builded whithout errors
124 #define BS_BUILDANDERROR 4 /// project is in build, any errors accured
125 #define BS_ERROR 5 /// project/directory builded with errors
126 #define BS_NON 6 /// no state is set
127 #define BS_DELIVERED 7 /// project was delivered without errors
128 #define BS_DELIVEREDANDERROR 8 /// project was delivered with errors
129 #define BS_FIXED 9 /// errors are fixed
130 #define BS_NOTDELIVERED 10 /// project is ready to deliver
131 #define BS_BUILD_PRIO 11 /// build projects with prio
132 #define BS_BUILD_ORDER 12 /// build project in correct order
133 #define BS_BUILD_DEPEND 13 /// build projects using dependencies
134 #define BS_BUILD_DELIVER 14 /// build projects using dependencies and deliver builded projects
135 #define BS_BUILD_NORMAL 15 /// build projects without using dependencies
136 #define BS_BUILD_DELIVER_NO_DEPEND 16 /// build projects without using dependencies and deliver builded projects
137 #define BS_BUILD_DOUBLE_LOG 17 /// error with double log names
139 #define LF_STARDIV "StarDivision"
140 #define LF_UNIX "UNIX"
141 #define LF_MAC "Macintosh"
142 #define LF_OS2 "OS/2"
144 // path conversion
145 const char* GetDefStandList();
146 const char* GetIniRoot();
147 const char* GetIniRootOld();
148 const char* GetSSolarIni();
149 const char* GetSSCommon();
150 const char* GetBServerRoot();
152 const char* GetEnv( const char *pVar );
153 const char* GetEnv( const char *pVar, const char *pDefault );
155 #define CONVERT_R_TO_HOSTFSYS( sPath ) { sPath.ToLowerAscii().SearchAndReplace( "r:", GetEnv("ISERVERBASE", DEFAULT_INI_ROOT ) ); sPath.SearchAndReplaceAll( "\\", S_PATH_SEPARATOR ); }
157 // Only for usage inside IServer!
158 #define ISERVER_DEF_STAND_LIST "r:\\b_server\\config\\stand.lst"
159 #define ISERVER_DEF_DEPEND_LIST "r:\\b_server\\config\\depend.lst"
161 #endif