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/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 ++ 6 files changed, 43 insertions(+), 139 deletions(-) (limited to 'src/fe-gtk') 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" -- cgit 1.4.1