Changeset 30913 in webkit


Ignore:
Timestamp:
Mar 9, 2008 5:49:15 PM (16 years ago)
Author:
alp@webkit.org
Message:

2008-03-09 J?rg Billeter <j@bitron.ch>

Reviewed by Alp Toker.

Conditionalise ICU for Unicode in the GTK+ port.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r30721 r30913  
     12008-03-09  Jürg Billeter  <j@bitron.ch>
     2
     3        Reviewed by Alp Toker.
     4
     5        Conditionalise ICU for Unicode in the GTK+ port.
     6
     7        * GNUmakefile.am:
     8        * configure.ac:
     9
    1102008-03-03  Brent Fulgham  <bfulgham@gmail.com>
    211
  • trunk/GNUmakefile.am

    r30707 r30913  
    5959        -I$(top_builddir)/DerivedSources
    6060
     61global_cppflags += \
     62        -DWTF_USE_ICU_UNICODE=1
     63
    6164# Default compiler flags
    6265global_cflags := \
     
    105108
    106109libJavaScriptCore_la_LIBADD = \
    107         $(ICU_LIBS) \
     110        $(UNICODE_LIBS) \
    108111        $(GLOBALDEPS_LIBS) \
    109112        -lpthread
     
    118121        $(global_cflags) \
    119122        $(GLOBALDEPS_CFLAGS) \
     123        $(UNICODE_CFLAGS) \
    120124        -fstrict-aliasing
    121125
    122126libJavaScriptCore_la_CPPFLAGS = \
    123127        $(global_cppflags) \
    124         $(javascriptcore_cppflags) \
    125         $(ICU_CPPFLAGS)
     128        $(javascriptcore_cppflags)
    126129
    127130#
     
    166169        -fno-strict-aliasing \
    167170        $(global_cflags) \
     171        $(UNICODE_CFLAGS) \
    168172        $(GLOBALDEPS_CFLAGS) \
    169173        $(WEBKITDEPS_CFLAGS) \
     
    176180
    177181libWebCore_la_CPPFLAGS = \
    178         $(ICU_CPPFLAGS) \
    179182        $(global_cppflags) \
    180183        $(webcore_cppflags) \
     
    187190        $(WEBKITDEPS_LIBS) \
    188191        $(LIBCURL_LIBS) \
    189         $(ICU_LIBS) \
     192        $(UNICODE_LIBS) \
    190193        $(SQLITE3_LIBS) \
    191194        $(GSTREAMER_LIBS) \
  • trunk/JavaScriptCore/ChangeLog

    r30897 r30913  
     12008-03-09  Jürg Billeter  <j@bitron.ch>
     2
     3        Reviewed by Alp Toker.
     4
     5        Conditionalise ICU for Unicode in the GTK+ port.
     6
     7        * wtf/Platform.h:
     8
    192008-03-07  David D. Kilzer  <ddkilzer@apple.com>
    210
  • trunk/JavaScriptCore/wtf/Platform.h

    r30897 r30913  
    204204#endif
    205205
    206 /* for Unicode, KDE uses Qt, everything else uses ICU */
     206/* for Unicode, KDE uses Qt */
    207207#if PLATFORM(KDE) || PLATFORM(QT)
    208208#define WTF_USE_QT4_UNICODE 1
    209209#elif PLATFORM(SYMBIAN)
    210210#define WTF_USE_SYMBIAN_UNICODE 1
     211#elif PLATFORM(GTK)
     212/* The GTK+ Unicode backend is configurable */
    211213#else
    212214#define WTF_USE_ICU_UNICODE 1
  • trunk/configure.ac

    r30721 r30913  
    130130fi
    131131
    132 # check for icu-config
    133 if test "$os_darwin" = "yes"; then
    134 ICU_CPPFLAGS="-I\$(srcdir)/JavaScriptCore/icu -I\$(srcdir)/WebCore/icu"
    135 ICU_LIBS="-licucore"
    136 else
    137 AC_PATH_PROG(icu_config, icu-config, no)
    138 if test "$icu_config" = "no"; then
    139    AC_MSG_ERROR([Cannot find icu-config. ICU library is needed.])
    140 fi
    141 
    142 # We don't use --cflags as this gives us a lot of things that we don't
    143 # necessarily want, like debugging and optimization flags
    144 # See man (1) icu-config for more info.
    145 ICU_CPPFLAGS=`$icu_config --cppflags`
    146 ICU_LIBS=`$icu_config --ldflags`
    147 AC_SUBST([ICU_CPPFLAGS])
    148 AC_SUBST([ICU_LIBS])
    149 fi
     132# determine the Unicode backend
     133AC_MSG_CHECKING([the Unicode backend to use])
     134AC_ARG_WITH(unicode_backend,
     135            AC_HELP_STRING([--with-unicode-backend=@<:@icu@:>@],
     136                           [Select Unicode backend [default=icu]]),
     137            [],[unicode_backend="icu"])
     138
     139case "$unicode_backend" in
     140     icu) ;;
     141     *) AC_MSG_ERROR([Invalid Unicode backend: must be icu.]) ;;
     142esac
     143
     144AC_MSG_RESULT([$unicode_backend])
     145
     146if test "$unicode_backend" = "icu"; then
     147        # check for icu-config
     148        if test "$os_darwin" = "yes"; then
     149                UNICODE_CFLAGS="-I\$(srcdir)/JavaScriptCore/icu -I\$(srcdir)/WebCore/icu"
     150                UNICODE_LIBS="-licucore"
     151        else
     152                AC_PATH_PROG(icu_config, icu-config, no)
     153                if test "$icu_config" = "no"; then
     154                        AC_MSG_ERROR([Cannot find icu-config. The ICU library is needed.])
     155                fi
     156
     157                # We don't use --cflags as this gives us a lot of things that we don't
     158                # necessarily want, like debugging and optimization flags
     159                # See man (1) icu-config for more info.
     160                UNICODE_CFLAGS=`$icu_config --cppflags`
     161                UNICODE_LIBS=`$icu_config --ldflags`
     162        fi
     163fi
     164
     165AC_SUBST([UNICODE_CFLAGS])
     166AC_SUBST([UNICODE_LIBS])
    150167
    151168# determine the GDK/GTK+ target
     
    486503 Enable debugging (slow)           : $enable_debug
    487504 Code coverage support             : $enable_coverage
     505 Unicode backend                   : $unicode_backend
    488506 HTTP backend                      : $http_backend
    489507 Optimized memory allocator        : $enable_fast_malloc
Note: See TracChangeset for help on using the changeset viewer.