mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
e67b8501bf
Fix Windows builds (msvc and mingw) including data files from disabled engines as embedded resources in executable. Bug #10878
20 lines
605 B
C
20 lines
605 B
C
#if !defined(INCLUDED_FROM_BASE_PLUGINS_H) && !defined(RC_INVOKED)
|
|
#error This file may only be included by base/plugins.h or dists/scummvm.rc
|
|
#endif
|
|
|
|
// plugin macros are defined in this simple internal header so that scummvm.rc
|
|
// can include them without causing problems for Windows resource compilers.
|
|
|
|
#define STATIC_PLUGIN 1
|
|
#define DYNAMIC_PLUGIN 2
|
|
|
|
#define PLUGIN_ENABLED_STATIC(ID) \
|
|
(ENABLE_##ID && !PLUGIN_ENABLED_DYNAMIC(ID))
|
|
|
|
#ifdef DYNAMIC_MODULES
|
|
#define PLUGIN_ENABLED_DYNAMIC(ID) \
|
|
(ENABLE_##ID && (ENABLE_##ID == DYNAMIC_PLUGIN))
|
|
#else
|
|
#define PLUGIN_ENABLED_DYNAMIC(ID) 0
|
|
#endif
|