diff options
author | Andras Becsi <andras.becsi@digia.com> | 2013-11-25 19:21:19 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-26 12:01:46 +0100 |
commit | 3c4ccfaa280a3fe4a737b8c585ce441849dfae3b (patch) | |
tree | 8245ec373fd0d57f0503442cf2567dc8dfe037ff /build/qtwebengine_extras.gypi | |
parent | 4269f9b3db3cdcb0e7bccf12161a1426cd6654b7 (diff) |
Add build system support for cross compilation
This patch adds support for inheriting target specific cross-compile
settings from Qt.
Change-Id: I964297d776bcc5ac169ce09a52f661d08c5b4b9d
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Reviewed-by: Arvid Nilsson <anilsson@blackberry.com>
Diffstat (limited to 'build/qtwebengine_extras.gypi')
-rw-r--r-- | build/qtwebengine_extras.gypi | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/build/qtwebengine_extras.gypi b/build/qtwebengine_extras.gypi index dd3d45ac5..2937ee423 100644 --- a/build/qtwebengine_extras.gypi +++ b/build/qtwebengine_extras.gypi @@ -19,5 +19,33 @@ ['exclude', 'browser/renderer_host/render_widget_host_view_qnx\\.(cc|h)$'], ['exclude', 'browser/web_contents/web_contents_view_qnx\\.(cc|h)$'], ], - } + }, + 'conditions': [ + [ 'OS=="linux" and qt_cross_compile==1', { + 'target_defaults': { + 'defines': [ + 'TOOLKIT_QT', + ], + 'target_conditions': [ + ['_toolset=="target"', { + 'ldflags!': ['-L/usr/lib'], # garbage added by icu-config + 'conditions': [ + [ '_target_name=="gl"', { + 'defines': [ + 'GL_GLEXT_PROTOTYPES', + 'EGL_EGLEXT_PROTOTYPES', + ], + }], + ['_type=="shared_library"', { + 'ldflags': [ + # Tell the linker to prefer symbols within the library before looking outside + '-Wl,-shared,-Bsymbolic', + ], + }], + ], + }], + ], + }, + }], + ], } |