Skip to content

chris-be/premake-codeblocks

Repository files navigation

Premake-CodeBlocks Module

"Premake" module that generates workspace and projects for Code::Blocks.
Based on source code from Premake4.

Features

  • Support for C/C++ language projects

Usage (little reminder)

  1. Put these files in a "Code::Blocks" subdirectory of Premake search paths.

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

require "codeblocks"
  1. Generate Code::Blocks files

The module checks if configurations are compatible with Code::Blocks, but it slows down the process. It can be disabled with option --codeblocks-check=false

premake5 codeblocks
# Or
premake5 codeblocks --codeblocks=false

Note

If you are interested in a Code::Blocks plugin doing the reverse job, you may try Premake5 exporter.

Working on plugin

If your IDE understands EmmyLua annotations, you may take a look at lua-d-premake5.

Tested on

OS (Platform) - Date Premake Code::Blocks Version Target compiler
Alpine Linux (x64) - February 2025 5.0.0-beta3 20.03 clang, gcc

About

Premake5 module to generate Code::Blocks projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages