widget/os2/Makefile.in
author Mike Shal <mshal@mozilla.com>
Tue, 23 Apr 2013 17:54:15 -0400
changeset 144532 6e45e9f62d2171419a8d8780ad4779ff0488ccb5
parent 143241 0db9c45c8bde2a553cf4f8bcb62707ad359838c0
child 147249 d4f61f0a66fd084876fc00fbbfbae9532801d29a
permissions -rw-r--r--
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001

#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

LIBRARY_NAME	= wdgtos2
EXPORT_LIBRARY	= 1
IS_COMPONENT	= 1
RESFILE		= widget.res
MODULE_NAME	= nsWidgetOS2Module
LIBXUL_LIBRARY = 1


SHARED_LIBRARY_LIBS = \
	../xpwidgets/$(LIB_PREFIX)xpwidgets_s.$(LIB_SUFFIX) \
	$(NULL)

include $(topsrcdir)/config/rules.mk

CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS)

DEFINES		+= -D_IMPL_NS_WIDGET

DEFINES += -DUSE_OS2_TOOLKIT_HEADERS

DEFINES += -DMOZ_APP_DISPLAYNAME=\"$(MOZ_APP_DISPLAYNAME)\"

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

install-readme:	README.$(MOZ_APP_NAME)
ifneq (,$(filter-out xulrunner sunbird,$(MOZ_APP_NAME)))
	cp -f $^ $(DIST)/bin/README.txt
endif

libs::	install-readme
	$(INSTALL) $(srcdir)/MozSounds.cmd $(DIST)/bin/

export-preqs = \
    $(call mkdir_deps,res) \
    $(NULL)

export:: $(export-preqs)
	test -f ./res/aliasb.ptr || cp $(srcdir)/res/*.* ./res