Browse Source

Merge pull request #131 from ddobrev/master

Added building support for x64 and VC++ 12
pull/132/head
João Matos 12 years ago
parent
commit
9211d414b1
  1. 10
      build/GenerateProjects.bat
  2. 5
      build/premake4.lua

10
build/GenerateProjects.bat

@ -7,12 +7,14 @@ echo.
echo [0] Clean echo [0] Clean
echo [1] Visual C++ 2010 echo [1] Visual C++ 2010
echo [2] Visual C++ 2012 echo [2] Visual C++ 2012
echo [3] GNU Make echo [3] Visual C++ 2013
echo [4] GNU Make
echo. echo.
:choice :choice
set /P C="Choice: " set /P C="Choice: "
if "%C%"=="3" goto gmake if "%C%"=="4" goto gmake
if "%C%"=="3" goto vs2013
if "%C%"=="2" goto vs2012 if "%C%"=="2" goto vs2012
if "%C%"=="1" goto vs2010 if "%C%"=="1" goto vs2010
if "%C%"=="0" goto clean if "%C%"=="0" goto clean
@ -29,6 +31,10 @@ goto quit
"premake5" --file=premake4.lua vs2012 "premake5" --file=premake4.lua vs2012
goto quit goto quit
:vs2013
"premake5" --file=premake4.lua vs2013
goto quit
:gmake :gmake
"premake5" --file=premake4.lua gmake "premake5" --file=premake4.lua gmake
goto quit goto quit

5
build/premake4.lua

@ -20,7 +20,7 @@ end
solution "CppSharp" solution "CppSharp"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
platforms { "x32" } platforms { "x32", "x64" }
flags { common_flags } flags { common_flags }
location (builddir) location (builddir)
@ -30,7 +30,8 @@ solution "CppSharp"
debugdir (bindir) debugdir (bindir)
-- startproject "Generator" -- startproject "Generator"
configuration "vs2013"
framework "4.0"
configuration "vs2012" configuration "vs2012"
framework "4.0" framework "4.0"

Loading…
Cancel
Save