This script is similar to "CMake integration" but for QMake build system. You can see and download code here:
https://gist.github.com/1320699
In order to operate, you need either have qmake in your $PATH, or set qmake.command variable in Premake project.
Example
The next code will "include" myframework.pri into your Premake project, and print DEFINES and INCLUDEPATH variables from it:
require "qmake" local myFrameworkPath = path.join(os.getcwd(), "..") qmake.set("MY_FRAMEWORK_PATH", frameworkPath) qmake.include("$$MY_FRAMEWORK_PATH/src/myframework.pri") local var = qmake.getvariables { "DEFINES", "INCLUDEPATH" } print(var["DEFINES"]) print(var["INCLUDEPATH"])
