You can edit almost every page by Creating an account and confirming your email.

Xmake

From EverybodyWiki Bios & Wiki


xmake is a cross-platform build utility based on Lua.[1] It is available for many platforms, languages, and toolchains.

Examples

Build project

$ xmake

Run target

$ xmake run console

Debug target

$ xmake run -d console

Simple description

target("console")
  set_kind("binary")
  add_files("src/*.c")

Debug/Release modes

add_rules("mode.debug", "mode.release")
target("console")
  set_kind("binary")
  add_files("src/*.c")
  if is_mode("debug") then
    add_defines("DEBUG")
  end

Custom script

target("test")
  set_kind("binary")
  add_files("src/*.c")
  after_build(function (target)
    print("hello: %s", target:name())
    os.exec("echo %s", target:targetfile())
  end)

References


This article "Xmake" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Xmake. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.