2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # The Original Code is mozilla.org code.
17 # The Initial Developer of the Original Code is
18 # Netscape Communications Corporation.
19 # Portions created by the Initial Developer are Copyright (C) 1998
20 # the Initial Developer. All Rights Reserved.
24 # Alternatively, the contents of this file may be used under the terms of
25 # either of the GNU General Public License Version 2 or later (the "GPL"),
26 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
39 topsrcdir
= @top_srcdir@
43 include $(DEPTH
)/config
/autoconf.mk
49 MODULE_NAME
= nsUConvModule
52 ifneq ($(OS_ARCH
),WINNT
)
53 # To avoid conflict with OS/2 system uconv.dll
54 SHORT_LIBNAME
= mozuconv
57 PACKAGE_FILE
= uconv.pkg
69 nsCharsetAliasImp.
cpp \
70 nsConverterInputStream.
cpp \
71 nsConverterOutputStream.
cpp \
73 nsGREResProperties.
cpp \
74 nsCharsetConverterManager.
cpp \
75 nsUTF8ConverterService.
cpp \
78 nsScriptableUConv.
cpp \
81 ifdef MOZ_USE_NATIVE_UCONV
85 nsISO88591ToUnicode.
cpp \
86 nsCP1252ToUnicode.
cpp \
87 nsMacRomanToUnicode.
cpp \
88 nsUnicodeToISO88591.
cpp \
89 nsUnicodeToCP1252.
cpp \
90 nsUnicodeToMacRoman.
cpp \
96 charsetalias.properties \
97 charsetData.properties \
100 ifeq ($(MOZ_WIDGET_TOOLKIT
),os2
)
101 CPPSRCS
+= nsOS2Charset.
cpp
102 EXPORT_RESOURCE
+= os2charset.properties
104 ifeq ($(MOZ_WIDGET_TOOLKIT
),windows
)
105 CPPSRCS
+= nsWinCharset.
cpp
106 EXPORT_RESOURCE
+= wincharset.properties
108 ifneq (,$(filter cocoa mac
, $(MOZ_WIDGET_TOOLKIT
)))
109 CPPSRCS
+= nsMacCharset.
cpp
110 EXPORT_RESOURCE
+= maccharset.properties
112 ifeq ($(OS_ARCH
),BeOS
)
113 CPPSRCS
+= nsBeOSCharset.
cpp
115 CPPSRCS
+= nsUNIXCharset.
cpp
116 EXPORT_RESOURCE
+= unixcharset.properties
117 # add platform charset remapping properties files here if necessary
118 # (see unixcharset.sample.properties for an example file)
119 # eg: if we needed a charset remap for OSARCH=Linux then add the following line:
120 #EXPORT_RESOURCE += unixcharset.Linux.properties
127 ..
/util
/$(LIB_PREFIX
)ucvutil_s.
$(LIB_SUFFIX
) \
128 $(MOZ_UNICHARUTIL_LIBS
) \
129 $(MOZ_NECKO_UTIL_LIBS
) \
130 $(MOZ_COMPONENT_LIBS
) \
133 LOCAL_INCLUDES
= -I
$(srcdir)/..
/util
135 ifneq (,$(filter cocoa mac
, $(MOZ_WIDGET_TOOLKIT
)))
136 EXTRA_DSO_LDOPTS
+= $(TK_LIBS
)
139 LOCAL_INCLUDES
= -I
$(srcdir)/..
/util \
140 -I
$(srcdir)/..
/ucvlatin \
141 -I
$(srcdir)/..
/ucvibm \
142 -I
$(srcdir)/..
/ucvja \
143 -I
$(srcdir)/..
/ucvtw2 \
144 -I
$(srcdir)/..
/ucvtw \
145 -I
$(srcdir)/..
/ucvko \
146 -I
$(srcdir)/..
/ucvcn \
147 -I
$(srcdir)/..
/native \
150 ifndef MOZ_USE_NATIVE_UCONV
151 SHARED_LIBRARY_LIBS
+= \
152 ..
/ucvlatin
/$(LIB_PREFIX
)ucvlatin_s.
$(LIB_SUFFIX
) \
153 ..
/ucvibm
/$(LIB_PREFIX
)ucvibm_s.
$(LIB_SUFFIX
) \
154 ..
/ucvja
/$(LIB_PREFIX
)ucvja_s.
$(LIB_SUFFIX
) \
155 ..
/ucvtw2
/$(LIB_PREFIX
)ucvtw2_s.
$(LIB_SUFFIX
) \
156 ..
/ucvtw
/$(LIB_PREFIX
)ucvtw_s.
$(LIB_SUFFIX
) \
157 ..
/ucvko
/$(LIB_PREFIX
)ucvko_s.
$(LIB_SUFFIX
) \
158 ..
/ucvcn
/$(LIB_PREFIX
)ucvcn_s.
$(LIB_SUFFIX
) \
161 SHARED_LIBRARY_LIBS
+= \
162 ..
/native
/$(LIB_PREFIX
)ucnative_s.
$(LIB_SUFFIX
) \
166 include $(topsrcdir
)/config
/rules.mk
168 # CODESET is not automatically defined on some older versions of Redhat.
169 # Define _XOPEN_SOURCE so CODESET will get defined and thus allow
170 # nl_langinfo(CODESET) to compile on these systems.
171 ifeq ($(OS_ARCH
), Linux
)
172 DEFINES
+= -D_XOPEN_SOURCE
=500
175 libs
:: $(EXPORT_RESOURCE
)
176 $(INSTALL
) $^
$(DIST
)/bin
/res
178 install:: $(EXPORT_RESOURCE
)
179 $(SYSINSTALL
) $(IFLAGS1
) $^
$(DESTDIR
)$(mozappdir
)/res