Issue #325 Part 2: Build ICUUtils unconditionally.

This commit is contained in:
wolfbeast 2018-05-04 10:27:50 +02:00 committed by Roy Tam
commit 6008e3c1f5
4 changed files with 2 additions and 16 deletions

View file

@ -3,7 +3,6 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifdef MOZILLA_INTERNAL_API
#ifdef ENABLE_INTL_API
#include "ICUUtils.h"
#include "mozilla/Preferences.h"
@ -279,6 +278,5 @@ ICUUtils::ToICUString(nsAString& aMozString, UnicodeString& aICUString)
}
#endif
#endif /* ENABLE_INTL_API */
#endif /* MOZILLA_INTERNAL_API */

View file

@ -6,9 +6,6 @@
#ifndef mozilla_ICUUtils_h__
#define mozilla_ICUUtils_h__
// We only build the ICU utils if we're building ICU:
#ifdef ENABLE_INTL_API
// The ICU utils implementation needs internal things like XPCOM strings and
// nsGkAtom, so we only build when included into internal libs:
#ifdef MOZILLA_INTERNAL_API
@ -107,7 +104,6 @@ public:
#endif
};
#endif /* ENABLE_INTL_API */
#endif /* MOZILLA_INTERNAL_API */
#endif /* mozilla_ICUUtils_h__ */

View file

@ -39,7 +39,6 @@ if CONFIG['_MSC_VER']:
CFLAGS += ['-Zl']
CXXFLAGS += ['-Zl']
if CONFIG['ENABLE_INTL_API']:
USE_LIBS += ['icu']
USE_LIBS += ['icu']
DIST_INSTALL = True

View file

@ -6,14 +6,7 @@
intl_unicharutil_util_lcppsrcs = [
'GreekCasing.cpp',
]
if CONFIG['ENABLE_INTL_API']:
intl_unicharutil_util_lcppsrcs += [
'ICUUtils.cpp',
]
intl_unicharutil_util_lcppsrcs += [
'ICUUtils.cpp',
'IrishCasing.cpp',
'nsBidiUtils.cpp',
'nsSpecialCasingData.cpp',