zoukankan      html  css  js  c++  java
  • windows下编译lua5.2

    取5.1的./etc/luavs.bat文件改之,print已内置,无需编译

    @rem Script to build Lua under "Visual Studio .NET Command Prompt".
    @rem Do not run from this directory; run it from the toplevel: etc\luavs.bat .
    @rem It creates lua52.dll, lua52.lib, lua.exe, and luac.exe in src.
    @rem (contributed by David Manura and Mike Pall)
    
    @setlocal
    @set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE
    @set MYLINK=link /nologo
    @set MYMT=mt /nologo
    
    cd src
    %MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c
    del lua.obj luac.obj
    %MYLINK% /DLL /out:lua52.dll l*.obj
    if exist lua52.dll.manifest^
      %MYMT% -manifest lua52.dll.manifest -outputresource:lua52.dll;2
    %MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c
    %MYLINK% /out:lua.exe lua.obj lua52.lib
    if exist lua.exe.manifest^
      %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe
    %MYCOMPILE% l*.c
    del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^
        loslib.obj ltablib.obj lstrlib.obj loadlib.obj
    %MYLINK% /out:luac.exe *.obj
    if exist luac.exe.manifest^
      %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe
    del *.obj *.manifest
    cd ..
  • 相关阅读:
    PPT_标题
    产品需求撰写-架构图
    测试
    SparkLauncher 1.6 版本bug
    Github fork同步
    Maven 配置远程仓库
    Sqoop2中传入配置文件中url之【坑】
    Spark性能优化-coalesce(n)
    面试算法题目
    Git 基本概念及常用命令
  • 原文地址:https://www.cnblogs.com/chenzhengxi/p/2918467.html
Copyright © 2011-2022 走看看