2d-platformer/vendor/premake5/ninja
Joseph Aquino 260d2ad84d major update
-added support for building with ninja and added corresponding shell scripts
-added EntityView class to iterate over entities of the same tag
-entities are now grouped together in memory by tag rather than all together
-moved globals.h into utility.h
-moved EntityTag and EntityIndex into utility.h
2025-07-02 15:34:14 -04:00
..
.github major update 2025-07-02 15:34:14 -04:00
tests major update 2025-07-02 15:34:14 -04:00
LICENSE major update 2025-07-02 15:34:14 -04:00
README.md major update 2025-07-02 15:34:14 -04:00
_manifest.lua major update 2025-07-02 15:34:14 -04:00
_preload.lua major update 2025-07-02 15:34:14 -04:00
ninja.lua major update 2025-07-02 15:34:14 -04:00

README.md

premake-ninja

Premake module to support Ninja, because it's awesome.

Usage (little reminder)

  1. Put these files in a "premake-ninja" subdirectory of Premake search paths.

  2. Adapt your premake5.lua script, or better: create/adapt your premake-system.lua

require "premake-ninja/ninja"
  1. Generate ninja files
premake5 ninja

On msys2 (mingw)

premake5 ninja --cc=gcc --shell=posix
  1. Run ninja

For each project - configuration pair, we create separate .ninja file. For solution we create build.ninja file which imports other .ninja files with subninja command.

Build.ninja file sets phony targets for configuration names so you can build them from command line. And default target is the first configuration name in your project (usually default).

General from:

ninja $(YourProjectName)_$(ConfigName)

as example:

ninja myapp_Release

Tested on ubuntu-badge windows-badge macos-badge

Extra Tests

Part of integration tests of several generators in https://github.com/Jarod42/premake-sample-projects Premake5 ubuntu ninja badgePremake5 window ninja badge