diff --git a/.gitignore b/.gitignore index 3420d451..a7b57f3d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ -Win32/ +x86/ x64/ Debug/ Release/ +prebuilt/ # vs2010 ipch/ diff --git a/core/e2dmacros.h b/core/e2dmacros.h index 4de8cc47..95859de0 100644 --- a/core/e2dmacros.h +++ b/core/e2dmacros.h @@ -95,13 +95,6 @@ #pragma comment(lib, "shlwapi.lib") -#if _MSC_VER >= 1800 -# define E2D_OP_EXPLICIT explicit -#else -# define E2D_OP_EXPLICIT -#endif - - #if _MSC_VER >= 1900 # define E2D_NOEXCEPT noexcept #else @@ -109,32 +102,22 @@ #endif -#if _MSC_VER >= 1800 -# define E2D_DISABLE_COPY(Class) \ - Class(const Class &) = delete; \ +#define E2D_DISABLE_COPY(Class) \ + Class(const Class &) = delete; \ Class & operator= (const Class &) = delete + + +#if defined( DEBUG ) || defined( _DEBUG ) +# define E2D_WARNING(msg) do { ::OutputDebugStringW(L"[easy2d] Warning: " _CRT_WIDE(msg) L"\r\n"); } while(0) #else -# define E2D_DISABLE_COPY(Class) \ - Class(const Class &); \ - Class & operator= (const Class &) +# define E2D_WARNING(msg) ((void)0) #endif -#ifndef E2D_WARNING -# if defined( DEBUG ) || defined( _DEBUG ) -# define E2D_WARNING(msg) do { ::OutputDebugStringW(L"[easy2d] Warning: " _CRT_WIDE(msg) L"\r\n"); } while(0) -# else -# define E2D_WARNING(msg) ((void)0) -# endif -#endif - - -#ifndef E2D_WARNING_IF -# if defined( DEBUG ) || defined( _DEBUG ) -# define E2D_WARNING_IF(exp, msg) do { if (exp) { ::OutputDebugStringW(L"[easy2d] Warning: " _CRT_WIDE(msg) L"\r\n"); } } while(0) -# else -# define E2D_WARNING_IF(exp, msg) ((void)0) -# endif +#if defined( DEBUG ) || defined( _DEBUG ) +# define E2D_WARNING_IF(exp, msg) do { if (exp) { ::OutputDebugStringW(L"[easy2d] Warning: " _CRT_WIDE(msg) L"\r\n"); } } while(0) +#else +# define E2D_WARNING_IF(exp, msg) ((void)0) #endif diff --git a/core/e2dutil.h b/core/e2dutil.h index be76ad48..86609c0c 100644 --- a/core/e2dutil.h +++ b/core/e2dutil.h @@ -61,7 +61,7 @@ namespace easy2d Point operator - () const; bool operator== (const Point& other) const; - E2D_OP_EXPLICIT operator easy2d::Size() const; + explicit operator easy2d::Size() const; // ÅжÏÁ½µã¼ä¾àÀë static float Distance( @@ -102,7 +102,7 @@ namespace easy2d Size operator - () const; bool operator== (const Size& other) const; - E2D_OP_EXPLICIT operator easy2d::Point() const; + explicit operator easy2d::Point() const; }; @@ -194,7 +194,7 @@ namespace easy2d const D2D1_COLOR_F& color ); - E2D_OP_EXPLICIT operator D2D1_COLOR_F() const; + explicit operator D2D1_COLOR_F() const; public: enum Value : UINT @@ -548,7 +548,7 @@ namespace easy2d public: Transform(); - E2D_OP_EXPLICIT operator D2D1::Matrix3x2F() const; + explicit operator D2D1::Matrix3x2F() const; bool operator== (const Transform& other) const; }; diff --git a/core/objects/Node.cpp b/core/objects/Node.cpp index 05e84cf4..29f43318 100644 --- a/core/objects/Node.cpp +++ b/core/objects/Node.cpp @@ -22,6 +22,7 @@ #include "..\e2devent.h" #include "..\e2daction.h" #include "..\e2dmodule.h" +#include easy2d::Node::Node() diff --git a/project/vs2012/Easy2D.sln b/project/vs2012/Easy2D.sln deleted file mode 100644 index bd462082..00000000 --- a/project/vs2012/Easy2D.sln +++ /dev/null @@ -1,26 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Easy2D", "Easy2D.vcxproj", "{722EA245-ADD5-4296-8C85-8FF42C0335D3}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Debug|x64 = Debug|x64 - Release|Win32 = Release|Win32 - Release|x64 = Release|x64 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {722EA245-ADD5-4296-8C85-8FF42C0335D3}.Debug|Win32.ActiveCfg = Debug|Win32 - {722EA245-ADD5-4296-8C85-8FF42C0335D3}.Debug|Win32.Build.0 = Debug|Win32 - {722EA245-ADD5-4296-8C85-8FF42C0335D3}.Debug|x64.ActiveCfg = Debug|x64 - {722EA245-ADD5-4296-8C85-8FF42C0335D3}.Debug|x64.Build.0 = Debug|x64 - {722EA245-ADD5-4296-8C85-8FF42C0335D3}.Release|Win32.ActiveCfg = Release|Win32 - {722EA245-ADD5-4296-8C85-8FF42C0335D3}.Release|Win32.Build.0 = Release|Win32 - {722EA245-ADD5-4296-8C85-8FF42C0335D3}.Release|x64.ActiveCfg = Release|x64 - {722EA245-ADD5-4296-8C85-8FF42C0335D3}.Release|x64.Build.0 = Release|x64 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/project/vs2013/Easy2D.vcxproj b/project/vs2013/Easy2D.vcxproj index fecc6aa4..17fa455a 100644 --- a/project/vs2013/Easy2D.vcxproj +++ b/project/vs2013/Easy2D.vcxproj @@ -67,8 +67,8 @@ - $(SolutionDir)$(Platform)\ - $(Configuration)\$(Platform)\ + $(SolutionDir)x86\ + $(Configuration)\x86\ Easy2Ddw @@ -77,8 +77,8 @@ $(SolutionDir)$(Platform)\ - $(SolutionDir)$(Platform)\ - $(Configuration)\$(Platform)\ + $(SolutionDir)x86\ + $(Configuration)\x86\ Easy2Dw diff --git a/project/vs2015/Easy2D.sln b/project/vs2015/Easy2D.sln new file mode 100644 index 00000000..b1f7408b --- /dev/null +++ b/project/vs2015/Easy2D.sln @@ -0,0 +1,32 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.23107.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Easy2D", "Easy2D.vcxproj", "{FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|Win32 = Debug|Win32 + Release|x64 = Release|x64 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x64.ActiveCfg = Debug|x64 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x64.Build.0 = Debug|x64 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x64.Deploy.0 = Debug|x64 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|Win32.ActiveCfg = Debug|Win32 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|Win32.Build.0 = Debug|Win32 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|x64.ActiveCfg = Release|x64 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|x64.Build.0 = Release|x64 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|Win32.ActiveCfg = Release|Win32 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FAC2BE2F-19AF-477A-8DC6-4645E66868A4} + EndGlobalSection +EndGlobal diff --git a/project/vs2012/Easy2D.vcxproj b/project/vs2015/Easy2D.vcxproj similarity index 80% rename from project/vs2012/Easy2D.vcxproj rename to project/vs2015/Easy2D.vcxproj index 1712d273..21f55335 100644 --- a/project/vs2012/Easy2D.vcxproj +++ b/project/vs2015/Easy2D.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -18,6 +18,182 @@ x64 + + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF} + Win32Proj + Easy2D + 8.1 + + + + StaticLibrary + true + Unicode + v140 + + + StaticLibrary + false + false + Unicode + v140 + + + StaticLibrary + true + Unicode + v140 + + + StaticLibrary + false + false + Unicode + v140 + + + + + + + + + + + + + + + + + + + + + true + Easy2Ddw + $(SolutionDir)x86\ + $(Configuration)\x86\ + + + true + Easy2Ddw + $(SolutionDir)$(Platform)\ + $(Configuration)\$(Platform)\ + + + false + Easy2Dw + $(SolutionDir)x86\ + $(Configuration)\x86\ + + + false + Easy2Dw + $(SolutionDir)$(Platform)\ + $(Configuration)\$(Platform)\ + + + + NotUsing + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + false + None + false + true + + + Console + true + + + + + + + + + + + false + + + + + NotUsing + Level3 + Disabled + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + false + None + false + true + + + Console + true + + + + + + + + + + + NotUsing + Level3 + MaxSpeed + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + false + None + true + true + + + Console + true + true + true + + + + + + + + + + + + + NotUsing + Level3 + MaxSpeed + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + false + None + true + true + + + Console + true + true + true + + + + + + + + @@ -91,150 +267,6 @@ - - {722EA245-ADD5-4296-8C85-8FF42C0335D3} - Win32Proj - Easy2D - - - - StaticLibrary - true - v110 - Unicode - - - StaticLibrary - true - v110 - Unicode - - - StaticLibrary - false - v110 - false - Unicode - - - StaticLibrary - false - v110 - false - Unicode - - - - - - - - - - - - - - - - - - - $(SolutionDir)$(Platform)\ - $(Configuration)\$(Platform)\ - Easy2Ddw - - - $(Configuration)\$(Platform)\ - Easy2Ddw - $(SolutionDir)$(Platform)\ - - - $(SolutionDir)$(Platform)\ - $(Configuration)\$(Platform)\ - Easy2Dw - - - $(Configuration)\$(Platform)\ - Easy2Dw - $(SolutionDir)$(Platform)\ - - - - NotUsing - Level3 - Disabled - WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) - false - None - false - true - - - Windows - true - - - - - NotUsing - Level3 - Disabled - WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) - false - None - false - true - - - Windows - true - - - - - Level3 - - - MaxSpeed - - - true - WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) - false - None - true - true - - - Windows - true - true - true - - - - - Level3 - - - MaxSpeed - - - true - WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) - false - None - true - true - - - Windows - true - true - true - - diff --git a/project/vs2012/Easy2D.vcxproj.filters b/project/vs2015/Easy2D.vcxproj.filters similarity index 100% rename from project/vs2012/Easy2D.vcxproj.filters rename to project/vs2015/Easy2D.vcxproj.filters index 46a966d6..5556be7b 100644 --- a/project/vs2012/Easy2D.vcxproj.filters +++ b/project/vs2015/Easy2D.vcxproj.filters @@ -36,9 +36,6 @@ actions - - actions - actions @@ -204,6 +201,9 @@ utils + + actions + diff --git a/project/vs2017/Easy2D.sln b/project/vs2017/Easy2D.sln index 9284ee79..cbc86ae5 100644 --- a/project/vs2017/Easy2D.sln +++ b/project/vs2017/Easy2D.sln @@ -8,21 +8,21 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 + Debug|Win32 = Debug|Win32 Release|x64 = Release|x64 - Release|x86 = Release|x86 + Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x64.ActiveCfg = Debug|x64 {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x64.Build.0 = Debug|x64 {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x64.Deploy.0 = Debug|x64 - {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x86.ActiveCfg = Debug|Win32 - {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x86.Build.0 = Debug|Win32 - {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|x86.Deploy.0 = Debug|Win32 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|Win32.ActiveCfg = Debug|Win32 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|Win32.Build.0 = Debug|Win32 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Debug|Win32.Deploy.0 = Debug|Win32 {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|x64.ActiveCfg = Release|x64 {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|x64.Build.0 = Release|x64 - {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|x86.ActiveCfg = Release|Win32 - {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|x86.Build.0 = Release|Win32 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|Win32.ActiveCfg = Release|Win32 + {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/project/vs2017/Easy2D.vcxproj b/project/vs2017/Easy2D.vcxproj index 298111bd..71efa195 100644 --- a/project/vs2017/Easy2D.vcxproj +++ b/project/vs2017/Easy2D.vcxproj @@ -23,7 +23,13 @@ {FF7F943D-A89C-4E6C-97CF-84F7D8FF8EDF} Win32Proj Easy2D - 10.0.17134.0 + + + + + $([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0')) + $(LatestTargetPlatformVersion) + $(WindowsTargetPlatformVersion) @@ -73,8 +79,8 @@ true Easy2Ddw - $(SolutionDir)$(Platform)\ - $(Configuration)\$(Platform)\ + $(SolutionDir)x86\ + $(Configuration)\x86\ true @@ -85,8 +91,8 @@ false Easy2Dw - $(SolutionDir)$(Platform)\ - $(Configuration)\$(Platform)\ + $(SolutionDir)x86\ + $(Configuration)\x86\ false