#
# The contents of this file are subject to the Netscape Public License
# Version 1.1 (the "NPL"); you may not use this file except in
# compliance with the NPL.  You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation.  Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation.  All Rights
# Reserved.
#

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

include $(DEPTH)/config/autoconf.mk


LIBRARY_NAME    = gfx_mac
EXPORT_LIBRARY  = 1
MODULE          = gfx
IS_COMPONENT    = 1
MODULE_NAME     = nsGfxMacModule

REQUIRES    = xpcom \
        string \
        img \
        widget \
        view \
        util \
        dom \
        pref \
        js \
        uconv \
        necko \
        unicharutil \
        gfx2 \
        mozcomps \
        windowwatcher \
        content \
        layout \
        locale \
        $(NULL)

CPPSRCS = \
        nsATSUIUtils.cpp \
        nsDeviceContextMac.cpp \
        nsDeviceContextSpecFactoryM.cpp \
        nsDeviceContextSpecX.cpp \
        nsDrawingSurfaceMac.cpp \
        nsFontMetricsMac.cpp \
        nsGfxFactoryMac.cpp \
        nsGraphicState.cpp \
        nsImageMac.cpp \
        nsRegionMac.cpp \
        nsRenderingContextMac.cpp \
        nsMacUnicodeFontInfo.cpp \
        nsUnicodeFontMappingMac.cpp \
        nsUnicodeMappingUtil.cpp \
        nsUnicodeRenderingToolkit.cpp \
        nsScreenMac.cpp \
        nsScreenManagerMac.cpp \
        nsPrintOptionsX.cpp \
        nsFontUtils.cpp \
        nsNativeThemeMac.cpp \
        $(NULL)

#       $(DIST)/lib/libimg_s.a \

EXTRA_DSO_LDOPTS = \
        $(MKSHLIB_FORCE_ALL) \
        $(DIST)/lib/libmozutil_s.a \
        -lgkgfx \
        $(MKSHLIB_UNFORCE_ALL) \
        $(TK_LIBS) \
        $(MOZ_COMPONENT_LIBS) \
        $(NULL)

include $(topsrcdir)/config/rules.mk

        
CXXFLAGS    += $(TK_CFLAGS)
CFLAGS      += $(TK_CFLAGS)
INCLUDES    += $(TK_CFLAGS) -I$(srcdir)/..
