mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Adding UNIX makefiles.
making compile on unix (NOT PART OF BUILD)
This commit is contained in:
parent
4cb24c2203
commit
780e01b652
42
modules/appfilelocprovider/public/Makefile.in
Normal file
42
modules/appfilelocprovider/public/Makefile.in
Normal file
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
39
modules/appfilelocprovider/src/Makefile.in
Normal file
39
modules/appfilelocprovider/src/Makefile.in
Normal file
@ -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");
|
||||
|
42
xpfe/appfilelocprovider/public/Makefile.in
Normal file
42
xpfe/appfilelocprovider/public/Makefile.in
Normal file
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
39
xpfe/appfilelocprovider/src/Makefile.in
Normal file
39
xpfe/appfilelocprovider/src/Makefile.in
Normal file
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user