2016-07-25 ruki
xmake can run and debug the given target program now. We only need configure the debug mode to compile this target and run it. e.g. ```lua -- enable debug symbols if is_mode("debug") set_symbols("debug") end -- define target target("demo") set_kind("kind") add_files("src/*.c") ``` And we compile and r 继续阅读 »
2016-08-29 ruki
新特性 在xmake.lua中添加原生shell支持,例如:add_ldflags("$(shell pkg-config --libs sqlite3)") 编译windows目标程序,默认默认启用pdb符号文件 在windows上添加调试器支持(vsjitdebugger, ollydbg, windbg ... ) 添加getenv接口到xmake.lua的全局作用域中 添加生成vstudio工程插件(支持:vs2002 - vs2015) 为option添加set_default接口 改进 增强内建变量的处理 支持字符串类型的选项option设置 Bugs修复 修复在linux下检测ld连接器失败,如果没装g++的话 继续阅读 »
2016-07-25 ruki
现在xmake在windows下,也已经支持调试运行了,可以在编译完debug版本的程序后,直接进行调试开发。。 我们继续以tbox工程为例: bash $ xmake f -m debug $ xmake r -d demo 上述命令,先配置了debug模式编译,为了启用pdb调试符号文件的生成,然后自动编译后,调试运行demo程序。。 xmake会在配置的时候,自动检测windows上注册表里面的默认调试器,然后加载我们的目标程序并运行。 一般情况下,加载的是vs自带的vsjitdebugger调试器,当然xmake也支持windbg和ollydbg(做逆向的,这个用的比较多哈。。) 我们试着运行demo中的exc 继续阅读 »
2016-08-29 ruki
New features Add native shell support for xmake.lua. .e.g add_ldflags("$(shell pkg-config --libs sqlite3)") Enable pdb symbol files for windows Add debugger support on windows (vsjitdebugger, ollydbg, windbg ... ) Add getenv interface for the global scope of xmake.lua Add plugin for generating vstudio project file (vs 继续阅读 »