From 9858784eb6369dc189836f8971791af5238145ea Mon Sep 17 00:00:00 2001 From: Arnavion Date: Wed, 11 Feb 2015 10:01:29 -0800 Subject: Better project files. - Output directly to rel\ instead of to bin\ and then copying files over. - Deduped Win32 vs x64 configs - Moved some common properties to hexchat.props - All build intermediates (except htm's intermediates) are no longer emitted in the source directory --- src/common/common.vcxproj | 80 +++++---------------- src/common/common.vcxproj.filters | 10 +-- src/common/make-te.vcxproj | 63 ++-------------- src/fe-gtk/fe-gtk.vcxproj | 84 ++++++---------------- src/fe-gtk/fe-gtk.vcxproj.filters | 4 +- src/fe-gtk/hexchat.rc.tt | 4 +- .../notifications/notifications-winrt.vcxproj | 79 ++------------------ src/fe-gtk/sexy-spell-entry.c | 5 ++ src/fe-gtk/xtext.c | 6 ++ src/fe-text/fe-text.vcxproj | 60 +++------------- src/htm/htm.csproj | 15 +--- 11 files changed, 83 insertions(+), 327 deletions(-) (limited to 'src') diff --git a/src/common/common.vcxproj b/src/common/common.vcxproj index b52b06c7..28a4da11 100644 --- a/src/common/common.vcxproj +++ b/src/common/common.vcxproj @@ -2,6 +2,7 @@ v120 + StaticLibrary @@ -23,7 +24,7 @@ - + @@ -36,8 +37,8 @@ - - + + @@ -56,7 +57,7 @@ - + @@ -76,7 +77,7 @@ - + {87554B59-006C-4D94-9714-897B27067BA3} @@ -84,83 +85,34 @@ common - - StaticLibrary - false - true - MultiByte - - - StaticLibrary - false - true - MultiByte - - - - - - - - - - - - - - $(HexChatBin) - $(HexChatObj)$(ProjectName)\ - - - $(HexChatBin) - $(HexChatObj)$(ProjectName)\ + + + + $(HexChatLib) - - - true - true WIN32;NDEBUG;_LIB;$(OwnFlags);%(PreprocessorDefinitions) - $(SolutionDir)..;$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories) - true + $(HexChatLib);$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories) - - Windows - true - true - true - - - - true - true WIN32;_WIN64;_AMD64_;NDEBUG;_LIB;$(OwnFlags);%(PreprocessorDefinitions) - $(SolutionDir)..;$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories) - true + $(HexChatLib);$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories) 4267;%(DisableSpecificWarnings) - - Windows - true - true - true - - - "$(ProjectDir)marshal.h" -"$(DepsRoot)\bin\glib-genmarshal.exe" --prefix=_hexchat_marshal --body "$(ProjectDir)marshalers.list" > "$(ProjectDir)marshal.c" +"$(HexChatLib)make-te.exe" < "$(ProjectDir)textevents.in" > "$(HexChatLib)textevents.h" 2> "$(HexChatLib)textenums.h" +powershell -File "$(SolutionDir)..\win32\version-template.ps1" "$(SolutionDir)..\win32\config.h.tt" "$(HexChatLib)config.h" +"$(DepsRoot)\bin\glib-genmarshal.exe" --prefix=_hexchat_marshal --header "$(ProjectDir)marshalers.list" > "$(HexChatLib)marshal.h" +"$(DepsRoot)\bin\glib-genmarshal.exe" --prefix=_hexchat_marshal --body "$(ProjectDir)marshalers.list" > "$(HexChatLib)marshal.c" ]]> diff --git a/src/common/common.vcxproj.filters b/src/common/common.vcxproj.filters index e80d9a63..79e64cb4 100644 --- a/src/common/common.vcxproj.filters +++ b/src/common/common.vcxproj.filters @@ -71,10 +71,10 @@ Header Files - + Header Files - + Header Files @@ -98,13 +98,13 @@ Header Files - + Header Files Header Files - + Header Files @@ -181,7 +181,7 @@ Source Files - + Source Files diff --git a/src/common/make-te.vcxproj b/src/common/make-te.vcxproj index e9b4c533..24d8f9b6 100644 --- a/src/common/make-te.vcxproj +++ b/src/common/make-te.vcxproj @@ -2,6 +2,7 @@ v120 + Application @@ -19,82 +20,30 @@ makete - - Application - false - true - MultiByte - - - Application - false - true - MultiByte - - - - - - - - - - - - - - false - $(HexChatBin) - $(HexChatObj)$(ProjectName)\ - - - false - $(HexChatBin) - $(HexChatObj)$(ProjectName)\ + + + + $(HexChatLib) - - - true - true WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true Console - true - true - true - - "$(HexChatBin)make-te.exe" < "$(ProjectDir)textevents.in" > "$(ProjectDir)textevents.h" 2> "$(ProjectDir)textenums.h" - - - - true - true WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true Console - true - true - true - - "$(HexChatBin)make-te.exe" < "$(ProjectDir)textevents.in" > "$(ProjectDir)textevents.h" 2> "$(ProjectDir)textenums.h" - - - - \ No newline at end of file + diff --git a/src/fe-gtk/fe-gtk.vcxproj b/src/fe-gtk/fe-gtk.vcxproj index 62790283..401518b4 100644 --- a/src/fe-gtk/fe-gtk.vcxproj +++ b/src/fe-gtk/fe-gtk.vcxproj @@ -2,6 +2,7 @@ v120 + Application @@ -19,79 +20,38 @@ fegtk - - Application - false - MultiByte - - - Application - false - MultiByte - - - - - - - - - - - - - - false - hexchat - $(HexChatBin) - $(HexChatObj)$(ProjectName)\ - - - false + + + hexchat - $(HexChatBin) - $(HexChatObj)$(ProjectName)\ + $(HexChatRel) - - - true - true + + false WIN32;NDEBUG;_WINDOWS;$(OwnFlags);%(PreprocessorDefinitions) - $(SolutionDir)..;..\common;$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories) - true + ..\common;$(HexChatLib);$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories) 4244;%(DisableSpecificWarnings) - Windows - true - true - true - $(DepsRoot)\lib;$(OutDir);%(AdditionalLibraryDirectories) - $(DepLibs);common.lib;%(AdditionalDependencies) + $(DepsRoot)\lib;%(AdditionalLibraryDirectories) + $(DepLibs);$(HexChatLib)common.lib;%(AdditionalDependencies) mainCRTStartup - - - true - true + + false WIN32;_WIN64;_AMD64_;NDEBUG;_WINDOWS;$(OwnFlags);%(PreprocessorDefinitions) - $(SolutionDir)..;..\common;$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories) - true + ..\common;$(HexChatLib);$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories) 4244;4267;%(DisableSpecificWarnings) - Windows - true - true - true - $(DepsRoot)\lib;$(OutDir);%(AdditionalLibraryDirectories) - $(DepLibs);common.lib;%(AdditionalDependencies) + $(DepsRoot)\lib;%(AdditionalLibraryDirectories) + $(DepLibs);$(HexChatLib)common.lib;%(AdditionalDependencies) mainCRTStartup @@ -99,10 +59,10 @@ Build hexchat.rc and gresource file @@ -159,7 +119,7 @@ powershell "Get-Content -Encoding UTF8 '$(SolutionDir)..\src\fe-gtk\hexchat.rc.u - + @@ -174,7 +134,7 @@ powershell "Get-Content -Encoding UTF8 '$(SolutionDir)..\src\fe-gtk\hexchat.rc.u - + @@ -183,6 +143,4 @@ powershell "Get-Content -Encoding UTF8 '$(SolutionDir)..\src\fe-gtk\hexchat.rc.u - - - \ No newline at end of file + diff --git a/src/fe-gtk/fe-gtk.vcxproj.filters b/src/fe-gtk/fe-gtk.vcxproj.filters index a950d02f..fe211a2d 100644 --- a/src/fe-gtk/fe-gtk.vcxproj.filters +++ b/src/fe-gtk/fe-gtk.vcxproj.filters @@ -182,7 +182,7 @@ Source Files - + Source Files @@ -198,7 +198,7 @@ - + Resource Files diff --git a/src/fe-gtk/hexchat.rc.tt b/src/fe-gtk/hexchat.rc.tt index 684ddfdb..d4f554b2 100644 --- a/src/fe-gtk/hexchat.rc.tt +++ b/src/fe-gtk/hexchat.rc.tt @@ -1,9 +1,9 @@ #include -#include "../../config.h" +#include "config.h" #define COMMA_VERSION <#= [string]::Join(',', $versionParts) #>,0 -XC_ICON ICON "../../data/icons/hexchat.ico" +XC_ICON ICON "<#= $env:SOLUTIONDIR -replace '\\', '/' #>data/icons/hexchat.ico" VS_VERSION_INFO VERSIONINFO FILEVERSION COMMA_VERSION diff --git a/src/fe-gtk/notifications/notifications-winrt.vcxproj b/src/fe-gtk/notifications/notifications-winrt.vcxproj index 7a4e9888..dcd2a2b7 100644 --- a/src/fe-gtk/notifications/notifications-winrt.vcxproj +++ b/src/fe-gtk/notifications/notifications-winrt.vcxproj @@ -12,8 +12,7 @@ - true - true + true @@ -23,71 +22,25 @@ notifications-winrt - - DynamicLibrary - false + v120 - true - Unicode - - DynamicLibrary - false - true Unicode - v120 - - - - - - - - - - - - - false - hcnotifications-winrt - $(HexChatBin) - $(HexChatObj)$(ProjectName)\ - $(IncludePath) - $(LibraryPath) - - - false - $(HexChatBin) + + + hcnotifications-winrt - $(HexChatObj)$(ProjectName)\ - $(IncludePath) - $(LibraryPath) + $(HexChatRel)plugins\ - Level3 - NotUsing - MaxSpeed - true - true WIN32;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY;_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT;NDEBUG;_WINDOWS;_USRDLL;NOTIFICATIONS_EXPORTS;%(PreprocessorDefinitions) true - true - $(VCInstallDir)vcpackages;$(FrameworkSdkDir)References\CommonConfiguration\Neutral;%(AdditionalUsingDirectories) - true - Windows - true - true - true - true - false - - $(DepLibs);mincore.lib;runtimeobject.lib;%(AdditionalDependencies) 6.03 $(DepsRoot)\lib;%(AdditionalLibraryDirectories) @@ -95,33 +48,15 @@ - Level3 - NotUsing - MaxSpeed - true - true WIN32;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY;_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT;NDEBUG;_WINDOWS;_USRDLL;NOTIFICATIONS_EXPORTS;%(PreprocessorDefinitions) true - true - $(VCInstallDir)vcpackages;$(FrameworkSdkDir)References\CommonConfiguration\Neutral;%(AdditionalUsingDirectories) - true - Windows - true - true - true - true - false - - $(DepLibs);mincore.lib;runtimeobject.lib;%(AdditionalDependencies) 6.03 $(DepsRoot)\lib;%(AdditionalLibraryDirectories) - - - \ No newline at end of file + diff --git a/src/fe-gtk/sexy-spell-entry.c b/src/fe-gtk/sexy-spell-entry.c index 904746f4..0617d947 100644 --- a/src/fe-gtk/sexy-spell-entry.c +++ b/src/fe-gtk/sexy-spell-entry.c @@ -31,7 +31,12 @@ #include #include #include "sexy-iso-codes.h" + +#ifdef WIN32 +#include "marshal.h" +#else #include "../common/marshal.h" +#endif #ifdef WIN32 #include "../common/typedef.h" diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c index 495568f8..121f35a3 100644 --- a/src/fe-gtk/xtext.c +++ b/src/fe-gtk/xtext.c @@ -37,7 +37,13 @@ #include "../common/util.h" #include "../common/hexchatc.h" #include "../common/url.h" + +#ifdef WIN32 +#include "marshal.h" +#else #include "../common/marshal.h" +#endif + #include "fe-gtk.h" #include "xtext.h" #include "fkeys.h" diff --git a/src/fe-text/fe-text.vcxproj b/src/fe-text/fe-text.vcxproj index c59c57bc..1da7e733 100644 --- a/src/fe-text/fe-text.vcxproj +++ b/src/fe-text/fe-text.vcxproj @@ -2,6 +2,7 @@ v120 + Application @@ -19,77 +20,38 @@ fetext - - Application - false - true - MultiByte - - - Application - false - true - MultiByte - - - - - - - - - - - - - - false - hexchat-text - $(HexChatBin) - $(HexChatObj)$(ProjectName)\ - - - false + + + hexchat-text - $(HexChatBin) - $(HexChatObj)$(ProjectName)\ + $(HexChatRel) - - - true - true WIN32;NDEBUG;_CONSOLE;$(OwnFlags);%(PreprocessorDefinitions) - $(SolutionDir)..;$(DepsRoot)\include;$(Glib);%(AdditionalIncludeDirectories) - true + $(HexChatLib);$(DepsRoot)\include;$(Glib);%(AdditionalIncludeDirectories) Console true true true - $(DepLibs);"$(OutDir)\common.lib";%(AdditionalDependencies) + $(DepLibs);$(HexChatLib)common.lib;%(AdditionalDependencies) $(DepsRoot)\lib;%(AdditionalLibraryDirectories) - - - true - true WIN32;_WIN64;_AMD64_;NDEBUG;_CONSOLE;$(OwnFlags);%(PreprocessorDefinitions) - $(SolutionDir)..;$(DepsRoot)\include;$(Glib);%(AdditionalIncludeDirectories) - true + $(HexChatLib);$(DepsRoot)\include;$(Glib);%(AdditionalIncludeDirectories) Console true true true - $(DepLibs);"$(OutDir)\common.lib";%(AdditionalDependencies) + $(DepLibs);$(HexChatLib)common.lib;%(AdditionalDependencies) $(DepsRoot)\lib;%(AdditionalLibraryDirectories) @@ -100,6 +62,4 @@ - - - \ No newline at end of file + diff --git a/src/htm/htm.csproj b/src/htm/htm.csproj index eea953d2..d56f2188 100644 --- a/src/htm/htm.csproj +++ b/src/htm/htm.csproj @@ -61,22 +61,13 @@ + x64 + pdbonly + true ..\..\..\hexchat-build\x64\bin\ TRACE - true - pdbonly - x64 - bin\Release\thememan.exe.CodeAnalysisLog.xml - true - GlobalSuppressions.cs prompt false - MinimumRecommendedRules.ruleset - ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets - false - ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules - false - false -- cgit 1.4.1