|
| 1 | +/** |
| 2 | +* ============================================================================= |
| 3 | +* Source Python |
| 4 | +* Copyright (C) 2012-2015 Source Python Development Team. All rights reserved. |
| 5 | +* ============================================================================= |
| 6 | +* |
| 7 | +* This program is free software; you can redistribute it and/or modify it under |
| 8 | +* the terms of the GNU General Public License, version 3.0, as published by the |
| 9 | +* Free Software Foundation. |
| 10 | +* |
| 11 | +* This program is distributed in the hope that it will be useful, but WITHOUT |
| 12 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 13 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 14 | +* details. |
| 15 | +* |
| 16 | +* You should have received a copy of the GNU General Public License along with |
| 17 | +* this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | +* |
| 19 | +* As a special exception, the Source Python Team gives you permission |
| 20 | +* to link the code of this program (as well as its derivative works) to |
| 21 | +* "Half-Life 2," the "Source Engine," and any Game MODs that run on software |
| 22 | +* by the Valve Corporation. You must obey the GNU General Public License in |
| 23 | +* all respects for all other code used. Additionally, the Source.Python |
| 24 | +* Development Team grants this exception to all derivative works. |
| 25 | +*/ |
| 26 | +#ifndef _LOADER_DEFINITIONS_H |
| 27 | +#define _LOADER_DEFINITIONS_H |
| 28 | + |
| 29 | +//--------------------------------------------------------------------------------- |
| 30 | +// Definitions |
| 31 | +//--------------------------------------------------------------------------------- |
| 32 | +#define PYLIB_NAME_WIN32 "Python3/plat-win/python36.dll" |
| 33 | +#define PYLIB_NAME_LINUX "Python3/plat-linux/libpython3.6m.so.1.0" |
| 34 | + |
| 35 | +#define CORE_NAME_WIN32 "bin/core.dll" |
| 36 | +#define CORE_NAME_LINUX "bin/core.so" |
| 37 | + |
| 38 | +#if defined(_WIN32) |
| 39 | +# define CORE_NAME CORE_NAME_WIN32 |
| 40 | +#else |
| 41 | +# define CORE_NAME CORE_NAME_LINUX |
| 42 | +#endif |
| 43 | + |
| 44 | +#if defined(_WIN32) |
| 45 | +# define PYLIB_NAME PYLIB_NAME_WIN32 |
| 46 | +# define VCRUNTIME_LIB "Python3/plat-win/vcruntime140.dll" |
| 47 | +#elif defined(LINUX) |
| 48 | +# define PYLIB_NAME PYLIB_NAME_LINUX |
| 49 | +#endif |
| 50 | + |
| 51 | +#define MAX_PATH_LENGTH 1024 |
| 52 | +#define MAX_ERROR_LENGTH 1024 |
| 53 | +#define MSG_PREFIX "[Source.Python] " |
| 54 | + |
| 55 | +#endif // _LOADER_DEFINITIONS_H |
0 commit comments