From 74ffcbf0cfe0235b5c09515231ff13543388d28b Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Tue, 14 Jan 2014 17:39:19 +0100 Subject: Mac: Add QMAKE_FRAMEWORKPATH to compiler command line as well. This is necessary for the compiler to find include files following the "#include " syntax. Change-Id: Ia40b6bbe571e2b275a502c2de60cceeecc9b0f6b Reviewed-by: Pierre Rossi --- tools/qmake/mkspecs/features/gyp_generator.prf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/qmake/mkspecs') diff --git a/tools/qmake/mkspecs/features/gyp_generator.prf b/tools/qmake/mkspecs/features/gyp_generator.prf index 4a4a8106d..b1dcac19f 100644 --- a/tools/qmake/mkspecs/features/gyp_generator.prf +++ b/tools/qmake/mkspecs/features/gyp_generator.prf @@ -82,6 +82,12 @@ for (lib, LIBS): GYP_CONTENTS += " '$$lib'," for (rpath, QMAKE_RPATHDIR): GYP_CONTENTS += " '$$QMAKE_RPATH$$rpath'," GYP_CONTENTS += " ]," +macx { + GYP_CONTENTS += " 'mac_framework_dirs': [" + GYP_CONTENTS += " '$$QMAKE_FRAMEWORKPATH'," + GYP_CONTENTS += " ]," +} + !isEmpty(QMAKE_CFLAGS) { GYP_CONTENTS += " 'cflags': [" for(flag, QMAKE_CFLAGS): GYP_CONTENTS += " '$$flag'," -- cgit v1.2.3