Compare commits

..

1 Commits

Author SHA1 Message Date
(no author)
a6b98be20b This commit was manufactured by cvs2svn to create tag 'build'.
git-svn-id: svn://10.0.0.236/tags/build@7070 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 21:41:57 +00:00
2 changed files with 171 additions and 105 deletions

View File

@@ -1,105 +0,0 @@
/*
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 Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
#ifndef __JavaDOMGlobals_h__
#define __JavaDOMGlobals_h__
#include "jni.h"
#include "prclist.h"
#include "nsError.h"
#ifdef ERROR
#undef ERROR
#endif
class nsISupports;
class nsIDOMNode;
struct PRLogModuleInfo;
struct PRLock;
class JavaDOMGlobals {
public:
static jclass attrClass;
static jclass cDataSectionClass;
static jclass commentClass;
static jclass documentClass;
static jclass documentFragmentClass;
static jclass documentTypeClass;
static jclass domImplementationClass;
static jclass elementClass;
static jclass entityClass;
static jclass entityReferenceClass;
static jclass namedNodeMapClass;
static jclass nodeClass;
static jclass nodeListClass;
static jclass notationClass;
static jclass processingInstructionClass;
static jclass textClass;
static jfieldID nodePtrFID;
static jfieldID nodeListPtrFID;
static jfieldID domImplementationPtrFID;
static jfieldID nodeTypeAttributeFID;
static jfieldID nodeTypeCDataSectionFID;
static jfieldID nodeTypeCommentFID;
static jfieldID nodeTypeDocumentFragmentFID;
static jfieldID nodeTypeDocumentFID;
static jfieldID nodeTypeDocumentTypeFID;
static jfieldID nodeTypeElementFID;
static jfieldID nodeTypeEntityFID;
static jfieldID nodeTypeEntityReferenceFID;
static jfieldID nodeTypeNotationFID;
static jfieldID nodeTypeProcessingInstructionFID;
static jfieldID nodeTypeTextFID;
static jclass domExceptionClass;
static jmethodID domExceptionInitMID;
static jclass runtimeExceptionClass;
static jmethodID runtimeExceptionInitMID;
static const char* const DOM_EXCEPTION_MESSAGE[];
typedef enum ExceptionType { EXCEPTION_RUNTIME,
EXCEPTION_DOM } ExceptionType;
static PRLogModuleInfo* log;
static PRCList garbage;
static PRLock* garbageLock;
static PRInt32 javaMaxInt;
static void Initialize(JNIEnv *env);
static void Destroy(JNIEnv *env);
static jobject CreateNodeSubtype(JNIEnv *env,
nsIDOMNode *node);
static void AddToGarbage(nsISupports* domObject);
static void TakeOutGarbage();
static void ThrowException(JNIEnv *env,
const char * message = NULL,
nsresult rv = NS_OK,
ExceptionType exceptionType = EXCEPTION_RUNTIME);
};
#endif /* __JavaDOMGlobals_h__ */

171
mozilla/nglayout.mk Normal file
View File

