premake

Premake exclude project

女生的网名这么多〃 提交于 2021-02-11 14:34:20
问题 I have a main premake lua file in root with the workspace declaration and some basic configurations and at the end of that file I include the projects. workspace "Test" CONFIGURATIONS include "Project1" include "Project2" include "Project3" On linux I want to exclude "Project 3" as it's not needed to compile it there. I tried defining systems and using filters but the file still gets generated. To generate the makefiles on linux I use premake gmake2 . 回答1: On recent versions of Premake5: if

Can't get premake working - gltut demos

谁说我不能喝 提交于 2019-12-10 16:55:53
问题 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 options but nothing works. I don't get why the author wants to use the latest tool on earth but i need to solve this and i don't even have a clue about Lua and this tool. For who wants to help me with this you have to download this to actually build the

Can I use an alternative build system for my Python extension module (written in C++)?

橙三吉。 提交于 2019-12-08 08:21:49
问题 While distutils works alright, I'm not entirely comfortable with it, and I also have performance problems with no apparent solution. Is it possible to integrate Premake or cmake in my setup.py script so that python setup.py build calls them and then places the output where install expects it? 回答1: I figured out a way, it's not pretty but it works. Here is a summation of my setup.py script file - it should be fairly self explanatory: import shutil import os from distutils.core import setup

adjusting g++ location with premake

情到浓时终转凉″ 提交于 2019-12-08 05:28:51
问题 I would like to use a specific version of g++ installedvat /opt/blabla/bin/g++. How do I force premake to add initialization of CXX variable in makefile, such that it will point to the specific location? I do realize that once makefile is generated, I can to 'make CXX=...' but I would like to have CXX set inside auto-generated makefile. Using premake5, targeting gmake. Thanks in advance ============= Update: By poking examples and browsing the code, I figured out I can do it by adding this

Can I use an alternative build system for my Python extension module (written in C++)?

痞子三分冷 提交于 2019-12-07 02:37:31
While distutils works alright, I'm not entirely comfortable with it, and I also have performance problems with no apparent solution . Is it possible to integrate Premake or cmake in my setup.py script so that python setup.py build calls them and then places the output where install expects it? I figured out a way, it's not pretty but it works. Here is a summation of my setup.py script file - it should be fairly self explanatory: import shutil import os from distutils.core import setup from distutils.core import Extension from distutils.command.build_ext import build_ext from distutils.command

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

天涯浪子 提交于 2019-12-06 03:42:45
问题 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 platforms? Do you have to maintain one build script per target (like .sh or .bat file)? This would defeat the purpose of using a tool like premake/CMake in the first place. A link to a tutorial showing all the process from coding to final built

Creating static library and linking to it with premake

ぃ、小莉子 提交于 2019-12-05 07:32:28
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 file, with the main method. This project is extremely simple, and is solely for the purpose of learning premake. In the static library project, named Test, I have 2 files, Test.h and Test.cpp. Test.h contains the prototype for the method print(). print() simply prints a line to the console. Using premake, I linked the static library to the Main

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

◇◆丶佛笑我妖孽 提交于 2019-12-04 07:42:01
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 platforms? Do you have to maintain one build script per target (like .sh or .bat file)? This would defeat the purpose of using a tool like premake/CMake in the first place. A link to a tutorial showing all the process from coding to final built product using premake would be great. Thanks for any help. Our main development is also done in C++. We use