From 5f461cd5cd4c46993da12eecb294bb8c3fccb910 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 18 May 2018 10:47:29 +0900 Subject: [PATCH] fix release build on arm --- brightray/brightray.gyp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/brightray/brightray.gyp b/brightray/brightray.gyp index 1a407ff54..084f25eba 100644 --- a/brightray/brightray.gyp +++ b/brightray/brightray.gyp @@ -164,14 +164,21 @@ ], }, }], + # This lib does not exist on arm. ['target_arch=="arm"', { + 'link_settings': { + 'libraries!': [ + '<(libchromiumcontent_dir)/libdesktop_capture_differ_sse2.a', + ], + }, + }], + # Due to strange linker behavior, component build of arm needs to + # be linked with libjpeg.a explicitly. + ['target_arch=="arm" and libchromiumcontent_component==1', { 'link_settings': { 'libraries': [ '<(libchromiumcontent_dir)/libjpeg.a', ], - 'libraries!': [ - '<(libchromiumcontent_dir)/libdesktop_capture_differ_sse2.a', - ], }, }], ],