Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/lua-winreg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoteus <mimir@newmail.ru>2012-11-30 12:49:49 +0400
committermoteus <mimir@newmail.ru>2012-11-30 12:49:49 +0400
commit503236b46faf48195a20955fe227f9886506c143 (patch)
tree9e5f28d7b7ea559134c595dd6b2ca0f576b4a151
parent62b5de980d4a70a44903a15f25e8d0610d6ef129 (diff)
lakefile support dynamic c runtime
-rw-r--r--lakefile7
1 files changed, 5 insertions, 2 deletions
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})