2007-03-22 10:30:00 -07:00
|
|
|
#
|
2012-05-21 04:12:37 -07: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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-03-22 10:30:00 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = xpcom
|
|
|
|
XPIDL_MODULE = xpcom_io
|
|
|
|
LIBRARY_NAME = xpcomio_s
|
|
|
|
GRE_MODULE = 1
|
|
|
|
MOZILLA_INTERNAL_API = 1
|
2012-03-14 07:08:04 -07:00
|
|
|
LIBXUL_LIBRARY = 1
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-12-13 19:22:52 -08:00
|
|
|
# work around bug 408258
|
|
|
|
ifdef GNU_CC
|
|
|
|
ifneq ($(OS_ARCH), Darwin)
|
2011-05-24 03:56:04 -07:00
|
|
|
MODULE_OPTIMIZE_FLAGS = $(MOZ_OPTIMIZE_FLAGS) -fno-strict-aliasing
|
2007-12-13 19:22:52 -08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
CPPSRCS = \
|
2011-06-08 11:08:31 -07:00
|
|
|
Base64.cpp \
|
2012-09-24 17:50:30 -07:00
|
|
|
nsAnonymousTemporaryFile.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
nsAppFileLocationProvider.cpp \
|
|
|
|
nsBinaryStream.cpp \
|
|
|
|
nsDirectoryService.cpp \
|
|
|
|
nsEscape.cpp \
|
|
|
|
nsInputStreamTee.cpp \
|
|
|
|
nsLinebreakConverter.cpp \
|
|
|
|
nsLocalFileCommon.cpp \
|
|
|
|
nsMultiplexInputStream.cpp \
|
2009-05-13 20:22:54 -07:00
|
|
|
nsNativeCharsetUtils.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
nsPipe3.cpp \
|
|
|
|
nsStreamUtils.cpp \
|
|
|
|
nsScriptableInputStream.cpp \
|
2011-06-08 11:08:31 -07:00
|
|
|
nsScriptableBase64Encoder.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
nsSegmentedBuffer.cpp \
|
|
|
|
nsStorageStream.cpp \
|
|
|
|
nsStringStream.cpp \
|
|
|
|
nsUnicharInputStream.cpp \
|
2009-05-07 12:21:54 -07:00
|
|
|
nsIOUtil.cpp \
|
2009-05-13 20:22:54 -07:00
|
|
|
nsWildCard.cpp \
|
|
|
|
SpecialSystemDirectory.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2010-07-21 20:25:24 -07:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
CMMSRCS += \
|
|
|
|
CocoaFileUtils.mm \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
CPPSRCS += nsLocalFileOS2.cpp
|
|
|
|
else
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
2012-09-24 17:50:30 -07:00
|
|
|
CPPSRCS += nsLocalFileWin.cpp
|
2007-03-22 10:30:00 -07:00
|
|
|
else
|
|
|
|
CPPSRCS += nsLocalFileUnix.cpp
|
|
|
|
endif # windows
|
|
|
|
endif # OS2
|
|
|
|
|
|
|
|
EXPORTS = \
|
2012-09-24 17:50:30 -07:00
|
|
|
nsAnonymousTemporaryFile.h \
|
2007-03-22 10:30:00 -07:00
|
|
|
nsAppDirectoryServiceDefs.h \
|
|
|
|
nsDirectoryService.h \
|
2010-03-08 07:44:59 -08:00
|
|
|
nsDirectoryServiceAtomList.h \
|
2007-03-22 10:30:00 -07:00
|
|
|
nsEscape.h \
|
|
|
|
nsLinebreakConverter.h \
|
|
|
|
nsLocalFile.h \
|
|
|
|
nsMultiplexInputStream.h \
|
2009-05-13 20:22:54 -07:00
|
|
|
nsNativeCharsetUtils.h \
|
2007-03-22 10:30:00 -07:00
|
|
|
nsScriptableInputStream.h \
|
|
|
|
nsStorageStream.h \
|
|
|
|
nsStringStream.h \
|
|
|
|
nsStreamUtils.h \
|
2012-09-20 00:55:36 -07:00
|
|
|
nsUnicharInputStream.h \
|
2009-05-13 20:22:54 -07:00
|
|
|
nsWildCard.h \
|
2012-09-20 00:55:36 -07:00
|
|
|
SpecialSystemDirectory.h \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
EXPORTS += nsLocalFileOS2.h
|
|
|
|
else
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
EXPORTS += nsLocalFileWin.h
|
|
|
|
else
|
|
|
|
EXPORTS += nsLocalFileUnix.h
|
|
|
|
endif # windows
|
|
|
|
endif # os2
|
|
|
|
|
2011-06-08 11:08:31 -07:00
|
|
|
EXPORTS_NAMESPACES = mozilla
|
|
|
|
EXPORTS_mozilla = \
|
|
|
|
Base64.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
XPIDLSRCS = \
|
|
|
|
nsIBinaryInputStream.idl \
|
|
|
|
nsIBinaryOutputStream.idl \
|
|
|
|
nsIDirectoryEnumerator.idl \
|
|
|
|
nsIInputStreamTee.idl \
|
|
|
|
nsILocalFileWin.idl \
|
|
|
|
nsILineInputStream.idl \
|
|
|
|
nsIUnicharLineInputStream.idl \
|
|
|
|
nsISimpleUnicharStreamFactory.idl \
|
|
|
|
nsIMultiplexInputStream.idl \
|
|
|
|
nsIObjectInputStream.idl \
|
|
|
|
nsIObjectOutputStream.idl \
|
|
|
|
nsIPipe.idl \
|
|
|
|
nsISeekableStream.idl \
|
|
|
|
nsIStorageStream.idl \
|
|
|
|
nsIStringStream.idl \
|
|
|
|
nsIStreamBufferAccess.idl \
|
|
|
|
nsIAsyncInputStream.idl \
|
|
|
|
nsIAsyncOutputStream.idl \
|
|
|
|
nsIUnicharInputStream.idl \
|
|
|
|
nsIUnicharOutputStream.idl \
|
|
|
|
nsIConverterInputStream.idl \
|
|
|
|
nsIConverterOutputStream.idl \
|
2009-05-07 12:21:54 -07:00
|
|
|
nsIIOUtil.idl \
|
2009-08-06 13:34:46 -07:00
|
|
|
nsISafeOutputStream.idl \
|
2011-06-08 11:08:31 -07:00
|
|
|
nsIScriptableBase64Encoder.idl \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
XPIDLSRCS += nsILocalFileOS2.idl
|
|
|
|
else
|
2008-02-26 18:03:08 -08:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2007-03-22 10:30:00 -07:00
|
|
|
XPIDLSRCS += nsILocalFileMac.idl
|
2008-02-26 18:03:08 -08:00
|
|
|
endif # cocoa
|
2007-03-22 10:30:00 -07:00
|
|
|
endif # os2
|
|
|
|
|
|
|
|
SDK_XPIDLSRCS = \
|
|
|
|
nsIDirectoryService.idl \
|
|
|
|
nsIFile.idl \
|
|
|
|
nsILocalFile.idl \
|
|
|
|
nsIInputStream.idl \
|
|
|
|
nsIOutputStream.idl \
|
|
|
|
nsIScriptableInputStream.idl \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SDK_HEADERS = \
|
|
|
|
nsDirectoryServiceDefs.h \
|
|
|
|
nsDirectoryServiceUtils.h \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
|
|
|
|
|
|
|
# we don't want the shared lib, but we want to force the creation of a static lib.
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2010-10-21 11:36:13 -07:00
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
DEFINES += -D_IMPL_NS_COM
|
|
|
|
|
2009-07-08 00:59:01 -07:00
|
|
|
ifeq ($(OS_ARCH),Linux)
|
|
|
|
ifneq (,$(findstring lib64,$(libdir)))
|
|
|
|
DEFINES += -DHAVE_USR_LIB64_DIR
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2010-10-21 11:36:13 -07:00
|
|
|
LOCAL_INCLUDES += -I..
|
2009-07-16 12:40:28 -07:00
|
|
|
|
2010-07-30 12:46:20 -07:00
|
|
|
ifeq ($(MOZ_PLATFORM_MAEMO),5)
|
|
|
|
CFLAGS += $(MOZ_DBUS_CFLAGS)
|
|
|
|
CXXFLAGS += $(MOZ_DBUS_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_PLATFORM_MAEMO
|
2011-02-02 22:31:36 -08:00
|
|
|
CFLAGS += $(MOZ_PLATFORM_MAEMO_CFLAGS) $(MOZ_QT_CFLAGS)
|
|
|
|
CXXFLAGS += $(MOZ_PLATFORM_MAEMO_CFLAGS) $(MOZ_QT_CFLAGS)
|
2009-07-16 12:40:28 -07:00
|
|
|
endif
|
|
|
|
|