diff options
author | moteus <mimir@newmail.ru> | 2012-11-30 12:49:49 +0400 |
---|---|---|
committer | moteus <mimir@newmail.ru> | 2012-11-30 12:49:49 +0400 |
commit | 503236b46faf48195a20955fe227f9886506c143 (patch) | |
tree | 9e5f28d7b7ea559134c595dd6b2ca0f576b4a151 | |
parent | 62b5de980d4a70a44903a15f25e8d0610d6ef129 (diff) |
lakefile support dynamic c runtime
-rw-r--r-- | lakefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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})
|