From 08a13bec9d06a0ea3d86b8a3126cf83a200a8320 Mon Sep 17 00:00:00 2001 From: Elvis Pranskevichus Date: Mon, 8 Feb 2016 15:14:58 -0500 Subject: [PATCH] brightray build fixes --- brightray.gyp | 52 ++++++++++++++++++++++++++++++++++++++++++++++++---- brightray.gypi | 20 +++++++------------- 2 files changed, 55 insertions(+), 17 deletions(-) diff --git a/brightray.gyp b/brightray.gyp index d089dba..a34b090 100644 --- a/brightray.gyp +++ b/brightray.gyp @@ -1,7 +1,7 @@ { 'variables': { # The libraries brightray will be compiled to. - 'linux_system_libraries': 'gtk+-2.0 dbus-1 x11 xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst xscrnsaver gconf-2.0 gmodule-2.0 nss' + 'linux_system_libraries': 'gtk+-2.0 dbus-1 x11 xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst xscrnsaver gmodule-2.0 nss' }, 'includes': [ 'filenames.gypi', @@ -9,6 +9,11 @@ 'targets': [ { 'target_name': 'brightray', + 'dependencies': [ + 'cups', + 'gconf', + '<(libchromiumcontent_src_dir)/chromiumcontent/chromiumcontent.gyp:chromiumcontent_all' + ], 'type': 'static_library', 'include_dirs': [ '.', @@ -104,12 +109,9 @@ }, { 'link_settings': { 'libraries': [ - # Link with ffmpeg. - '<(libchromiumcontent_dir)/libffmpeg.so', # Following libraries are required by libchromiumcontent: '-lasound', '-lcap', - '-lcups', '-lrt', '-ldl', '-lresolv', @@ -333,5 +335,47 @@ }], # OS=="win" ], }, + { + 'target_name': 'gconf', + 'type': 'none', + 'conditions': [ + ['use_gconf==1 and _toolset=="target"', { + 'direct_dependent_settings': { + 'cflags': [ + '