The other great thing about D is you don't need anything like that
Example:
dmd -i -Isrc/ src/main.d
and the compiler will automatically grab files you import, and when you need packages you can rely on dub, compiler is so fast that in most cases you don't need any form of caching, a full rebuild of my game takes less than 1sec
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.
I’m trying to compile from source, and since that needs xmake I’m now trying to build it.
Following the instructions, after `make build` I get “No rule to make target 'lua/lapi.c', needed by 'lua/lapi.o'. Stop.”.
I’m now reading more, and it will probably be some easy thing.
My advice would be to have some compact list of steps to get it up and running from source without having to install binaries. I think that would make it easier to try out.
I’ll now continue trying to figure out what’s missing.
I see that one you mention in the middle of the list, with the name “xmake-v2.6.5.tar.gz”.
Please note that this is not a criticism, I’m just telling what can happen when someone tries to compile it.
Edit: trying this now:
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
cd xmake
make build
I get “make: ** No rule to make target 'build'. Stop.”, because there is no `makefile` or `Makefile` in there.
Edit 2: I see, the issue is that it does not create a directory `xmake-v2.6.5`, but instead extracts its contents in the current directory, as a “tar bomb”. This works:
mkdir xmake-v2.6.5
cd xmake-v2.6.5
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
Meanwhile, Clion is built around cmake. Why would any Clion customer want to drop first-class support for cmake to fall back to an unmaintained plugin that seems to be abandonware?
But they are not officially supported plugins, while CMake has official support from major companies and IDE makers, namely Microsoft, Jetbrains, Qt Company. Further comments in this threads also pointed out that some Plugins for Clion are abandonware and may no longer work.
A reason for using Cmake is that this build system's CMakeLists.txt also works like a universal IDE-agnostic project file that saves the user from wasting time tinkering IDEs and lots of XML files in the case of Visual Studio MSBUILD building system.
It supports this syntax.
https://xmake.io/guide/project-configuration/syntax-descript...