HNHacker News
TopNewBestAskShowJobs

danny0z

65 karma · joined March 29, 2020

submissionscomments
danny0z··on Xmake: A cross-platform build utility based on Lua
It also supports this syntax.

    target("foo", {
      kind = "binary",
      files = { "src/*.cpp" },
      includedirs = { "src" },
      defines = { "FOO", "BAR=BAZ" },
    })
https://xmake.io/guide/project-configuration/syntax-descript...
danny0z··on Xmake: A cross-platform build utility based on Lua
> not have `target("name", function (ctx) ... end)`.

It supports this syntax.

https://xmake.io/guide/project-configuration/syntax-descript...

  target("foo", function ()
      set_kind("binary")
      add_files("src/*.cpp")
      add_defines("FOO")
  end)
danny0z··on Xmake: A cross-platform build utility based on Lua
It can generate a Visual Studio project, then use the xmake CLI to integrate and compile the project, and supports debugging and IntelliSense.

https://xmake.io/guide/extensions/builtin-plugins.html#gener...

C++ Modules examples:

https://xmake.io/examples/cpp/cxx-modules.html

https://github.com/xmake-io/xmake/tree/dev/tests/projects/c%...

danny0z··on Xmake: A cross-platform build utility based on Lua
xmake also support D and dub.
danny0z··on Everything you never wanted to know about CMake (redux)
we can also try xmake. https://github.com/xmake-io/xmake

Xmake can be used to directly build source code (like with Make or Ninja), or it can generate project source files like CMake or Meson. It also has a built-in package management system to help users integrate C/C++ dependencies.

danny0z··on Show HN: A glib-like multi-platform C library
try

    wget https://github.com/xmake-io/xmake/releases/download/v2.6.5/xmake-v2.6.5.tar.gz
    tar xf xmake-v2.6.5.tar.gz 
    make build
we need not run `cd xmake`
danny0z··on Show HN: A glib-like multi-platform C library
no, it should be `v2.6.5/xmake-v2.6.5.tar.gz` instead of `tags/v2.6.5.tar.gz`

    https://github.com/xmake-io/xmake/releases/download/v2.6.5/xmake-v2.6.5.tar.gz
danny0z··on Show HN: A glib-like multi-platform C library
we need pull all submodules, you can see https://xmake.io/#/guide/installation?id=installation

    git submodule update --init
Or you can download full source code from releases. https://github.com/xmake-io/xmake/releases/download/v2.6.5/x...
danny0z··on Show HN: A glib-like multi-platform C library
Xmake is also based on tbox as a c base library.
danny0z··on Strengths, weaknesses, opportunities, and threats facing the GNU Autotools
you can also try xmake. It use lua, not DSL.

https://github.com/xmake-io/xmake

danny0z··on Qb – Zero-configuration build system to quickly build C/C++ projects
We can also try https://github.com/xmake-io/xmake
danny0z··on Xmake and C/C++ Package Management
Xmake has Clion/IDEA, vscode, vs, sublime and qtcreator plugin.
danny0z··on Proposal to add build graph output to GNU Make (2020)
xmake can also easily write some lua scripts to dump the build dependency graph https://github.com/xmake-io/xmake
danny0z··on Show HN: A cross-platform c/c++ build utility based on Lua
Interesting, what is the difference between it and other build tools, such as cmake, meson?
danny0z··on Lacc: A simple, self-hosting C compiler
Great!
danny0z··on LTUI – A cross platform terminal UI library based on Lua
Oh, it seems to be a great terminal ui library.