2005-04-23 05:41:42 +04:00
|
|
|
#
|
2004-04-18 18:21:17 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1999-05-18 13:11:01 +04:00
|
|
|
#
|
2004-04-18 18:21:17 +04:00
|
|
|
# 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.
|
1999-05-18 13:11:01 +04:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-04-18 18:21:17 +04:00
|
|
|
# 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):
|
1999-11-06 06:43:54 +03:00
|
|
|
#
|
2004-04-18 18:21:17 +04:00
|
|
|
# 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.
|
1999-09-18 06:12:56 +04:00
|
|
|
#
|
2004-04-18 18:21:17 +04:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1999-05-18 13:11:01 +04:00
|
|
|
|
1999-09-18 06:12:56 +04:00
|
|
|
DEPTH = ../..
|
1999-05-18 13:11:01 +04:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
1999-09-18 06:12:56 +04:00
|
|
|
MODULE = xpcom
|
|
|
|
XPIDL_MODULE = xpcom_io
|
|
|
|
LIBRARY_NAME = xpcomio_s
|
2002-12-28 04:15:07 +03:00
|
|
|
GRE_MODULE = 1
|
2005-04-01 22:22:57 +04:00
|
|
|
MOZILLA_INTERNAL_API = 1
|
2002-05-01 00:57:35 +04:00
|
|
|
REQUIRES = string \
|
2001-09-18 17:41:47 +04:00
|
|
|
$(NULL)
|
1999-09-18 06:12:56 +04:00
|
|
|
|
2002-09-25 16:23:39 +04:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
REQUIRES += macmorefiles
|
|
|
|
endif
|
|
|
|
|
1999-09-18 06:12:56 +04:00
|
|
|
CPPSRCS = \
|
2001-07-31 23:05:34 +04:00
|
|
|
nsAppFileLocationProvider.cpp \
|
|
|
|
nsBinaryStream.cpp \
|
2000-01-25 00:28:28 +03:00
|
|
|
nsDirectoryService.cpp \
|
1999-09-18 06:12:56 +04:00
|
|
|
nsEscape.cpp \
|
2001-07-31 23:05:34 +04:00
|
|
|
nsInputStreamTee.cpp \
|
|
|
|
nsLinebreakConverter.cpp \
|
|
|
|
nsLocalFileCommon.cpp \
|
2002-02-16 04:19:24 +03:00
|
|
|
nsMultiplexInputStream.cpp \
|
2003-01-18 05:15:14 +03:00
|
|
|
nsPipe3.cpp \
|
|
|
|
nsStreamUtils.cpp \
|
2001-07-31 23:05:34 +04:00
|
|
|
nsScriptableInputStream.cpp \
|
|
|
|
nsSegmentedBuffer.cpp \
|
2003-03-15 04:04:32 +03:00
|
|
|
SpecialSystemDirectory.cpp \
|
2000-01-25 00:28:28 +03:00
|
|
|
nsStorageStream.cpp \
|
2003-03-15 04:04:32 +03:00
|
|
|
nsStringStream.cpp \
|
2001-07-31 23:05:34 +04:00
|
|
|
nsUnicharInputStream.cpp \
|
2002-06-10 22:50:11 +04:00
|
|
|
nsNativeCharsetUtils.cpp \
|
1999-09-18 06:12:56 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2005-12-01 20:37:21 +03:00
|
|
|
ifndef MOZ_NO_FAST_LOAD
|
|
|
|
CPPSRCS += \
|
|
|
|
nsFastLoadFile.cpp \
|
|
|
|
nsFastLoadService.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2000-05-02 05:18:46 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
CPPSRCS += nsLocalFileOS2.cpp
|
2002-09-25 16:23:39 +04:00
|
|
|
else
|
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
CPPSRCS += nsLocalFileOSX.cpp
|
2000-05-02 05:18:46 +04:00
|
|
|
else
|
2001-12-09 10:05:12 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
2006-03-22 07:26:30 +03:00
|
|
|
CPPSRCS += nsWinAPIs.cpp
|
2001-12-09 10:05:12 +03:00
|
|
|
CPPSRCS += nsLocalFileWin.cpp
|
|
|
|
else
|
2000-05-02 05:18:46 +04:00
|
|
|
CPPSRCS += nsLocalFileUnix.cpp
|
2001-12-09 10:05:12 +03:00
|
|
|
endif # windows
|
2002-09-25 16:23:39 +04:00
|
|
|
endif # mac
|
2001-12-09 10:05:12 +03:00
|
|
|
endif # OS2
|
2000-05-02 05:18:46 +04:00
|
|
|
|
1999-09-18 06:12:56 +04:00
|
|
|
EXPORTS = \
|
2001-07-31 23:05:34 +04:00
|
|
|
nsAppDirectoryServiceDefs.h \
|
2000-01-25 00:28:28 +03:00
|
|
|
nsDirectoryService.h \
|
2001-07-31 23:05:34 +04:00
|
|
|
nsEscape.h \
|
|
|
|
nsFastLoadPtr.h \
|
|
|
|
nsFastLoadService.h \
|
|
|
|
nsLinebreakConverter.h \
|
|
|
|
nsLocalFile.h \
|
2003-01-18 05:15:14 +03:00
|
|
|
nsMultiplexInputStream.h \
|
2000-08-10 08:53:37 +04:00
|
|
|
nsScriptableInputStream.h \
|
1999-12-07 03:05:37 +03:00
|
|
|
nsStorageStream.h \
|
2000-05-12 11:46:13 +04:00
|
|
|
nsStringIO.h \
|
2003-03-15 04:04:32 +03:00
|
|
|
nsStringStream.h \
|
2003-01-18 05:15:14 +03:00
|
|
|
nsStreamUtils.h \
|
2003-04-30 10:49:04 +04:00
|
|
|
nsNativeCharsetUtils.h \
|
1999-09-18 06:12:56 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2000-05-02 05:18:46 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
EXPORTS += nsLocalFileOS2.h
|
|
|
|
else
|
2002-09-25 16:23:39 +04:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
EXPORTS += nsLocalFileOSX.h
|
|
|
|
else
|
2001-12-09 10:05:12 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
2006-03-22 07:26:30 +03:00
|
|
|
EXPORTS += nsLocalFileWin.h nsWinAPIs.h
|
2001-12-09 10:05:12 +03:00
|
|
|
else
|
2000-05-02 05:18:46 +04:00
|
|
|
EXPORTS += nsLocalFileUnix.h
|
2001-12-09 10:05:12 +03:00
|
|
|
endif # windows
|
2002-09-25 16:23:39 +04:00
|
|
|
endif # mac
|
2001-12-09 10:05:12 +03:00
|
|
|
endif # os2
|
2000-05-02 05:18:46 +04:00
|
|
|
|
1999-09-18 06:12:56 +04:00
|
|
|
XPIDLSRCS = \
|
2000-01-25 00:28:28 +03:00
|
|
|
nsIBinaryInputStream.idl \
|
|
|
|
nsIBinaryOutputStream.idl \
|
2005-04-23 05:39:51 +04:00
|
|
|
nsIDirectoryEnumerator.idl \
|
2001-07-31 23:05:34 +04:00
|
|
|
nsIFastLoadFileControl.idl \
|
|
|
|
nsIFastLoadService.idl \
|
|
|
|
nsIInputStreamTee.idl \
|
2005-02-25 12:00:45 +03:00
|
|
|
nsILocalFileWin.idl \
|
2001-07-31 23:05:34 +04:00
|
|
|
nsILineInputStream.idl \
|
2005-06-24 23:44:50 +04:00
|
|
|
nsIUnicharLineInputStream.idl \
|
2006-07-21 20:28:51 +04:00
|
|
|
nsISimpleUnicharStreamFactory.idl \
|
2002-02-16 04:19:24 +03:00
|
|
|
nsIMultiplexInputStream.idl \
|
2001-07-31 23:05:34 +04:00
|
|
|
nsIObjectInputStream.idl \
|
|
|
|
nsIObjectOutputStream.idl \
|
2000-01-25 00:28:28 +03:00
|
|
|
nsIPipe.idl \
|
2001-07-31 23:05:34 +04:00
|
|
|
nsISeekableStream.idl \
|
2000-01-25 00:28:28 +03:00
|
|
|
nsIStorageStream.idl \
|
2001-11-22 03:08:14 +03:00
|
|
|
nsIStringStream.idl \
|
2003-03-15 04:04:32 +03:00
|
|
|
nsIStreamBufferAccess.idl \
|
2003-01-18 05:15:14 +03:00
|
|
|
nsIAsyncInputStream.idl \
|
|
|
|
nsIAsyncOutputStream.idl \
|
2005-06-24 23:44:50 +04:00
|
|
|
nsIUnicharInputStream.idl \
|
|
|
|
nsIUnicharOutputStream.idl \
|
|
|
|
nsIConverterInputStream.idl \
|
|
|
|
nsIConverterOutputStream.idl \
|
2001-07-31 23:05:34 +04:00
|
|
|
$(NULL)
|
1999-09-18 06:12:56 +04:00
|
|
|
|
2005-04-22 17:21:23 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
XPIDLSRCS += nsILocalFileOS2.idl
|
|
|
|
else
|
2002-09-25 16:23:39 +04:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
2003-03-15 04:04:32 +03:00
|
|
|
XPIDLSRCS += nsILocalFileMac.idl
|
2005-04-22 17:21:23 +04:00
|
|
|
endif # mac
|
|
|
|
endif # os2
|
2002-09-25 16:23:39 +04:00
|
|
|
|
2002-02-26 02:20:01 +03:00
|
|
|
SDK_XPIDLSRCS = \
|
|
|
|
nsIDirectoryService.idl \
|
2002-09-14 01:39:07 +04:00
|
|
|
nsIFile.idl \
|
|
|
|
nsILocalFile.idl \
|
|
|
|
nsIInputStream.idl \
|
|
|
|
nsIOutputStream.idl \
|
|
|
|
nsIScriptableInputStream.idl \
|
2002-02-26 02:20:01 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2002-09-27 17:07:01 +04:00
|
|
|
SDK_HEADERS = \
|
|
|
|
nsDirectoryServiceDefs.h \
|
2005-04-06 07:35:24 +04:00
|
|
|
nsDirectoryServiceUtils.h \
|
2002-09-27 17:07:01 +04:00
|
|
|
$(NULL)
|
|
|
|
|
1999-09-18 06:12:56 +04:00
|
|
|
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
1999-05-18 13:11:01 +04:00
|
|
|
|
|
|
|
# we don't want the shared lib, but we want to force the creation of a static lib.
|
2001-06-19 02:10:38 +04:00
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
|
|
|
|
# Force use of PIC
|
|
|
|
FORCE_USE_PIC = 1
|
1999-05-18 13:11:01 +04:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2002-07-31 01:30:05 +04:00
|
|
|
DEFINES += -D_IMPL_NS_COM
|
1999-09-18 06:12:56 +04:00
|
|
|
|
2003-07-04 00:55:23 +04:00
|
|
|
LOCAL_INCLUDES = -I..
|