making compile on unix

(NOT PART OF BUILD)
This commit is contained in:
dougt%netscape.com 2000-07-19 21:20:35 +00:00
Родитель cddc9ce8cd
Коммит 84a45a461c
7 изменённых файлов: 141 добавлений и 3 удалений

Просмотреть файл

@ -0,0 +1,42 @@
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH =../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
EXPORTS = \
nsAppFileLocationProvider.h \
nsAppFileLocProviderCID.h \
$(NULL)
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -0,0 +1,39 @@
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = xpfelocations
LIBRARY_NAME = xpfelocation_s
CPPSRCS = nsAppFileLocationProvider.cpp
# we don't want the shared lib
override NO_SHARED_LIB=1
override NO_STATIC_LIB=
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -40,6 +40,11 @@ static nsresult GetMacFolder(OSType folderType, nsILocalFile** aFile);
#include <windows.h>
#include <shlobj.h>
static nsresult GetWindowsFolder(int folder, nsILocalFile** aFile);
#elif defined(XP_UNIX)
#include <unistd.h>
#include <stdlib.h>
#include <sys/param.h>
#include <prenv.h>
#endif
static nsresult GetChromeLocale(PRUnichar** localeName);
static nsresult GetCurrentProcessDirectory(nsILocalFile** aFile);
@ -479,7 +484,7 @@ static nsresult GetDefaultUserProfileRoot(nsILocalFile **aLocalFile)
NS_ENSURE_SUCCESS(rv, rv);
}
#elif defined(XP_UNIX)
rv = NS_NewLocalFile(PR_GetEnv("HOME"), aLocalFile);
rv = NS_NewLocalFile(PR_GetEnv("HOME"), PR_TRUE, aLocalFile);
NS_ENSURE_SUCCESS(rv, rv);
pLocalFile = *aLocalFile;
pLocalFile->AppendRelativePath(".mozilla");

Просмотреть файл

@ -40,6 +40,11 @@ static nsresult GetMacFolder(OSType folderType, nsILocalFile** aFile);
#include <windows.h>
#include <shlobj.h>
static nsresult GetWindowsFolder(int folder, nsILocalFile** aFile);
#elif defined(XP_UNIX)
#include <unistd.h>
#include <stdlib.h>
#include <sys/param.h>
#include <prenv.h>
#endif
static nsresult GetChromeLocale(PRUnichar** localeName);
static nsresult GetCurrentProcessDirectory(nsILocalFile** aFile);
@ -479,7 +484,7 @@ static nsresult GetDefaultUserProfileRoot(nsILocalFile **aLocalFile)
NS_ENSURE_SUCCESS(rv, rv);
}
#elif defined(XP_UNIX)
rv = NS_NewLocalFile(PR_GetEnv("HOME"), aLocalFile);
rv = NS_NewLocalFile(PR_GetEnv("HOME"), PR_TRUE, aLocalFile);
NS_ENSURE_SUCCESS(rv, rv);
pLocalFile = *aLocalFile;
pLocalFile->AppendRelativePath(".mozilla");

Просмотреть файл

@ -0,0 +1,42 @@
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH =../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
EXPORTS = \
nsAppFileLocationProvider.h \
nsAppFileLocProviderCID.h \
$(NULL)
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
include $(topsrcdir)/config/rules.mk

Просмотреть файл

Просмотреть файл

@ -40,6 +40,11 @@ static nsresult GetMacFolder(OSType folderType, nsILocalFile** aFile);
#include <windows.h>
#include <shlobj.h>
static nsresult GetWindowsFolder(int folder, nsILocalFile** aFile);
#elif defined(XP_UNIX)
#include <unistd.h>
#include <stdlib.h>
#include <sys/param.h>
#include <prenv.h>
#endif
static nsresult GetChromeLocale(PRUnichar** localeName);
static nsresult GetCurrentProcessDirectory(nsILocalFile** aFile);
@ -479,7 +484,7 @@ static nsresult GetDefaultUserProfileRoot(nsILocalFile **aLocalFile)
NS_ENSURE_SUCCESS(rv, rv);
}
#elif defined(XP_UNIX)
rv = NS_NewLocalFile(PR_GetEnv("HOME"), aLocalFile);
rv = NS_NewLocalFile(PR_GetEnv("HOME"), PR_TRUE, aLocalFile);
NS_ENSURE_SUCCESS(rv, rv);
pLocalFile = *aLocalFile;
pLocalFile->AppendRelativePath(".mozilla");