Questions tagged [premake]

Lua embedded build configuration and project generation tool

Premake is a build configuration tool. Describe your C, C++, or C# software project using a simple, easy to read lua syntax and let Premake generate the project files for:

  • Microsoft Visual Studio 2002-2010, including the Express editions
  • GNU Make, including Cygwin and MinGW
  • Apple Xcode
  • Code::Blocks
  • CodeLite
  • IC#Code SharpDevelop
  • MonoDevelop
233 questions
11
votes
3 answers

Makefile generators: premake vs bakefile?

For my C++ build process, I am using Bakefile, a nice little Makefile generator, which lets you specify your build targets in XML, and it can generate various Makefiles or project files from it. It works fine and I use it to generate the GNU…
Frank
  • 64,140
  • 93
  • 237
  • 324
9
votes
1 answer

Creating static library and linking to it with premake

I am currently trying to learn how to use premake 4 in order to apply it to the OpenGL sdk. I am currently trying to make a Visual Studio 2010 solution that constructs 2 projects, one being a static library, the other contains a single main source…
user1032369
  • 549
  • 3
  • 8
  • 22
6
votes
0 answers

Difference between 'gmake' and 'gmake2' actions in premake5

I am a new user of premake5, and trying to understand how I can use it in future projects. For generators, there is an option for 'gmake' and for 'gmake2', which appear to generate different Makefiles, but I am unclear exactly what the differences…
Rob
  • 61
  • 3
6
votes
2 answers

Compiling GLSL to SPIR-V using Premake 5 and Visual Studio 2015

Instead of manually compiling my GLSL shaders to SPIR-V, I want Visual Studio to automatically detect changes to shader files and run glslangValidator as a build step. I am using Premake to generate the Visual Studio solution/project. One solution…
Petwoip
  • 1,365
  • 2
  • 17
  • 25
6
votes
5 answers

How can I tell premake to generate a Makefile that uses clang?

I would like to build my application using clang when generating a Makefile (gmake toolchain). Is there a way to do this?
Tamás Szelei
  • 23,169
  • 18
  • 105
  • 180
5
votes
1 answer

How to integrate PreMake/CMake in a C++ build workflow

I am looking at PreMake/CMake for the moment. However, I fail to see how this could be used in an entire cross-platform build workflow. Indeed, it generates makefiles (or solutions). Then, how do you actually build those solutions on each targeted…
Korchkidu
  • 4,908
  • 8
  • 49
  • 69
5
votes
2 answers

How can I run custom tools from a premake build script?

I'm using protocol buffers for data serialization in my C++ application. I would like to add the invokation of the protoc code generator in my premake build script (thus ensure the up-to-date state of the generated classes and avoid the need to…
Tamás Szelei
  • 23,169
  • 18
  • 105
  • 180
5
votes
3 answers

Multiplatform Premake Script

I'm the author of Node9, a hosted, hybrid OS that combines Inferno and LuaJIT to create an interactive, distributed development environment. See the project here: https://github.com/jvburnes/node9 I created a basic 4.x premake script to compile all…
eris0xff
  • 133
  • 9
4
votes
6 answers

premake5: how to set runtime library to Multithreaded DLL (/MD) in vs2015

kind "SharedLib" language "C++" defines "DLL_EXPORT" targetname "read_cad_file" targetextension ".arx" I am developing using objectARX, and I want to compile my project using premake5 and vs2015. Some of the settings in the script is as the…
summer
  • 41
  • 1
  • 3
4
votes
1 answer

Precompiled Headers With GCC/GMake Causing `pragma` Warning (Premake)

In my Premake file I go: pchheader("../../"..dir_root.."stdafx.h") I found that this at least partially works. (The invocation is somewhat different for ICC on Windows.) When compiling, I get exactly one…
geometrian
  • 14,775
  • 10
  • 56
  • 132
4
votes
1 answer

Can't get premake working - gltut demos

https://bitbucket.org/alfonse/gltut/downloads this is the repository for the several tutorials in this online-book http://www.arcsynthesis.org/gltut the author uses premake as alternative to cmake, and i have tried every possible command line…
user827992
  • 1,743
  • 13
  • 25
3
votes
0 answers

Embedding lua into c++ but getting unresolved externals : floor, freopen & strcoll

I'm embedding lua into a c++ vs2019 solution and it results in linking errors to basic c libraries ( __imp_freopen, __imp_floor and __imp_strcoll ). lua compiles as a static c library in it's own project and is linked to the main project, but when…
Martian
  • 108
  • 6
3
votes
1 answer

I cannot add additional libraries with premake5

I am learning OpenGL and GLFW, and I decided to use premake5, because it seems easy to use and maintain. My project is located in a folder called LearningOpenGL. I am on MAC. Project…
Tigran Fahradyan
  • 399
  • 1
  • 4
  • 12
3
votes
2 answers

How to use premake to specify a C++11 compilation?

I have tried using the "C++11" premake flag, to get the GNU C++ compiler to do a C++11 compilation. However, this flag is not recognized and I get the message "invalid flag". The statement I used in the premake lua script is the following, at either…
SSteven
  • 733
  • 5
  • 17
3
votes
1 answer

Creating project file filters for VS2015+ with premake5?

In our original solution, we have filters in our projects that allow us to sort files: "Source Files", "Header Files", etc. I would like to reproduce this behaviour with premake 5. I'm able to create filters for sorting projects using group "..."…
dom_beau
  • 2,437
  • 3
  • 30
  • 59
1
2 3
15 16