intl/uconv/src/Makefile.in
author ffxbld
Wed, 03 Nov 2010 11:16:45 -0700
branchGECKO20b7pre_20101029_RELBRANCH
changeset 56846 4665267772dbe78eafe6039e2cc2847f8cd0601c
parent 42497 8d6db7f8fe09b7b34f75fa87f4a695eab4e26c00
child 57151 4b5e489173b61d50ee9c478791fe37746618a423
permissions -rw-r--r--
Added tag FENNEC_4_0b2_RELEASE for changeset ec7521865660. CLOSED TREE

# vim:set noet ts=8:
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the terms of
# either of the GNU General Public License Version 2 or later (the "GPL"),
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****

DEPTH		= ../../..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE		= uconv
LIBRARY_NAME	= uconv
EXPORT_LIBRARY  = 1
IS_COMPONENT	= 1
MODULE_NAME	= nsUConvModule
GRE_MODULE	= 1
LIBXUL_LIBRARY = 1
# To avoid conflict with OS/2 system uconv.dll
SHORT_LIBNAME  = mozuconv

CPPSRCS		= \
		nsUConvModule.cpp \
		nsCharsetAliasImp.cpp \
		nsConverterInputStream.cpp \
		nsConverterOutputStream.cpp \
		nsTextToSubURI.cpp \
		nsCharsetConverterManager.cpp \
		nsUTF8ConverterService.cpp \
		nsUTF8ToUnicode.cpp \
		nsUnicodeToUTF8.cpp \
		nsScriptableUConv.cpp \
		nsUConvPropertySearch.cpp \
		$(NULL)

ifndef MOZ_USE_NATIVE_UCONV
CPPSRCS         += \
		nsISO88591ToUnicode.cpp \
		nsCP1252ToUnicode.cpp \
		nsMacRomanToUnicode.cpp \
		nsUnicodeToISO88591.cpp \
		nsUnicodeToCP1252.cpp \
		nsUnicodeToMacRoman.cpp \
		$(NULL)

endif

ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
CPPSRCS			+= nsOS2Charset.cpp
else
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
CPPSRCS			+= nsWinCharset.cpp
else
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
CPPSRCS			+= nsMacCharset.cpp
else
ifeq ($(OS_ARCH),BeOS)
CPPSRCS			+= nsBeOSCharset.cpp
else
CPPSRCS			+= nsUNIXCharset.cpp
endif
endif
endif
endif

EXTRA_DSO_LDOPTS = \
		../util/$(LIB_PREFIX)ucvutil_s.$(LIB_SUFFIX) \
		$(MOZ_UNICHARUTIL_LIBS) \
		$(MOZ_NECKO_UTIL_LIBS) \
		$(MOZ_COMPONENT_LIBS) \
		$(NULL)

LOCAL_INCLUDES	= -I$(srcdir)/../util

ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
EXTRA_DSO_LDOPTS += $(TK_LIBS)
endif

LOCAL_INCLUDES	= -I$(srcdir)/../util \
		  -I$(srcdir)/../ucvlatin \
		  -I$(srcdir)/../ucvibm \
		  -I$(srcdir)/../ucvja \
		  -I$(srcdir)/../ucvtw2 \
		  -I$(srcdir)/../ucvtw \
		  -I$(srcdir)/../ucvko \
		  -I$(srcdir)/../ucvcn \
		  -I$(srcdir)/../native \
		  $(NULL)

ifndef MOZ_USE_NATIVE_UCONV
SHARED_LIBRARY_LIBS += \
	../ucvlatin/$(LIB_PREFIX)ucvlatin_s.$(LIB_SUFFIX) \
	../ucvibm/$(LIB_PREFIX)ucvibm_s.$(LIB_SUFFIX) \
	../ucvja/$(LIB_PREFIX)ucvja_s.$(LIB_SUFFIX) \
	../ucvtw2/$(LIB_PREFIX)ucvtw2_s.$(LIB_SUFFIX) \
	../ucvtw/$(LIB_PREFIX)ucvtw_s.$(LIB_SUFFIX) \
	../ucvko/$(LIB_PREFIX)ucvko_s.$(LIB_SUFFIX) \
	../ucvcn/$(LIB_PREFIX)ucvcn_s.$(LIB_SUFFIX) \
	$(NULL)
else
SHARED_LIBRARY_LIBS += \
	../native/$(LIB_PREFIX)ucnative_s.$(LIB_SUFFIX) \
	$(NULL)
endif

include $(topsrcdir)/config/rules.mk

# CODESET is not automatically defined on some older versions of Redhat.
# Define _XOPEN_SOURCE so CODESET will get defined and thus allow 
# nl_langinfo(CODESET) to compile on these systems.
ifeq ($(OS_ARCH), Linux)
DEFINES         += -D_XOPEN_SOURCE=500
endif

nsCharsetAliasImp.$(OBJ_SUFFIX): charsetalias.properties.h

nsMacCharset.$(OBJ_SUFFIX): maccharset.properties.h

nsOS2Charset.$(OBJ_SUFFIX): os2charset.properties.h

nsWinCharset.$(OBJ_SUFFIX): wincharset.properties.h

nsUNIXCharset.$(OBJ_SUFFIX): unixcharset.properties.h

charsetalias.properties.h: props2arrays.py charsetalias.properties
	$(PYTHON) $^ $@

maccharset.properties.h: props2arrays.py maccharset.properties
	$(PYTHON) $^ $@

os2charset.properties.h: props2arrays.py os2charset.properties
	$(PYTHON) $^ $@

wincharset.properties.h: props2arrays.py wincharset.properties
	$(PYTHON) $^ $@

unixcharset.properties.h: props2arrays.py unixcharset.properties
	$(PYTHON) $^ $@

GARBAGE += \
	charsetalias.properties.h \
	maccharset.properties.h \
	os2charset.properties.h \
	unixcharset.properties.h \
	wincharset.properties.h \
	$(NULL)