Commit a73e6652 authored by Peter Varga's avatar Peter Varga
Browse files

Add mkspecs include path to the gn build


INCLUDEPATH qmake variable doesn't contain mkspecs include path. Add it
explicitly to the include_dirs gn variable in the gn generator.

Change-Id: I454aa015794f258f588590b4662a16c04041c8fd
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: default avatarMichal Klocek <michal.klocek@qt.io>
Showing with 2 additions and 1 deletion
......@@ -175,7 +175,8 @@ GN_CONTENTS += " if (!defined(include_dirs)) {"\
" }"
GN_CONTENTS += " include_dirs += ["
for (path, INCLUDEPATH): GN_CONTENTS += " \"$$path\","
GN_CONTENTS += " rebase_path(\"$target_gen_dir/.moc/\")"
GN_CONTENTS += " rebase_path(\"$target_gen_dir/.moc/\"),"
GN_CONTENTS += " \"$$QMAKESPEC\""
GN_CONTENTS += " ]"
GN_CONTENTS += " if (!defined(ldflags)) {"\
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment