| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// copyright : (C) 2014 Eran Ifrah |
| 5 |
// file name : cl_defs.h |
| 6 |
// |
| 7 |
// ------------------------------------------------------------------------- |
| 8 |
// A |
| 9 |
// _____ _ _ _ _ |
| 10 |
// / __ \ | | | | (_) | |
| 11 |
// | / \/ ___ __| | ___| | _| |_ ___ |
| 12 |
// | | / _ \ / _ |/ _ \ | | | __/ _ ) |
| 13 |
// | \__/\ (_) | (_| | __/ |___| | || __/ |
| 14 |
// \____/\___/ \__,_|\___\_____/_|\__\___| |
| 15 |
// |
| 16 |
// F i l e |
| 17 |
// |
| 18 |
// This program is free software; you can redistribute it and/or modify |
| 19 |
// it under the terms of the GNU General Public License as published by |
| 20 |
// the Free Software Foundation; either version 2 of the License, or |
| 21 |
// (at your option) any later version. |
| 22 |
// |
| 23 |
////////////////////////////////////////////////////////////////////////////// |
| 24 |
////////////////////////////////////////////////////////////////////////////// |
| 25 |
|
| 26 |
#ifndef CL_DEFS_H |
| 27 |
#define CL_DEFS_H |
| 28 |
|
| 29 |
//----------------------------------- |
| 30 |
// Use new toolbars where possible |
| 31 |
//----------------------------------- |
| 32 |
#include <wx/version.h> |
| 33 |
|
| 34 |
#define USE_AUI_NOTEBOOK 0 |
| 35 |
|
| 36 |
// Defaults |
| 37 |
#ifdef __WXGTK__ |
| 38 |
#ifndef PLUGINS_DIR |
| 39 |
#define PLUGINS_DIR "/usr/lib/codelite" |
| 40 |
#endif |
| 41 |
#ifndef INSTALL_DIR |
| 42 |
#define INSTALL_DIR "/usr/share/codelite" |
| 43 |
#endif |
| 44 |
#define CL_USE_NATIVEBOOK 1 |
| 45 |
#else |
| 46 |
#ifdef USE_POSIX_LAYOUT |
| 47 |
#ifndef PLUGINS_DIR |
| 48 |
#define PLUGINS_DIR "\\lib\\codelite" |
| 49 |
#endif |
| 50 |
#ifndef INSTALL_DIR |
| 51 |
#define INSTALL_DIR "\\share\\codelite" |
| 52 |
#endif |
| 53 |
#ifndef CFGDIR |
| 54 |
#define CFGDIR "\\share\\codelite\\config\\cfg" |
| 55 |
#endif |
| 56 |
#endif |
| 57 |
// MSW / OSX and the rest of the world |
| 58 |
#define CL_USE_NATIVEBOOK 0 |
| 59 |
#endif |
| 60 |
|
| 61 |
// Allow override the default CL_USE_NATIVEBOOK by cmake variable (GTK only) |
| 62 |
#ifdef __WXGTK__ |
| 63 |
#if GTK_USE_NATIVEBOOK |
| 64 |
# ifdef CL_USE_NATIVEBOOK |
| 65 |
# undef CL_USE_NATIVEBOOK |
| 66 |
# endif |
| 67 |
# define CL_USE_NATIVEBOOK 1 |
| 68 |
#else |
| 69 |
# ifdef CL_USE_NATIVEBOOK |
| 70 |
# undef CL_USE_NATIVEBOOK |
| 71 |
# endif |
| 72 |
# define CL_USE_NATIVEBOOK 0 |
| 73 |
#endif // GTK_USE_NATIVEBOOK |
| 74 |
#endif // __WXGTK__ |
| 75 |
|
| 76 |
#define CL_USE_NEW_BUILD_TAB 1 |
| 77 |
#define CL_N0_OF_BOOKMARK_TYPES 5 |
| 78 |
|
| 79 |
#endif // CL_DEFS_H |