[Qt] Use the thread implementation appropriated to the target

Qt has a thread abstraction, but we would need to use QThread to use it.
This commit is contained in:
Thiago Marcos P. Santos
2016-07-15 20:28:17 +03:00
parent e23d8adf8c
commit 3fd874de8d

View File

@@ -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)' ],