An example of a RED4ext plugin using Premake.
- Download and install Visual Studio 2022 Community Edition or a higher version.
- Clone this repository.
- Clone the dependencies (
git submodule update --init --recursive
). - Extract the content of Premake 5 in the project directory.
- Run
generate_project.bat
. - Open the solution (RED4ext.Example.Premake.sln) located in project directory.
- Build the project (the artifacts are located in
build/{debug|release}
directory).
Notes:
- The plugin has to be a 64-bit library. That means all required libraries have to be compiled in 64-bit and the compiler has to support 64-bit.
- Make sure you have the latest SDK by updating it using the following commands:
cd deps/red4ext.sdk
git pull
/git fetch
git checkout master
- You can also generate the projects from command line, see the build.yml in .github/workflows/build.yml.