Use system icu 30/145930/8
authorYoungsoo Choi <kenshin.choi@samsung.com>
Thu, 24 Aug 2017 07:19:31 +0000 (16:19 +0900)
committerSungsik Han <ss440.han@samsung.com>
Tue, 12 Sep 2017 04:58:24 +0000 (04:58 +0000)
This adds system icu headers.

Change-Id: I4eb5f1c0e4d96719f33334b650f38343b429e6bb
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
atom/renderer/api/atom_api_spell_check_client.cc
chromium_src/chrome/renderer/spellchecker/spellcheck_worditerator.cc
chromium_src/chrome/renderer/spellchecker/spellcheck_worditerator.h
electron.gyp

index 9a07cbf..edfdd0d 100644 (file)
 #include "base/logging.h"
 #include "native_mate/converter.h"
 #include "native_mate/dictionary.h"
+#if defined(USE_SYSTEM_ICU)
+#include "unicode/uscript.h"
+#else
 #include "third_party/icu/source/common/unicode/uscript.h"
+#endif
 #include "third_party/WebKit/public/web/WebTextCheckingCompletion.h"
 #include "third_party/WebKit/public/web/WebTextCheckingResult.h"
 
index 46465f4..2aa8beb 100644 (file)
 #include "base/logging.h"
 #include "base/strings/stringprintf.h"
 #include "base/strings/utf_string_conversions.h"
+#if defined(USE_SYSTEM_ICU)
+#include "unicode/normlzr.h"
+#include "unicode/schriter.h"
+#include "unicode/uscript.h"
+#include "unicode/ulocdata.h"
+#else
 #include "third_party/icu/source/common/unicode/normlzr.h"
 #include "third_party/icu/source/common/unicode/schriter.h"
 #include "third_party/icu/source/common/unicode/uscript.h"
 #include "third_party/icu/source/i18n/unicode/ulocdata.h"
-
+#endif
 // SpellcheckCharAttribute implementation:
 
 SpellcheckCharAttribute::SpellcheckCharAttribute()
index 7e07d29..4efc881 100644 (file)
 
 #include "base/macros.h"
 #include "base/strings/string16.h"
+
+#if defined(USE_SYSTEM_ICU)
+#include "unicode/uscript.h"
+#else
 #include "third_party/icu/source/common/unicode/uscript.h"
+#endif
 
 namespace base {
 namespace i18n {
index fa56224..847870b 100644 (file)
             '<(DEPTH)/efl/build/system.gyp:icu',
             'electron_shell_copy',
           ],
+          'defines': [
+            'USE_SYSTEM_ICU',
+          ],
           'sources': [
             'chromium_src/chrome/browser/icon_loader_efllinux.cc',
           ],