From 636c481537b1ede1467243016b1b4fdba5e8fc67 Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Fri, 15 Nov 2013 22:53:26 +0100 Subject: [PATCH] compile steam --- build/te4core.lua | 4 +++- premake4.lua | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build/te4core.lua b/build/te4core.lua index c41c27faab..f7ec060cd2 100644 --- a/build/te4core.lua +++ b/build/te4core.lua @@ -101,16 +101,18 @@ project "TEngine" linkoptions { "-mwindows" } defines { [[TENGINE_HOME_PATH='"T-Engine"']], 'SELFEXE_WINDOWS' } - configuration "linux" libdirs {"/opt/SDL-2.0/lib/"} links { "dl", "SDL2", "SDL2_ttf", "SDL2_image", "png", "openal", "vorbisfile", "GL", "GLU", "m", "pthread" } defines { [[TENGINE_HOME_PATH='".t-engine"']], 'SELFEXE_LINUX' } + if steamlin64 then steamlin64() end configuration {"Debug"} postbuildcommands { "cp ../bin/Debug/t-engine ../", } + if _OPTIONS.steam then postbuildcommands { "cp ../bin/Debug/*te4-steam* ../", } end configuration {"Release"} postbuildcommands { "cp ../bin/Release/t-engine ../", } + if _OPTIONS.steam then postbuildcommands { "cp ../bin/Debug/*te4-steam* ../", } end ---------------------------------------------------------------- diff --git a/premake4.lua b/premake4.lua index ae8894729c..d01c01f940 100644 --- a/premake4.lua +++ b/premake4.lua @@ -20,13 +20,14 @@ solution "TEngine" "/opt/SDL-2.0/include/SDL2", "/usr/include/GL", } - if _OPTIONS.steam then - dofile("steamworks/build/steam-def.lua") - end if _OPTIONS.lua == "default" then includedirs{"src/lua"} elseif _OPTIONS.lua == "jit2" then includedirs{"src/luajit2/src", "src/luajit2/dynasm",} end +if _OPTIONS.steam then + dofile("steamworks/build/steam-def.lua") +end + configuration "windows" libdirs { "/c/code/SDL/lib", @@ -40,6 +41,7 @@ configuration "windows" configuration "macosx" buildoptions { "-isysroot /Developer/SDKs/MacOSX10.6.sdk", "-mmacosx-version-min=10.6" } + configuration "Debug" defines { } flags { "Symbols" } -- GitLab