Skip to content

VS Code workspace and task generator for premake

License

Notifications You must be signed in to change notification settings

OhLeMatt/premake-vscode

 
 

Repository files navigation

OhLeMatt's Fork

Current repo forked from MiniFalafel. For some reasons, it was impossible to run Premake5 with MiniFalafel's code at the moment (06/11/2024). Maybe it is due to my configuration or my lack of knowledge on Lua/Premake addons, but I had to move some variable initialization to prevent nil errors.

If there is a way to make it work natively with the MiniFalafel's repo (now or in the future), I naturally will close this fork (to avoid having many duplicates of this work).

premake-vscode

An extension for premake that adds project and workspace generation for Visual Studio Code.

This project was originally created by peter

This was initially inspired by these repositories:

The goal of this project was to create a more up to date extension with more feature support!

Namely,

  • Most of the C++ configuration properties that premake offers
  • Might also support C and C# in the future, but for now C++ is the main focus.

Supported Languages

C++

Supported Premake "CppDialect" options:

  • C++98, C++11, C++14, C++17, C++20, C++2a, gnu++98, gnu++11, gnu++14, gnu++17, gnu++20

C++ Compilers for Windows:

  • msvc, clang

C++ Compilers for Linux:

  • gcc, clang

Usage

To use this extension add this repository to one of the Premake search paths, and then add the following inside premake-system.lua:

require("premake-vscode")

Or add the following to your premake5.lua script if you added this repository in your own project:

require("path/to/this/repo/vscode")

Then, you can invoke generation like so:

$ premake vscode

About

VS Code workspace and task generator for premake

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%