[Python-modules-commits] [python-qt4] 06/08: make sure build flags are applied when building designer plugin

Dmitry Shachnev mitya57 at moszumanska.debian.org
Wed Feb 15 20:17:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch master
in repository python-qt4.

commit 2979e77e7533c688bad26a350b8c822805f21b49
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Thu Oct 8 12:56:36 2015 -0700

    make sure build flags are applied when building designer plugin
    
    Forwarded: no
    Last-Update: 2013-11-11
    
    Patch-Name: config_flags.diff
---
 configure.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.py b/configure.py
index a537298..24ad011 100644
--- a/configure.py
+++ b/configure.py
@@ -995,6 +995,10 @@ include(%s)
                 if src_dir != os.path.curdir:
                     fout.write("VPATH = %s\n" % os.path.join(src_dir, "designer"))
 
+                fout.write("QMAKE_CFLAGS += %s\n" % macros["CFLAGS"])
+                fout.write("QMAKE_CXXFLAGS += %s\n" % macros["CXXFLAGS"])
+                fout.write("QMAKE_LFLAGS += %s\n" % macros["LFLAGS"])
+
                 fout.write(prj)
                 fout.close()
 
@@ -2166,6 +2170,7 @@ def main():
         sipconfig.error("This version of PyQt requires SIP v%s or later" % sipconfig.version_to_string(sip_min_version))
 
     global opts
+    global macros
 
     # Parse the command line.
     p = create_optparser()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-qt4.git



More information about the Python-modules-commits mailing list