From 3bd75b97350be31c6e112bfa98e040f891512292 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 15 Jul 2016 12:50:20 +0200 Subject: [PATCH] Library split to dynamic (DLL) and static (Lib) variants --- build/wxExtendDll.props | 10 ++ .../{wxExtend.vcxproj => wxExtendDll.vcxproj} | 9 +- ...oj.filters => wxExtendDll.vcxproj.filters} | 0 build/wxExtendLib.props | 10 ++ build/wxExtendLib.vcxproj | 125 ++++++++++++++++++ build/wxExtendLib.vcxproj.filters | 106 +++++++++++++++ include/wxex/common.h | 4 + 7 files changed, 260 insertions(+), 4 deletions(-) create mode 100644 build/wxExtendDll.props rename build/{wxExtend.vcxproj => wxExtendDll.vcxproj} (95%) rename build/{wxExtend.vcxproj.filters => wxExtendDll.vcxproj.filters} (100%) create mode 100644 build/wxExtendLib.props create mode 100644 build/wxExtendLib.vcxproj create mode 100644 build/wxExtendLib.vcxproj.filters diff --git a/build/wxExtendDll.props b/build/wxExtendDll.props new file mode 100644 index 0000000..9a6fcf7 --- /dev/null +++ b/build/wxExtendDll.props @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/build/wxExtend.vcxproj b/build/wxExtendDll.vcxproj similarity index 95% rename from build/wxExtend.vcxproj rename to build/wxExtendDll.vcxproj index ee46a19..10d4952 100644 --- a/build/wxExtend.vcxproj +++ b/build/wxExtendDll.vcxproj @@ -60,6 +60,7 @@ {A3A36689-AC35-4026-93DA-A3BA0C0E767C} wxExtend + wxExtend @@ -91,25 +92,25 @@ - + - + - + - + diff --git a/build/wxExtend.vcxproj.filters b/build/wxExtendDll.vcxproj.filters similarity index 100% rename from build/wxExtend.vcxproj.filters rename to build/wxExtendDll.vcxproj.filters diff --git a/build/wxExtendLib.props b/build/wxExtendLib.props new file mode 100644 index 0000000..9a6fcf7 --- /dev/null +++ b/build/wxExtendLib.props @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/build/wxExtendLib.vcxproj b/build/wxExtendLib.vcxproj new file mode 100644 index 0000000..ec8a8a8 --- /dev/null +++ b/build/wxExtendLib.vcxproj @@ -0,0 +1,125 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + + + + + + Create + Create + Create + Create + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {D3E29951-D9F5-486D-A167-20AE8E90B1FA} + wxExtend + wxExtend + + + + StaticLibrary + true + Unicode + + + StaticLibrary + true + Unicode + + + StaticLibrary + false + true + Unicode + + + StaticLibrary + false + true + Unicode + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/build/wxExtendLib.vcxproj.filters b/build/wxExtendLib.vcxproj.filters new file mode 100644 index 0000000..3c471d8 --- /dev/null +++ b/build/wxExtendLib.vcxproj.filters @@ -0,0 +1,106 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {e43059ae-37ac-4b28-84fb-18d1b3972b30} + po;pot + + + {33d4709f-47d3-42c1-9562-bc4743799b49} + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files\persist + + + Header Files\persist + + + Header Files + + + Header Files + + + + + Resource Files\Localization + + + + + Resource Files\Localization + + + Resource Files\Localization + + + Resource Files\Localization + + + + + Resource Files + + + \ No newline at end of file diff --git a/include/wxex/common.h b/include/wxex/common.h index 8fa76bb..599a048 100644 --- a/include/wxex/common.h +++ b/include/wxex/common.h @@ -47,8 +47,12 @@ /// Public function calling convention /// #ifdef WXEXTEND +#ifdef _WINDLL #define WXEXTEND_API __declspec(dllexport) #else +#define WXEXTEND_API +#endif +#else #define WXEXTEND_API __declspec(dllimport) #endif