This is a great idea that I think should be integrated into the solution for Visual Studio 10+
I added the variables through the Windows GUI, but a command line script could be set up too.
Code:
Index: C:/SVN Files/eqemu/trunk/EQEmuServer/zone/Zone.vcxproj
===================================================================
--- C:/SVN Files/eqemu/trunk/EQEmuServer/zone/Zone.vcxproj (revision 2137)
+++ C:/SVN Files/eqemu/trunk/EQEmuServer/zone/Zone.vcxproj (working copy)
@@ -286,6 +286,8 @@
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRules />
<CodeAnalysisRuleAssemblies />
+ <IncludePath>$(IncludePath);$(EQEmu_Inc)</IncludePath>
+ <LibraryPath>$(LibraryPath);$(EQEmu_Lib)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|Win32'">
<OutDir>.\..\Build\</OutDir>
In regards to Perl 5.14, I do not have anything available to install 64 bit versions on right now, but this works to build with perl 5.12 in VS2010 Professional. I left the defualt 5.10 reference in ther eto make sure which if my system was building against. I was building on a x64 system for x32 and it chose the correct perl512 reference.
Code:
Index: C:/SVN Files/eqemu/trunk/EQEmuServer/zone/embperl.cpp
===================================================================
--- C:/SVN Files/eqemu/trunk/EQEmuServer/zone/embperl.cpp (revision 2137)
+++ C:/SVN Files/eqemu/trunk/EQEmuServer/zone/embperl.cpp (working copy)
@@ -28,11 +28,15 @@
//#pragma comment(lib, "perl56.lib")
#ifdef _WINDOWS
#if _MSC_VER >= 1600 // for V100+ toolset
+#ifdef _WIN64
#pragma comment(lib, "perl514.lib")
#else
-#pragma comment(lib, "perl510.lib")
+#pragma comment(lib, "perl512.lib")
#endif
+#else
+#pragma comment(lib, "perl510.lib")
#endif
+#endif
#ifdef EMBPERL_XS
EXTERN_C XS(boot_quest);