Commit 0fb2109e authored by Zoltan Arvai's avatar Zoltan Arvai Committed by The Qt Project
Browse files

Extend search path in libvpx to enable build with QtWebEngine


Paths are paritally hardcoded for Windows in libvpx.

Change-Id: Ic1c537bcc8b988c9803326709e38f44cb0943ee3
Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
Showing with 40 additions and 0 deletions
From b7fe7f56307823e3d028bcca94c3f1cb6981dc5f Mon Sep 17 00:00:00 2001
From: Zoltan Arvai <zarvai@inf.u-szeged.hu>
Date: Mon, 24 Feb 2014 07:29:32 -0800
Subject: LIBVPX: Add path for QtWebEngine build in Windows specific actions
---
libvpx.gyp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libvpx.gyp b/libvpx.gyp
index 392ccde..7f1a18d 100644
--- a/libvpx.gyp
+++ b/libvpx.gyp
@@ -402,6 +402,7 @@
'-s', '<(PRODUCT_DIR)/obj/libvpx_asm_offsets_vp8/vp8_asm_enc_offsets.obj',
'-s', '<(ninja_obj_dir)/encoder/libvpx_asm_offsets_vp8.vp8_asm_enc_offsets.obj',
'-s', '<(PRODUCT_DIR)/obj/Source/WebKit/chromium/third_party/libvpx/<(libvpx_source)/vp8/encoder/libvpx_asm_offsets_vp8.vp8_asm_enc_offsets.obj',
+ '-s', '<(qtwe_chromium_obj_dir)/third_party/libvpx/<(libvpx_source)/vp8/encoder/libvpx_asm_offsets_vp8.vp8_asm_enc_offsets.obj',
],
'process_output_as_sources': 1,
'msvs_cygwin_shell': 1,
@@ -500,6 +501,7 @@
'-s', '<(PRODUCT_DIR)/obj/libvpx_asm_offsets_vpx_scale/vpx_scale_asm_offsets.obj',
'-s', '<(ninja_obj_dir)/encoder/libvpx_asm_offsets_vpx_scale.vpx_scale_asm_offsets.obj',
'-s', '<(PRODUCT_DIR)/obj/Source/WebKit/chromium/third_party/libvpx/<(libvpx_source)/vpx_scale/libvpx_asm_offsets_vpx_scale.vpx_scale_asm_offsets.obj',
+ '-s', '<(qtwe_chromium_obj_dir)/third_party/libvpx/<(libvpx_source)/vpx_scale/libvpx_asm_offsets_vpx_scale.vpx_scale_asm_offsets.obj',
],
'process_output_as_sources': 1,
'msvs_cygwin_shell': 1,
--
1.7.9
...@@ -55,6 +55,7 @@ for MODULE in \ ...@@ -55,6 +55,7 @@ for MODULE in \
/ \ / \
/third_party/WebKit \ /third_party/WebKit \
/third_party/libjingle/source/talk \ /third_party/libjingle/source/talk \
/third_party/libvpx \
/tools/gyp \ /tools/gyp \
/tools/grit /tools/grit
do do
......
...@@ -58,6 +58,12 @@ cross_compile { ...@@ -58,6 +58,12 @@ cross_compile {
GYP_ARGS += "-D CXX=\"$$which($$QMAKE_CXX)\"" GYP_ARGS += "-D CXX=\"$$which($$QMAKE_CXX)\""
} }
win32 {
# Libvpx build needs additional search path on Windows.
git_chromium_src_dir = $$system("git config qtwebengine.chromiumsrcdir")
GYP_ARGS += "-D qtwe_chromium_obj_dir=\"$$getOutDir()/$$getConfigDir()/obj/$$git_chromium_src_dir\""
}
!build_pass { !build_pass {
message(Running gyp_qtwebengine $${GYP_ARGS}...) message(Running gyp_qtwebengine $${GYP_ARGS}...)
!system("python $$QTWEBENGINE_ROOT/tools/buildscripts/gyp_qtwebengine $${GYP_ARGS}"): error("-- running gyp_qtwebengine failed --") !system("python $$QTWEBENGINE_ROOT/tools/buildscripts/gyp_qtwebengine $${GYP_ARGS}"): error("-- running gyp_qtwebengine failed --")
......
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