@@ -0,0 +1,171 @@
#!gmake
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH=.
#
# Command macro defines
#
CVSCO = cvs -q co -P
THIS_MAKEFILE = nglayout.mk
# Branch tags we use
NETLIB_BRANCH =
LIBPREF_BRANCH = XPCOM_BRANCH
PLUGIN_BRANCH =
# CVS commands to pull the appropriate branch versions
CVSCO_LIBPREF = $(CVSCO) -r $(LIBPREF_BRANCH)
CVSCO_IMGLIB = $(CVSCO)
CVSCO_NETLIB = $(CVSCO)
CVSCO_NGLAYOUT = $(CVSCO)
CVSCO_LIZARD = $(CVSCO)
CVSCO_PLUGIN = $(CVSCO) -A
# The list of directories that need to be built to build the standalone
# nglayout test program. The order is important.
DIRS = \
config \
dbm \
nsprpub \
jpeg \
modules/libreg \
xpcom \
modules/zlib \
modules/libutil \
sun-java \
nav-java \
js \
modules/security/freenav \
modules/libpref \
modules/libimg \
modules/plugin \
base \
lib/xp \
lib/libpwcac \
network \
lib/liblayer/include \
htmlparser \
dom \
gfx \
view \
widget \
layout \
webshell
include $(DEPTH)/config/config.mk
include $(DEPTH)/config/rules.mk
real_all: all
real_export: export
real_libs: libs
real_install: install
real_clobber: clobber
real_depend: depend
#
# Rules for pulling the source from the cvs repository
#
pull_all: pull_lizard pull_xpcom pull_imglib pull_netlib pull_nglayout pull_plugin
pull_lizard:
cd $(MOZ_SRC)/.; \
$(CVSCO_LIZARD) mozilla/config; \
$(CVSCO_LIZARD) mozilla/dbm; \
$(CVSCO_LIZARD) mozilla/build/build_number; \
$(CVSCO_LIZARD) mozilla/cmd/xfe/icons/icondata.h; \
$(CVSCO_LIZARD) mozilla/lib/liblayer; \
$(CVSCO_LIZARD) mozilla/modules/zlib; \
$(CVSCO_LIZARD) mozilla/modules/libutil; \
$(CVSCO_LIZARD) mozilla/nsprpub; \
$(CVSCO_LIZARD) mozilla/sun-java; \
$(CVSCO_LIZARD) mozilla/nav-java; \
$(CVSCO_LIZARD) mozilla/js; \
$(CVSCO_LIZARD) mozilla/modules/security/freenav; \
pull_xpcom:
cd $(MOZ_SRC)/.; \
$(CVSCO) -A mozilla/modules/libreg; \
$(CVSCO) -A mozilla/xpcom; \
$(CVSCO_LIBPREF) mozilla/modules/libpref
pull_imglib:
cd $(MOZ_SRC)/.; \
$(CVSCO_IMGLIB) mozilla/jpeg; \
$(CVSCO_IMGLIB) mozilla/modules/libutil; \
$(CVSCO_IMGLIB) mozilla/modules/libimg
pull_plugin:
cd $(MOZ_SRC)/.; \
$(CVSCO_PLUGIN) mozilla/modules/plugin
pull_netlib:
cd $(MOZ_SRC)/.; \
$(CVSCO_NETLIB) mozilla/lib/xp; \
$(CVSCO_NETLIB) mozilla/lib/libpwcac; \
$(CVSCO_NETLIB) mozilla/network; \
$(CVSCO_NETLIB) mozilla/include
pull_nglayout:
cd $(MOZ_SRC)/.; \
$(CVSCO_NGLAYOUT) mozilla/base; \
$(CVSCO_NGLAYOUT) mozilla/dom; \
$(CVSCO_NGLAYOUT) mozilla/gfx; \
$(CVSCO_NGLAYOUT) mozilla/htmlparser; \
$(CVSCO_NGLAYOUT) mozilla/layout; \
$(CVSCO_NGLAYOUT) mozilla/view; \
$(CVSCO_NGLAYOUT) mozilla/webshell; \
$(CVSCO_NGLAYOUT) mozilla/widget
pull_doc:
cd $(MOZ_SRC)/.; \
$(CVSCO_NGLAYOUT) README/nglayout; \
$(CVSCO_NGLAYOUT) mozilla/LICENSE; \
$(CVSCO_NGLAYOUT) mozilla/LEGAL
######################################################################
#
# Build tarball
DATE_CMD=date
DATE=$(shell $(DATE_CMD) +%Y%m%d)
TAR = tar
GZIP = gzip
TARBALL = $(MOZ_SRC)/unix-$(DATE).tar
TARFILES = mozilla README/nglayout
tarball: pull_all pull_doc clobber clobber_all real_tar
real_tar:
@echo Making $(TARBALL)
cd $(MOZ_SRC)/.; \
rm -f $(TARBALL) $(TARBALL).gz; \
$(TAR) cf $(TARBALL) $(TARFILES)
@echo Making gzip of $(TARBALL); \
cd $(MOZ_SRC)/.; \
$(GZIP) -9 -q $(TARBALL)