{ 'variables': { # The libraries brightray will be compiled to. 'linux_system_libraries': 'gtk+-2.0 libnotify dbus-1 x11 xrandr xext gconf-2.0' }, 'includes': [ 'filenames.gypi', ], 'targets': [ { 'target_name': 'brightray', 'type': 'static_library', 'include_dirs': [ '.', '<(libchromiumcontent_src_dir)', '<(libchromiumcontent_src_dir)/skia/config', '<(libchromiumcontent_src_dir)/third_party/skia/include/core', '<(libchromiumcontent_src_dir)/third_party/WebKit', '<(libchromiumcontent_dir)/gen', ], 'direct_dependent_settings': { 'include_dirs': [ '.', '..', '<(libchromiumcontent_src_dir)', '<(libchromiumcontent_src_dir)/skia/config', '<(libchromiumcontent_src_dir)/third_party/skia/include/core', '<(libchromiumcontent_src_dir)/third_party/icu/source/common', '<(libchromiumcontent_src_dir)/third_party/WebKit', '<(libchromiumcontent_dir)/gen', ], }, 'sources': [ '<@(brightray_sources)' ], 'conditions': [ # Link with libraries of libchromiumcontent. ['OS=="linux" and libchromiumcontent_component==0', { # On Linux we have to use "--whole-archive" to force executable # to include all symbols, otherwise we will have plenty of # unresolved symbols errors. 'direct_dependent_settings': { 'ldflags': [ '-Wl,--whole-archive', '<@(libchromiumcontent_libraries)', '-Wl,--no-whole-archive', ], } }, { 'link_settings': { 'libraries': [ '<@(libchromiumcontent_libraries)' ] }, }], ['OS=="linux"', { 'link_settings': { 'ldflags': [ '