Patch excludes print related code from mobile AND TV
(fixing an undefined reference problem) when building
for target.
Patch also fixes the build_tv.sh script which was simply
not right: it was building for mobile.
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5676
Change-Id: Ib0de8ee3ef8bf0faf2b91d78b96ed0a21f2ba697
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
# copy patched files (for GCC 4.5)
. ${SCRIPTDIR}/copy_patched_files.sh
-gbs build -A armv7l --incremental "$@"
+GBS_CONF=$HOME/.gbs.conf
+if [ ! -f $GBS_CONF ]; then
+ GBS_CONF=${SCRIPTDIR}/gbs.conf
+fi
+
+gbs --conf $GBS_CONF build -P tizentv_product -A armv7l --incremental "$@"
void RenderViewObserverEfl::OnPrintToPdf(int width, int height, const base::FilePath& filename)
{
-#if !(defined(EWK_BRINGUP) && defined(OS_TIZEN_MOBILE))
+#if !(defined(EWK_BRINGUP) && defined(OS_TIZEN))
blink::WebView* web_view = render_view()->GetWebView();
DCHECK(web_view);
PrintWebViewHelperEfl print_helper(render_view(), filename);
}
void WebContentsDelegateEfl::OnPrintedMetafileReceived(const DidPrintPagesParams& params) {
-#if !(defined(EWK_BRINGUP) && defined(OS_TIZEN_MOBILE))
+#if !(defined(EWK_BRINGUP) && defined(OS_TIZEN))
base::SharedMemory shared_buf(params.metafile_data_handle, true);
if (!shared_buf.Map(params.data_size)) {
NOTREACHED() << "couldn't map";