1999-05-18 09:11:01 +00:00
|
|
|
#
|
2012-05-21 11:12:37 +00:00
|
|
|
# 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/.
|
1999-05-18 09:11:01 +00:00
|
|
|
|
2012-08-04 18:26:44 +00:00
|
|
|
DEPTH = @DEPTH@
|
1999-05-18 09:11:01 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
1999-09-18 02:12:56 +00:00
|
|
|
LIBRARY_NAME = xpcombase_s
|
2013-05-16 13:33:26 +00:00
|
|
|
MSVC_ENABLE_PGO := 1
|
2005-04-01 18:22:57 +00:00
|
|
|
MOZILLA_INTERNAL_API =1
|
2009-11-25 20:41:58 +00:00
|
|
|
LIBXUL_LIBRARY = 1
|
2001-02-22 09:35:51 +00:00
|
|
|
|
2013-01-30 23:32:44 +00:00
|
|
|
CSRCS = \
|
|
|
|
nsErrorAssertsC.c \
|
|
|
|
$(NULL)
|
|
|
|
|
2001-12-09 07:05:12 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2011-12-15 19:48:38 +00:00
|
|
|
|
2001-12-09 07:05:12 +00:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
CSRCS += pure_api.c
|
|
|
|
endif
|
2011-12-15 19:48:38 +00:00
|
|
|
|
|
|
|
endif #if OS_ARCH == WINNT
|
2002-02-25 23:20:01 +00:00
|
|
|
|
2008-03-05 11:10:35 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2013-07-04 12:28:43 +00:00
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2008-03-05 11:10:35 +00:00
|
|
|
|
2013-06-10 12:36:26 +00:00
|
|
|
ifdef MOZ_WIDGET_GTK
|
|
|
|
CXXFLAGS += $(TK_CFLAGS)
|
2008-03-14 15:42:34 +00:00
|
|
|
endif
|
|
|
|
|
2011-12-23 01:24:43 +00:00
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(srcdir)/../build \
|
|
|
|
-I$(topsrcdir)/xpcom/ds \
|
|
|
|
$(NULL)
|
2012-08-02 08:55:58 +00:00
|
|
|
|
2013-01-05 03:55:22 +00:00
|
|
|
# We generate ErrorListCxxDefines.h from ErrorList.h using regex. The -n option
|
2012-08-02 08:55:58 +00:00
|
|
|
# suppresses printing the pattern space, and the p at the end prints it anyway,
|
|
|
|
# so we don't print lines that don't match the pattern to start with.
|
2013-01-05 03:55:22 +00:00
|
|
|
ErrorListCxxDefines.h: ErrorList.h Makefile
|
2012-08-02 08:55:58 +00:00
|
|
|
sed -n 's/.*ERROR(\([A-Z_0-9]*\).*/#define \1 nsresult::\1/p' < $< > $@
|
|
|
|
|
2013-01-05 03:55:22 +00:00
|
|
|
ErrorListCDefines.h: ErrorList.h Makefile
|
|
|
|
sed 's/.*ERROR(\([A-Z_0-9]*\),\( *\)\(.*\))[^)]*/#define \1 \2((nsresult)(\3))/' < $< > $@
|
|
|
|
|
|
|
|
GARBAGE += \
|
|
|
|
ErrorListCxxDefines.h \
|
|
|
|
ErrorListCDefines.h \
|
|
|
|
$(NULL)
|