Skip to content

GD mod template using the xmake build system, along with an automated copy DLL and run command that allows for quick testing of modifications.

License

Notifications You must be signed in to change notification settings

iAndyHD3/xmake-gd-mod-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xmake GD Mod Template

GD mod template using the xmake build system, along with an automated copy DLL and run command that allows for quick testing of modifications.

About xmake

xmake is a lightweight, cross-platform build utility based on Lua that uses xmake.lua to maintain project builds with a simple and readable syntax. It is very lightweight and has no dependencies due to the integration of the Lua runtime.

Why xmake?

Compared to CMake, I find xmake much simpler to use when it comes to getting started, compiling, and running projects. As a result, I created this template to practice and learn.

Windows Setup

To ensure a smooth experience, xmake attempts to detect Visual Studio Community with C++, making it highly recommended to have it installed.

Install xmake

To get started with this template, download and install xmake using the installer from Releases. Verify the installation by opening a console and running xmake --version.

Build

Once xmake is installed, clone this repository and change to the directory using the following commands:

git clone https://github.com/iAndyHD3/xmake-gd-mod-template gdmod
cd gdmod

Then, compile the mod using xmake by simply running xmake. For the first compile, use xmake -y to auto-accept y/n install packages.

Run Command Setup

To automate the process of copying the DLL and running the mod, modify cfg.txt and set your own paths for the following variables:

  • cppath: the directory where the DLL will be copied to
  • gdpath: the directory where the Geometry Dash executable is located
  • gdexec: the file name of the Geometry Dash executable (usually GeometryDash.exe)

Next, import the settings with

xmake f --import=cfg.txt

You can view the current values using xmake f --menu and entering Project Configuration.

Then you can call the run command on xmake >=2.7.8 like so

xmake run

If you have an older version, the target name must be specified

xmake run gdmod

To compile and run at the same time use

xmake && xmake run

Clang

To build using clang, use

xmake f --toolchain=clang --import=cfg.txt

xmake'd libraries

check out the xmake.lua of the main project matdash, cocos headers and gd.h

xrepo

xmake has its own package called xrepo which integrates very well with xmake.lua

GD Modding Resources

Credits

About

GD mod template using the xmake build system, along with an automated copy DLL and run command that allows for quick testing of modifications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages