From 3fd874de8d0e49d8a7ae3c57eefad3c69a16b65b Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 15 Jul 2016 20:28:17 +0300 Subject: [PATCH] [Qt] Use the thread implementation appropriated to the target Qt has a thread abstraction, but we would need to use QThread to use it. --- platform/qt/platform.gyp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/platform/qt/platform.gyp b/platform/qt/platform.gyp index 33bd5779a..880e36653 100644 --- a/platform/qt/platform.gyp +++ b/platform/qt/platform.gyp @@ -47,7 +47,6 @@ '../default/online_file_source.cpp', '../default/sqlite3.cpp', '../default/string_stdlib.cpp', - '../default/thread.cpp', 'include/qmapbox.hpp', 'include/qmapboxgl.hpp', 'include/qquickmapboxgl.hpp', @@ -168,16 +167,25 @@ ['OS == "mac"', { 'xcode_settings': { 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags)' ], - } + }, + 'sources': [ + '../darwin/src/nsthread.mm', + ], }, { 'cflags_cc': [ '<@(cflags)' ], + 'sources': [ + '../default/thread.cpp', + ], }] ], 'link_settings': { 'conditions': [ ['OS == "mac"', { - 'libraries': [ '<@(libraries)' ], + 'libraries': [ + '<@(libraries)', + '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', + ], 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] } }, { 'libraries': [ '<@(libraries)', '<@(ldflags)' ],