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
3
votes
0 answers

Premake5 gmake target always doing full rebuild

I've been using (and been pretty happy with) premake4/5 with Visual Studio. Recently I started moving my project to other platforms, and noticed that contrary to compiling in VS, the gmake target generated Makefiles, under Windows with clang, ALWAYS…
Kornel Kisielewicz
  • 55,802
  • 15
  • 111
  • 149
3
votes
2 answers

How to clean projects with Premake5?

I know how to generate solutions and projects with premake5 with an action like vs2013. However, how can I remove all generated files without relying on git clean? Is this possible?
Zylann
  • 83
  • 6
3
votes
2 answers

premake5 precompiled headers not working

(this is using Premake5 alpha binary available for download on website) I'm trying to port my existing VS solution over to using premake5. It uses MS style precompiled headers(stdafx.h/stdafx.cpp). When I specify this is my test project: pchheader…
Froglegs
  • 1,095
  • 1
  • 11
  • 21
3
votes
1 answer

How to get the value of system()?

How do I get the current value of system() in premake5? (and more generally functions like architecture() or platform()) I tried to print it, but it's a function, and when I try to print the return value of system(), I get "bad argument #1 to…
Zylann
  • 83
  • 6
3
votes
1 answer

OSX/Darwin unresolved symbols when linking functions from

I'm in the process of porting a large'ish (~1M LOC) project from a Window/Visual Studio environment to other platforms, the first of which happens to be Mac OS X. Originally the project was configured as Visual Studio solutions and projects, but…
tbone
  • 166
  • 1
  • 10
3
votes
1 answer

Premake4 utility and application entry point

I use premake4.exe utility for generate project files for different platforms. The problem is that I could not find how to specify custom application entry point in lua-config file. Which option should I use? For example, in Visual Studio I can go…
Russian Bear
  • 147
  • 1
  • 1
  • 9
3
votes
1 answer

Linking to an external library with Premake

I can't get an external library link with the main program using premake. For instance I've simplified the problem to this example: ./_external/ext.cpp #include "ext.h" int foo() { return 4; } ./_external/ext.h #pragma once int…
mihaipopescu
  • 957
  • 9
  • 15
2
votes
2 answers

Cross platform continuous integration pipeline for C++ / Qt applications

EDIT 2012.03.02: updated build tool section with some other requirements. Addding premake. EDIT 2012.03.05: updated build tool section. Focused on CMake. Added Ant + CMakeAnt. I have a lot of small Visual C++ projects and I want to start using…
Korchkidu
  • 4,908
  • 8
  • 49
  • 69
2
votes
2 answers

Premake : Different excludes command for each configuration

I've recently found this amazing new gem called premake and I was all "FINALLY!" I'm trying to make a simple "Test" configuration, that works like this: when in Test configuration, exclude source/Main.cpp when not in Test configuration, exclude…
keebus
  • 990
  • 1
  • 8
  • 15
2
votes
2 answers

In premake 3.7, how do I generate -O0 instead of -O2 for gcc?

It seems that -O2 is always generated unless I specify "optimize-speed" (which results in -O3) or "optimize-size" (which results in -Os) in buildflags. If I specify nothing in buildflags but pass "-O0" into buildoptions the result is "-O2 -O0". The…
pholz
  • 684
  • 8
  • 19
2
votes
1 answer

How to idiomatically add external library dependencies that use git and CMake to a git and CMake project?

I would like to know how to add external libraries into my project. Is there a standard way of doing so? The way I do it and that I don't like is: Have a folder called vendors where I add submodules e.g. boost, openssl... I build the external…
Vero
  • 313
  • 2
  • 9
2
votes
0 answers

VisualD/Visual Studio Cannot Open Premake Generated .visualdproj

I've been trying out premake with D, and have found that Visual Studio cannot open the generated visualdproj files. Even the example given in the readme for the module does not work. However, a C project appears to work just fine even in the same…
Straivers
  • 349
  • 1
  • 9
2
votes
1 answer

what is PREMAKE error: Error: [string "src/base/api.lua"]:592: bad argument #2 to 'deferredjoin' (string expected, got table)?

So, I've started this new project and was writing my premake script, but generating it fails and generates this error: [string "src/base/api.lua"]:592: bad argument #2 to 'deferredjoin' (string expected, got table) Usually when it's just a typo, the…
AbdelRahman Mahmoud
  • 153
  • 1
  • 1
  • 12
2
votes
1 answer

Can Premake package a project?

I have a Premake 5 project that builds a static library (primarily via the gmake2 or vs2017 actions). I'd like to create a build target for the release material itself: the library zipped up with some text and header files. How do I do this with…
detly
  • 29,332
  • 18
  • 93
  • 152
2
votes
1 answer

Is there a different way to copy the .dll file from one project to beside my executable file in my startup project?

I'm using premake5 to build a c++ visual studio 2019 application engine. I need to figure out why it's not working after I used premake5 to build my projects. I have tried to change the architecture to only x64 but it insists the cfg.system is…
djossir
  • 73
  • 1
  • 6
1
2
3
15 16