From 4977741f3526d5c6dde08b837502a418aab84039 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 2 Apr 2015 22:14:18 +0800 Subject: [PATCH] Set libraries' path according to libchromiumcontent_component variable --- brightray/brightray.gyp | 40 +++--- brightray/brightray.gypi | 188 +++++++++++++++------------- brightray/vendor/libchromiumcontent | 2 +- 3 files changed, 119 insertions(+), 111 deletions(-) diff --git a/brightray/brightray.gyp b/brightray/brightray.gyp index 2ce86b93ad2e..9c5bbbfcffb3 100644 --- a/brightray/brightray.gyp +++ b/brightray/brightray.gyp @@ -8,22 +8,22 @@ 'type': 'static_library', 'include_dirs': [ '.', - '<(libchromiumcontent_include_dir)', - '<(libchromiumcontent_include_dir)/skia/config', - '<(libchromiumcontent_include_dir)/third_party/skia/include/core', - '<(libchromiumcontent_include_dir)/third_party/WebKit', - '<(libchromiumcontent_library_dir)/gen', + '<(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_include_dir)', - '<(libchromiumcontent_include_dir)/skia/config', - '<(libchromiumcontent_include_dir)/third_party/skia/include/core', - '<(libchromiumcontent_include_dir)/third_party/icu/source/common', - '<(libchromiumcontent_include_dir)/third_party/WebKit', - '<(libchromiumcontent_library_dir)/gen', + '<(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': [ @@ -92,12 +92,10 @@ 'common/main_delegate.h', 'common/main_delegate_mac.mm', ], + 'link_settings': { + 'libraries': [ '<@(libchromiumcontent_libraries)' ] + }, 'conditions': [ - ['libchromiumcontent_component_build', { - 'link_settings': { - 'libraries': [ '<@(libchromiumcontent_shared_libraries)' ] - }, - }], ['OS=="linux"', { 'cflags_cc': [ '-Wno-deprecated-register', @@ -108,7 +106,7 @@ '