2004-11-24 20:47:23 +00:00
|
|
|
# vim:set ts=8 sw=8 sts=8 noet:
|
2004-10-13 09:51:52 +00:00
|
|
|
#
|
|
|
|
# ***** 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
|
|
|
|
# IBM Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2004
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Brian Ryner <bryner@brianryner.com>
|
2005-10-19 07:11:06 +00:00
|
|
|
# Allan Beaufour <allan@beaufour.dk>
|
2004-10-13 09:51:52 +00: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.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2005-10-19 07:11:06 +00:00
|
|
|
# Module setup
|
2004-10-13 09:51:52 +00:00
|
|
|
MODULE = xforms
|
|
|
|
LIBRARY_NAME = xforms
|
|
|
|
IS_COMPONENT = 1
|
2005-12-02 16:38:32 +00:00
|
|
|
ifndef MINIMO
|
2005-01-28 19:22:21 +00:00
|
|
|
# Do not set EXPORT_LIBRARY as we do not want xforms in the static libs list
|
|
|
|
#EXPORT_LIBRARY = 1
|
|
|
|
FORCE_SHARED_LIB = 1
|
2005-12-02 16:38:32 +00:00
|
|
|
else
|
|
|
|
MODULE_NAME = xforms
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
endif
|
2005-04-04 18:38:19 +00:00
|
|
|
MOZILLA_INTERNAL_API = 1
|
2004-10-13 09:51:52 +00:00
|
|
|
|
2005-10-19 07:11:06 +00:00
|
|
|
# Also build schema-validation
|
|
|
|
DIRS = ../schema-validation \
|
|
|
|
$(NULL)
|
2005-10-25 16:54:41 +00:00
|
|
|
|
2005-12-02 16:38:32 +00:00
|
|
|
ifndef MINIMO
|
2005-10-25 16:54:41 +00:00
|
|
|
ifdef MOZ_XUL_APP
|
2005-10-19 07:11:06 +00:00
|
|
|
# XPI settings
|
|
|
|
# XPI_NAME is exported to include schema-validation in xforms package
|
|
|
|
export XPI_NAME = xforms
|
|
|
|
XPI_PKGNAME = xforms
|
|
|
|
USE_EXTENSION_MANIFEST = 1
|
|
|
|
NO_JAR_AUTO_REG = 1
|
|
|
|
INSTALL_EXTENSION_ID = {cf2812dc-6a7c-4402-b639-4d277dac4c36}
|
2006-09-22 17:56:55 +00:00
|
|
|
PACKAGE_VERSION = 0.7
|
2005-10-19 07:11:06 +00:00
|
|
|
|
2006-02-06 19:07:40 +00:00
|
|
|
# We want to strip the XPI
|
|
|
|
STRIP_XPI = 1
|
|
|
|
|
2005-10-19 07:11:06 +00:00
|
|
|
XULAPP_DEFINES = \
|
|
|
|
-DFIREFOX_VERSION=$(FIREFOX_VERSION) \
|
2006-02-17 10:04:39 +00:00
|
|
|
-DMOZILLA_VERSION_U=$(MOZILLA_VERSION_U) \
|
|
|
|
-DSEAMONKEY_VERSION=$(SEAMONKEY_VERSION) \
|
|
|
|
-DBUILD_ID=$(BUILD_ID) \
|
2005-10-19 07:11:06 +00:00
|
|
|
-DPACKAGE_VERSION=$(PACKAGE_VERSION) \
|
|
|
|
-DID=${INSTALL_EXTENSION_ID} \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# Include these in the XPI
|
|
|
|
DIST_FILES = install.rdf install.js
|
2005-10-25 16:54:41 +00:00
|
|
|
endif
|
2005-12-02 16:38:32 +00:00
|
|
|
endif
|
2005-10-19 07:11:06 +00:00
|
|
|
|
|
|
|
# XForms depends
|
2004-10-13 09:51:52 +00:00
|
|
|
REQUIRES = \
|
|
|
|
xpcom \
|
|
|
|
string \
|
|
|
|
content \
|
|
|
|
dom \
|
|
|
|
widget \
|
|
|
|
necko \
|
|
|
|
websrvcs \
|
|
|
|
docshell \
|
|
|
|
mimetype \
|
2004-10-20 21:43:10 +00:00
|
|
|
caps \
|
|
|
|
xpconnect \
|
|
|
|
js \
|
2004-12-15 02:08:53 +00:00
|
|
|
layout \
|
2005-01-27 23:02:27 +00:00
|
|
|
transformiix \
|
2005-01-19 16:05:31 +00:00
|
|
|
schemavalidation \
|
2005-01-29 23:53:32 +00:00
|
|
|
intl \
|
2005-06-28 16:30:50 +00:00
|
|
|
pref \
|
2005-06-29 18:14:43 +00:00
|
|
|
htmlparser \
|
2005-10-23 04:24:23 +00:00
|
|
|
exthandler \
|
2004-10-13 09:51:52 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2005-10-19 07:11:06 +00:00
|
|
|
# XForms IDLs
|
2004-10-26 00:34:03 +00:00
|
|
|
XPIDLSRCS = \
|
|
|
|
nsIXFormsModelElement.idl \
|
2005-10-25 17:29:56 +00:00
|
|
|
nsIXFormsNSModelElement.idl \
|
2004-10-26 00:34:03 +00:00
|
|
|
nsIModelElementPrivate.idl \
|
2006-03-17 02:19:07 +00:00
|
|
|
nsIXFormsNSInstanceElement.idl \
|
|
|
|
nsIInstanceElementPrivate.idl \
|
2004-10-26 00:34:03 +00:00
|
|
|
nsIXFormsControl.idl \
|
2004-11-24 20:47:23 +00:00
|
|
|
nsIXFormsContextControl.idl \
|
2004-11-05 02:15:01 +00:00
|
|
|
nsIXFormsActionElement.idl \
|
|
|
|
nsIXFormsActionModuleElement.idl \
|
2004-12-15 02:08:53 +00:00
|
|
|
nsIXFormsSwitchElement.idl \
|
|
|
|
nsIXFormsCaseElement.idl \
|
2005-08-09 19:17:18 +00:00
|
|
|
nsIXFormsCaseUIElement.idl \
|
2005-01-15 01:04:02 +00:00
|
|
|
nsIXFormsSelectChild.idl \
|
|
|
|
nsIXFormsValueElement.idl \
|
2005-02-18 09:38:32 +00:00
|
|
|
nsIXFormsRepeatElement.idl \
|
|
|
|
nsIXFormsRepeatItemElement.idl \
|
2005-02-18 11:16:15 +00:00
|
|
|
nsIXFormsSubmitElement.idl \
|
|
|
|
nsIXFormsSubmissionElement.idl \
|
2005-06-21 16:47:29 +00:00
|
|
|
nsIXFormsControlBase.idl \
|
2005-06-26 18:30:17 +00:00
|
|
|
nsIXFormsDelegate.idl \
|
2005-11-05 16:11:42 +00:00
|
|
|
nsIDelegateInternal.idl \
|
2005-06-26 18:30:17 +00:00
|
|
|
nsIXFormsUIWidget.idl \
|
2005-08-03 18:43:45 +00:00
|
|
|
nsIXFormsItemElement.idl \
|
|
|
|
nsIXFormsItemSetUIElement.idl \
|
2006-04-26 09:54:12 +00:00
|
|
|
nsIXFormsRepeatUIElement.idl \
|
2005-11-05 16:11:42 +00:00
|
|
|
nsIXFormsAccessors.idl \
|
2005-11-14 08:42:36 +00:00
|
|
|
nsIXFormsRangeAccessors.idl \
|
2005-10-23 04:24:23 +00:00
|
|
|
nsIXFormsUploadElement.idl \
|
|
|
|
nsIXFormsUploadUIElement.idl \
|
2005-11-17 22:00:27 +00:00
|
|
|
nsIXFormsCopyElement.idl \
|
2006-04-17 13:06:08 +00:00
|
|
|
nsIXFormsEphemeralMessageUI.idl \
|
2006-05-24 03:45:45 +00:00
|
|
|
nsIXFormsRangeConditionAccessors.idl \
|
2006-07-13 14:21:53 +00:00
|
|
|
nsIXFormsXPathFunctions.idl \
|
2004-10-26 00:34:03 +00:00
|
|
|
$(NULL)
|
2004-10-13 19:29:35 +00:00
|
|
|
|
2005-10-19 07:11:06 +00:00
|
|
|
# XForms source files
|
2004-10-13 09:51:52 +00:00
|
|
|
CPPSRCS = \
|
|
|
|
nsXFormsElementFactory.cpp \
|
2004-10-26 00:34:03 +00:00
|
|
|
nsXFormsUtils.cpp \
|
2004-10-13 09:51:52 +00:00
|
|
|
nsXFormsModelElement.cpp \
|
|
|
|
nsXFormsInputElement.cpp \
|
2005-01-15 00:43:16 +00:00
|
|
|
nsXFormsGroupElement.cpp \
|
2004-11-04 23:53:01 +00:00
|
|
|
nsXFormsOutputElement.cpp \
|
2004-12-06 20:31:15 +00:00
|
|
|
nsXFormsRepeatElement.cpp \
|
2005-01-15 01:04:02 +00:00
|
|
|
nsXFormsContextContainer.cpp \
|
2004-11-16 04:28:20 +00:00
|
|
|
nsXFormsTriggerElement.cpp \
|
2004-10-13 09:51:52 +00:00
|
|
|
nsXFormsSubmissionElement.cpp \
|
|
|
|
nsXFormsStubElement.cpp \
|
|
|
|
nsXFormsInstanceElement.cpp \
|
|
|
|
nsXFormsAtoms.cpp \
|
|
|
|
nsXFormsModule.cpp \
|
|
|
|
nsXFormsMDGEngine.cpp \
|
|
|
|
nsXFormsXPathAnalyzer.cpp \
|
|
|
|
nsXFormsXPathNode.cpp \
|
|
|
|
nsXFormsXPathParser.cpp \
|
|
|
|
nsXFormsXPathScanner.cpp \
|
|
|
|
nsXFormsXPathXMLUtil.cpp \
|
2004-11-05 02:15:01 +00:00
|
|
|
nsXFormsActionElement.cpp \
|
|
|
|
nsXFormsActionModuleBase.cpp \
|
|
|
|
nsXFormsDispatchElement.cpp \
|
|
|
|
nsXFormsRebuildElement.cpp \
|
|
|
|
nsXFormsRecalculateElement.cpp \
|
|
|
|
nsXFormsRefreshElement.cpp \
|
|
|
|
nsXFormsRevalidateElement.cpp \
|
|
|
|
nsXFormsResetElement.cpp \
|
|
|
|
nsXFormsSendElement.cpp \
|
|
|
|
nsXFormsSetFocusElement.cpp \
|
|
|
|
nsXFormsSetValueElement.cpp \
|
2005-02-18 09:38:32 +00:00
|
|
|
nsXFormsSetIndexElement.cpp \
|
2005-02-09 13:19:37 +00:00
|
|
|
nsXFormsInsertDeleteElement.cpp \
|
2004-11-05 02:15:01 +00:00
|
|
|
nsXFormsLoadElement.cpp \
|
2005-01-29 23:53:32 +00:00
|
|
|
nsXFormsMessageElement.cpp \
|
2006-08-16 18:12:19 +00:00
|
|
|
nsXFormsMediatypeElement.cpp \
|
2004-11-20 21:00:59 +00:00
|
|
|
nsXFormsLabelElement.cpp \
|
2004-12-15 02:08:53 +00:00
|
|
|
nsXFormsToggleElement.cpp \
|
|
|
|
nsXFormsCaseElement.cpp \
|
|
|
|
nsXFormsSwitchElement.cpp \
|
2004-12-28 21:37:23 +00:00
|
|
|
nsXFormsUploadElement.cpp \
|
2005-01-15 01:04:02 +00:00
|
|
|
nsXFormsSelectElement.cpp \
|
2005-08-03 18:43:45 +00:00
|
|
|
nsXFormsSelect1Element.cpp \
|
2005-01-15 01:04:02 +00:00
|
|
|
nsXFormsItemElement.cpp \
|
|
|
|
nsXFormsValueElement.cpp \
|
|
|
|
nsXFormsChoicesElement.cpp \
|
|
|
|
nsXFormsItemSetElement.cpp \
|
2005-01-19 16:05:31 +00:00
|
|
|
nsXFormsSchemaValidator.cpp \
|
|
|
|
nsXFormsNodeState.cpp \
|
|
|
|
nsXFormsControlStub.cpp \
|
2005-01-27 23:02:27 +00:00
|
|
|
nsXFormsUtilityService.cpp \
|
2005-06-26 18:30:17 +00:00
|
|
|
nsXFormsDelegateStub.cpp \
|
2005-11-14 08:42:36 +00:00
|
|
|
nsXFormsRangeElement.cpp \
|
2005-11-05 16:11:42 +00:00
|
|
|
nsXFormsAccessors.cpp \
|
2005-11-14 08:42:36 +00:00
|
|
|
nsXFormsRangeAccessors.cpp \
|
2005-11-17 22:00:27 +00:00
|
|
|
nsXFormsCopyElement.cpp \
|
2006-05-24 03:45:45 +00:00
|
|
|
nsXFormsRangeConditionAccessors.cpp \
|
2006-07-13 14:21:53 +00:00
|
|
|
nsXFormsXPathFunctions.cpp \
|
2004-10-13 09:51:52 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2005-10-19 07:11:06 +00:00
|
|
|
# Standard Mozilla make rules
|
2004-10-13 09:51:52 +00:00
|
|
|
EXTRA_DSO_LDOPTS = $(MOZ_COMPONENT_LIBS)
|
|
|
|
|
2005-10-19 11:10:19 +00:00
|
|
|
# Do not clean schema-validation on distclean, it should handle that itself
|
2005-10-21 21:26:27 +00:00
|
|
|
distclean:: LOOP_OVER_DIRS=
|
2005-10-19 11:10:19 +00:00
|
|
|
|
2004-10-13 09:51:52 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2005-10-19 07:11:06 +00:00
|
|
|
|
|
|
|
# Temporary files that will be deleted on f.x. make clean
|
|
|
|
GARBAGE += install.js install.template
|
|
|
|
|
|
|
|
# Create install.js script for suite
|
|
|
|
install.js: install.jst
|
|
|
|
@echo Creating install.js...
|
|
|
|
rm -f install.js
|
|
|
|
$(PERL) $(topsrcdir)/toolkit/mozapps/installer/makejs.pl $(srcdir)/install.jst $(PACKAGE_VERSION) $(FINAL_TARGET)
|