summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Rogers <jrogers@blackberry.com>2013-08-13 18:48:03 -0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-26 10:02:03 +0100
commitc64668045d3383b0d3f427cd897d99a22306a1d3 (patch)
tree9671d01e18f46dcc1a57b729ffa62d875b1507a1
parent5c99c148b2e0b48577953ab40ead5009f8aca071 (diff)
Make it build with QNX chromium port
- Fix excludes - Fix gyp so that it supports cross-compiling on mac as well Change-Id: I89081f4115ec4dec6ca2c96bb5ad367d42405bb3 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
-rwxr-xr-xbuild/gyp_qtwebengine9
-rw-r--r--build/qtwebengine_extras.gypi6
2 files changed, 11 insertions, 4 deletions
diff --git a/build/gyp_qtwebengine b/build/gyp_qtwebengine
index bd7347e4a..8a5695ed2 100755
--- a/build/gyp_qtwebengine
+++ b/build/gyp_qtwebengine
@@ -88,7 +88,7 @@ if __name__ == '__main__':
# On Mac we want to override CXX and CC that is provided with
# the Chromium GYP environment.
- if sys.platform.startswith('darwin'):
+ if sys.platform.startswith('darwin') and not 'GYP_CROSSCOMPILE' in os.environ:
os.environ['CXX'] = 'clang++'
os.environ['CC'] = 'clang'
@@ -109,7 +109,7 @@ if __name__ == '__main__':
# On Mac we want to build in x64 mode. And we want to use libc++.
# Even though we are not on linux, it seems we specifically have to disable linux_use_tcmalloc.
- if sys.platform in ('darwin',):
+ if sys.platform in ('darwin',) and not 'GYP_CROSSCOMPILE' in os.environ:
args.extend(['-D', 'host_arch=x64', '-D', 'use_libcpp=1', '-D', 'linux_use_tcmalloc=0'])
# There shouldn't be a circular dependency relationship between .gyp files,
@@ -141,10 +141,11 @@ if __name__ == '__main__':
args.extend(['-D', 'linux_use_gold_flags=0'])
# Trigger Qt-specific build conditions.
args.extend(['-D', 'use_qt=1'])
- # Tweak the output location and format (hardcode ninja for now)
+ # Tweak the output location and format (hardcode ninja for now if not set)
args.extend(['--generator-output', os.path.abspath(get_output_dir())])
args.extend(['-Goutput_dir='+ os.path.abspath(get_output_dir())])
- args.extend(['--format=ninja'])
+ if not os.environ.get('GYP_GENERATORS'):
+ args.extend(['--format=ninja'])
if "QTWEBENGINE_GYP_DEBUG" in os.environ:
args.append("--check")
args.append("-d all")
diff --git a/build/qtwebengine_extras.gypi b/build/qtwebengine_extras.gypi
index 0260e88a3..dd3d45ac5 100644
--- a/build/qtwebengine_extras.gypi
+++ b/build/qtwebengine_extras.gypi
@@ -12,6 +12,12 @@
['exclude', 'browser/renderer_host/render_widget_host_view_gtk\\.(cc|h)$'],
['exclude', 'browser/renderer_host/render_widget_host_view_mac\\.(mm|h)$'],
['exclude', 'browser/renderer_host/render_widget_host_view_win\\.(cc|h)$'],
+
+ # QNX-specific excludes
+ ['exclude', 'base/resource/resource_bundle_qnx.cc$'],
+ ['exclude', 'browser/qnx/'],
+ ['exclude', 'browser/renderer_host/render_widget_host_view_qnx\\.(cc|h)$'],
+ ['exclude', 'browser/web_contents/web_contents_view_qnx\\.(cc|h)$'],
],
}
}