mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
add missing files
bug 241384 nsProfileDirServiceProvider should be GRE friendly patch by marco@gnome.org r=ccarlen sr=darin
This commit is contained in:
parent
0794901713
commit
f97bbbc699
69
profile/dirserviceprovider/src/nsProfileStringTypes.h
Normal file
69
profile/dirserviceprovider/src/nsProfileStringTypes.h
Normal file
@ -0,0 +1,69 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Marco Pesenti Gritti <marco@gnome.org>.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2004
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either 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.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/**
|
||||
* We support two builds of the directory service provider.
|
||||
* One, linked into the profile component, uses the internal
|
||||
* string API. The other can be used by standalone embedding
|
||||
* clients, and uses embed strings.
|
||||
* To keep the code clean, we are using typedefs to equate
|
||||
* embed/internal string types. We are also defining some
|
||||
* internal macros in terms of the embedding strings API.
|
||||
*
|
||||
* When modifying the profile directory service provider, be
|
||||
* sure to use methods supported by both the internal and
|
||||
* embed strings APIs.
|
||||
*/
|
||||
|
||||
#ifdef STANDALONE_PROFILEDIRSERVICE
|
||||
#include "nsEmbedString.h"
|
||||
|
||||
typedef nsEmbedString nsString;
|
||||
typedef nsEmbedCString nsPromiseFlatCString;
|
||||
typedef nsEmbedCString nsCAutoString;
|
||||
|
||||
#define NS_LITERAL_CSTRING nsEmbedCString
|
||||
#define EmptyString nsEmbedString
|
||||
#define PromiseFlatCString nsEmbedCString
|
||||
#define NS_NAMED_LITERAL_STRING(stringname, filename) \
|
||||
nsEmbedString stringname; \
|
||||
NS_CStringToUTF16(nsEmbedCString(filename), \
|
||||
NS_CSTRING_ENCODING_ASCII, stringname);
|
||||
#else
|
||||
#include "nsString.h"
|
||||
#include "nsPromiseFlatString.h"
|
||||
#endif
|
46
profile/dirserviceprovider/src/objs.mk
Normal file
46
profile/dirserviceprovider/src/objs.mk
Normal file
@ -0,0 +1,46 @@
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Marco Pesenti Gritti <marco@gnome.org>
|
||||
# Portions created by the Initial Developer are Copyright (C) 2004
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either 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.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
MODULES_PROFILEDIRSERVICE_SRC_LCSRCS = \
|
||||
nsProfileDirServiceProvider.cpp \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_PROFILELOCKING
|
||||
MODULES_PROFILEDIRSERVICE_SRC_LCSRCS += nsProfileLock.cpp
|
||||
endif
|
||||
|
||||
MODULES_PROFILEDIRSERVICE_SRC_CSRCS := $(addprefix $(topsrcdir)/profile/dirserviceprovider/src/, $(MODULES_PROFILEDIRSERVICE_SRC_LCSRCS))
|
69
profile/dirserviceprovider/standalone/Makefile.in
Normal file
69
profile/dirserviceprovider/standalone/Makefile.in
Normal file
@ -0,0 +1,69 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Marco Pesenti Gritti <marco@gnome.org>
|
||||
# Portions created by the Initial Developer are Copyright (C) 2004
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either 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.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
include $(srcdir)/../src/objs.mk
|
||||
|
||||
MODULE = profdirserviceprovider
|
||||
LIBRARY_NAME = profdirserviceprovidersa_s
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_PROFILESHARING
|
||||
REQUIRES += ipcd \
|
||||
profilesharingsetup \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
CPPSRCS = $(MODULES_PROFILEDIRSERVICE_SRC_LCSRCS)
|
||||
|
||||
# we don't want the shared lib
|
||||
FORCE_STATIC_LIB = 1
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
DEFINES += -DSTANDALONE_PROFILEDIRSERVICE
|
||||
|
||||
LOCAL_INCLUDES = -I$(srcdir)/../src
|
||||
|
||||
export:: $(MODULES_PROFILEDIRSERVICE_SRC_CSRCS)
|
||||
$(INSTALL) $^ .
|
Loading…
Reference in New Issue
Block a user