From 1ded15ab24bdc589cccfc0241b5f2fb61ca6bd5a Mon Sep 17 00:00:00 2001 From: nowrep Date: Thu, 13 Oct 2011 20:06:27 +0200 Subject: [PATCH] It is now possible to modify build settings with environment variables. Update to #7 Read BUILDING --- BUILDING | 3 +++ src/QupZilla.pro | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/BUILDING b/BUILDING index 97aacf46e..31a693379 100644 --- a/BUILDING +++ b/BUILDING @@ -45,6 +45,9 @@ ####################### ## Available Defines ## ####################### + You can set define directly in project file (QupZilla.pro) + or set environment variable by + $ export NAME="true" General: UNRELEASED_BUILD QupZilla won't check profile version, diff --git a/src/QupZilla.pro b/src/QupZilla.pro index 4f2132992..5d9cd12e9 100644 --- a/src/QupZilla.pro +++ b/src/QupZilla.pro @@ -309,3 +309,16 @@ unix { INSTALLS += target target1 target2 target3 } + +d_unreleased_build = $$(UNRELEASED_BUILD) +d_no_system_datapath = $$(NO_SYSTEM_DATAPATH) +d_use_webgl = $$(USE_WEBGL) +d_w7api = $$(W7API) + +equals(d_unreleased_build, "true"): DEFINES += UNRELEASED_BUILD +equals(d_no_system_datapath, "true"): DEFINES += NO_SYSTEM_DATAPATH +equals(d_use_webgl, "true"): DEFINES += USE_WEBGL +win32 { equals(d_w7api, "true"): DEFINES += W7API } + +message(Using following defines) +message($$DEFINES)