From f1121898b987c4fd76c959247b6623d64e1fedd9 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Tue, 11 Jan 2011 20:25:47 +0000 Subject: [PATCH] Update ResPack project, write ResPack target for MSBuild and add libresrc project that uses the ResPack target. The ResPack target is not ideal, it will regenerate the source files even when they are up to date, if only the object files are outdated. This means that in batch builds, the source files will get regenerated for every platform/config built. Originally committed to SVN as r5175. --- .../build/msbuild/libresrc/libresrc.vcxproj | 76 +++++++++++++++++++ .../msbuild/libresrc/libresrc.vcxproj.filters | 39 ++++++++++ .../msbuild/respack/Aegisub.ResPack.targets | 68 +++++++++++++++++ aegisub/build/msbuild/respack/respack.vcxproj | 27 ++----- 4 files changed, 188 insertions(+), 22 deletions(-) create mode 100644 aegisub/build/msbuild/libresrc/libresrc.vcxproj create mode 100644 aegisub/build/msbuild/libresrc/libresrc.vcxproj.filters create mode 100644 aegisub/build/msbuild/respack/Aegisub.ResPack.targets diff --git a/aegisub/build/msbuild/libresrc/libresrc.vcxproj b/aegisub/build/msbuild/libresrc/libresrc.vcxproj new file mode 100644 index 000000000..89250b432 --- /dev/null +++ b/aegisub/build/msbuild/libresrc/libresrc.vcxproj @@ -0,0 +1,76 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {BD00D65F-24DA-4784-8860-3B972EA125FC} + libresrc + + + + StaticLibrary + + + true + + + false + true + + + + + + true + ..\..\..\src\libresrc\ + + + + + + + _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + + $(SrcDir) + + + + + + + default_config.cpp + default_config.h + + + bitmap.cpp + bitmap.h + + + + + + + + + + + + + \ No newline at end of file diff --git a/aegisub/build/msbuild/libresrc/libresrc.vcxproj.filters b/aegisub/build/msbuild/libresrc/libresrc.vcxproj.filters new file mode 100644 index 000000000..9c3a5cb56 --- /dev/null +++ b/aegisub/build/msbuild/libresrc/libresrc.vcxproj.filters @@ -0,0 +1,39 @@ + + + + + {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 + + + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + Header Files + + + \ No newline at end of file diff --git a/aegisub/build/msbuild/respack/Aegisub.ResPack.targets b/aegisub/build/msbuild/respack/Aegisub.ResPack.targets new file mode 100644 index 000000000..246bfd085 --- /dev/null +++ b/aegisub/build/msbuild/respack/Aegisub.ResPack.targets @@ -0,0 +1,68 @@ + + + + + + $(MSBuildThisFileDirectory)respack.exe + + + + + + + + + + + + + \ No newline at end of file diff --git a/aegisub/build/msbuild/respack/respack.vcxproj b/aegisub/build/msbuild/respack/respack.vcxproj index 34c282d8f..81923f245 100644 --- a/aegisub/build/msbuild/respack/respack.vcxproj +++ b/aegisub/build/msbuild/respack/respack.vcxproj @@ -26,42 +26,25 @@ - - + $(ProjectDir) - $(ProjectDir)$(Configuration)\ respackd $(ProjectDir) - $(ProjectDir)$(Configuration)\ respack - + - Level3 - Disabled _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) - true - - - - - Level3 - MaxSpeed - true - true - _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) - - - true - true - true + $(OutDir)$(TargetName)$(TargetExt) + $(OutDir)$(TargetName).pdb + Console