From 503236b46faf48195a20955fe227f9886506c143 Mon Sep 17 00:00:00 2001 From: moteus Date: Fri, 30 Nov 2012 12:49:49 +0400 Subject: lakefile support dynamic c runtime --- lakefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lakefile') diff --git a/lakefile b/lakefile index c471e75..b5b38dc 100644 --- a/lakefile +++ b/lakefile @@ -1,4 +1,4 @@ -if not WINDOWS then quit('This is only windwos module!') end +if not WINDOWS then quit('This is only windows module!') end if LUA_VER == '5.2' then LUA_NEED = 'lua52' @@ -8,6 +8,8 @@ else LUA_DIR = ENV.LUA_DIR end +DYNAMIC = DYNAMIC or false + lake.define_need('unicode',function()return{ defines = {"UNICODE"; "_UNICODE"}; flags = "/UMBS /U_MBS"; @@ -33,10 +35,11 @@ winreg = c.shared{'winreg', IF(DEBUG, {'-Z7' , '-Od', --[['-MLd']]}, {'-O2', --[['-ML']]}), '-Os -DNDEBUG -s' ); - libflags = IF(MSVC,IF(DEBUG, '-debug:full -debugtype:cv', '-DEBUG -OPT:REF -OPT:ICF')); + libflags = IF(MSVC and DEBUG, '-debug:full -debugtype:cv', '-DEBUG -OPT:REF -OPT:ICF'); needs = {LUA_NEED,IF(UNICODE, 'unicode')}; libs = {"advapi32", "kernel32", "user32"}; optimize = false; + dynamic = DYNAMIC; } target('build',{winreg}) -- cgit v1.2.3