2004-11-24 23:47:23 +03:00
|
|
|
# vim:set ts=8 sw=8 sts=8 noet:
|
2004-10-13 13:51:52 +04: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 11:11:06 +04:00
|
|
|
# Allan Beaufour <allan@beaufour.dk>
|
2004-10-13 13:51:52 +04: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 11:11:06 +04:00
|
|
|
# Module setup
|
2004-10-13 13:51:52 +04:00
|
|
|
MODULE = xforms
|
|
|
|
LIBRARY_NAME = xforms
|
|
|
|
IS_COMPONENT = 1
|
2005-12-02 19:38:32 +03:00
|
|
|
ifndef MINIMO
|
2005-01-28 22:22:21 +03: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 19:38:32 +03:00
|
|
|
else
|
|
|
|
MODULE_NAME = xforms
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
endif
|
2005-04-04 22:38:19 +04:00
|
|
|
MOZILLA_INTERNAL_API = 1
|
2004-10-13 13:51:52 +04:00
|
|
|
|
2005-10-19 11:11:06 +04:00
|
|
|
# Also build schema-validation
|
|
|
|
DIRS = ../schema-validation \
|
|
|
|
$(NULL)
|
2005-10-25 20:54:41 +04:00
|
|
|
|
2005-12-02 19:38:32 +03:00
|
|
|
ifndef MINIMO
|
2005-10-25 20:54:41 +04:00
|
|
|
ifdef MOZ_XUL_APP
|
2005-10-19 11:11:06 +04: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-04-20 14:30:56 +04:00
|
|
|
PACKAGE_VERSION = 0.6
|
2005-10-19 11:11:06 +04:00
|
|
|
|
2006-02-06 22:07:40 +03:00
|
|
|
# We want to strip the XPI
|
|
|
|
STRIP_XPI = 1
|
|
|
|
|
2005-10-19 11:11:06 +04:00
|
|
|
XULAPP_DEFINES = \
|
|
|
|
-DFIREFOX_VERSION=$(FIREFOX_VERSION) \
|
2006-02-17 13:04:39 +03:00
|
|
|
-DMOZILLA_VERSION_U=$(MOZILLA_VERSION_U) \
|
|
|
|
-DSEAMONKEY_VERSION=$(SEAMONKEY_VERSION) \
|
|
|
|
-DBUILD_ID=$(BUILD_ID) \
|
2005-10-19 11:11:06 +04:00
|
|
|
-DPACKAGE_VERSION=$(PACKAGE_VERSION) \
|
|
|
|
-DID=${INSTALL_EXTENSION_ID} \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# Include these in the XPI
|
|
|
|
DIST_FILES = install.rdf install.js
|
2005-10-25 20:54:41 +04:00
|
|
|
endif
|
2005-12-02 19:38:32 +03:00
|
|
|
endif
|
2005-10-19 11:11:06 +04:00
|
|
|
|
|
|
|
# XForms depends
|
2004-10-13 13:51:52 +04:00
|
|
|
REQUIRES = \
|
|
|
|
xpcom \
|
|
|
|
string \
|
|
|
|
content \
|
|
|
|
dom \
|
|
|
|
widget \
|
|
|
|
necko \
|
|
|
|
websrvcs \
|
|
|
|
docshell \
|
|
|
|
mimetype \
|
2004-10-21 01:43:10 +04:00
|
|
|
caps \
|
|
|
|
xpconnect \
|
|
|
|
js \
|
2004-12-15 05:08:53 +03:00
|
|
|
layout \
|
2005-01-28 02:02:27 +03:00
|
|
|
transformiix \
|
2005-01-19 19:05:31 +03:00
|
|
|
schemavalidation \
|
2005-01-30 02:53:32 +03:00
|
|
|
intl \
|
2005-06-28 20:30:50 +04:00
|
|
|
pref \
|
2005-06-29 22:14:43 +04:00
|
|
|
htmlparser \
|
2005-10-23 08:24:23 +04:00
|
|
|
exthandler \
|
2004-10-13 13:51:52 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2005-10-19 11:11:06 +04:00
|
|
|
# XForms IDLs
|
2004-10-26 04:34:03 +04:00
|
|
|
XPIDLSRCS = \
|
|
|
|
nsIXFormsModelElement.idl \
|
2005-10-25 21:29:56 +04:00
|
|
|
nsIXFormsNSModelElement.idl \
|
2004-10-26 04:34:03 +04:00
|
|
|
nsIModelElementPrivate.idl \
|
2006-03-17 05:19:07 +03:00
|
|
|
nsIXFormsNSInstanceElement.idl \
|
|
|
|
nsIInstanceElementPrivate.idl \
|
2004-10-26 04:34:03 +04:00
|
|
|
nsIXFormsControl.idl \
|
2004-11-24 23:47:23 +03:00
|
|
|
nsIXFormsContextControl.idl \
|
2004-11-05 05:15:01 +03:00
|
|
|
nsIXFormsActionElement.idl \
|
|
|
|
nsIXFormsActionModuleElement.idl \
|
2004-12-15 05:08:53 +03:00
|
|
|
nsIXFormsSwitchElement.idl \
|
|
|
|
nsIXFormsCaseElement.idl \
|
2005-08-09 23:17:18 +04:00
|
|
|
nsIXFormsCaseUIElement.idl \
|
2005-01-15 04:04:02 +03:00
|
|
|
nsIXFormsSelectChild.idl \
|
|
|
|
nsIXFormsValueElement.idl \
|
2005-02-18 12:38:32 +03:00
|
|
|
nsIXFormsRepeatElement.idl \
|
|
|
|
nsIXFormsRepeatItemElement.idl \
|
2005-02-18 14:16:15 +03:00
|
|
|
nsIXFormsSubmitElement.idl \
|
|
|
|
nsIXFormsSubmissionElement.idl \
|
2005-06-21 20:47:29 +04:00
|
|
|
nsIXFormsControlBase.idl \
|
2005-06-26 22:30:17 +04:00
|
|
|
nsIXFormsDelegate.idl \
|
2005-11-05 19:11:42 +03:00
|
|
|
nsIDelegateInternal.idl \
|
2005-06-26 22:30:17 +04:00
|
|
|
nsIXFormsUIWidget.idl \
|
2005-08-03 22:43:45 +04:00
|
|
|
nsIXFormsItemElement.idl \
|
|
|
|
nsIXFormsLabelElement.idl \
|
|
|
|
nsIXFormsItemSetUIElement.idl \
|
2006-04-26 13:54:12 +04:00
|
|
|
nsIXFormsRepeatUIElement.idl \
|
2005-11-05 19:11:42 +03:00
|
|
|
nsIXFormsAccessors.idl \
|
2005-11-14 11:42:36 +03:00
|
|
|
nsIXFormsRangeAccessors.idl \
|
2005-10-23 08:24:23 +04:00
|
|
|
nsIXFormsUploadElement.idl \
|
|
|
|
nsIXFormsUploadUIElement.idl \
|
2005-11-18 01:00:27 +03:00
|
|
|
nsIXFormsCopyElement.idl \
|
2006-04-17 17:06:08 +04:00
|
|
|
nsIXFormsEphemeralMessageUI.idl \
|
2006-05-24 07:45:45 +04:00
|
|
|
nsIXFormsRangeConditionAccessors.idl \
|
2004-10-26 04:34:03 +04:00
|
|
|
$(NULL)
|
2004-10-13 23:29:35 +04:00
|
|
|
|
2005-10-19 11:11:06 +04:00
|
|
|
# XForms source files
|
2004-10-13 13:51:52 +04:00
|
|
|
CPPSRCS = \
|
|
|
|
nsXFormsElementFactory.cpp \
|
2004-10-26 04:34:03 +04:00
|
|
|
nsXFormsUtils.cpp \
|
2004-10-13 13:51:52 +04:00
|
|
|
nsXFormsModelElement.cpp \
|
|
|
|
nsXFormsInputElement.cpp \
|
2005-01-15 03:43:16 +03:00
|
|
|
nsXFormsGroupElement.cpp \
|
2004-11-05 02:53:01 +03:00
|
|
|
nsXFormsOutputElement.cpp \
|
2004-12-06 23:31:15 +03:00
|
|
|
nsXFormsRepeatElement.cpp \
|
2005-01-15 04:04:02 +03:00
|
|
|
nsXFormsContextContainer.cpp \
|
2004-11-16 07:28:20 +03:00
|
|
|
nsXFormsTriggerElement.cpp \
|
2004-10-13 13:51:52 +04: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 05:15:01 +03: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 12:38:32 +03:00
|
|
|
nsXFormsSetIndexElement.cpp \
|
2005-02-09 16:19:37 +03:00
|
|
|
nsXFormsInsertDeleteElement.cpp \
|
2004-11-05 05:15:01 +03:00
|
|
|
nsXFormsLoadElement.cpp \
|
2005-01-30 02:53:32 +03:00
|
|
|
nsXFormsMessageElement.cpp \
|
2004-11-21 00:00:59 +03:00
|
|
|
nsXFormsLabelElement.cpp \
|
2004-12-15 05:08:53 +03:00
|
|
|
nsXFormsToggleElement.cpp \
|
|
|
|
nsXFormsCaseElement.cpp \
|
|
|
|
nsXFormsSwitchElement.cpp \
|
2004-12-29 00:37:23 +03:00
|
|
|
nsXFormsUploadElement.cpp \
|
2005-01-15 04:04:02 +03:00
|
|
|
nsXFormsSelectElement.cpp \
|
2005-08-03 22:43:45 +04:00
|
|
|
nsXFormsSelect1Element.cpp \
|
2005-01-15 04:04:02 +03:00
|
|
|
nsXFormsItemElement.cpp \
|
|
|
|
nsXFormsValueElement.cpp \
|
|
|
|
nsXFormsChoicesElement.cpp \
|
|
|
|
nsXFormsItemSetElement.cpp \
|
2005-01-19 19:05:31 +03:00
|
|
|
nsXFormsSchemaValidator.cpp \
|
|
|
|
nsXFormsNodeState.cpp \
|
|
|
|
nsXFormsControlStub.cpp \
|
2005-01-28 02:02:27 +03:00
|
|
|
nsXFormsUtilityService.cpp \
|
2005-06-26 22:30:17 +04:00
|
|
|
nsXFormsDelegateStub.cpp \
|
2005-11-14 11:42:36 +03:00
|
|
|
nsXFormsRangeElement.cpp \
|
2005-11-05 19:11:42 +03:00
|
|
|
nsXFormsAccessors.cpp \
|
2005-11-14 11:42:36 +03:00
|
|
|
nsXFormsRangeAccessors.cpp \
|
2005-11-18 01:00:27 +03:00
|
|
|
nsXFormsCopyElement.cpp \
|
2006-05-24 07:45:45 +04:00
|
|
|
nsXFormsRangeConditionAccessors.cpp \
|
2004-10-13 13:51:52 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2005-10-19 11:11:06 +04:00
|
|
|
# Standard Mozilla make rules
|
2004-10-13 13:51:52 +04:00
|
|
|
EXTRA_DSO_LDOPTS = $(MOZ_COMPONENT_LIBS)
|
|
|
|
|
2005-10-19 15:10:19 +04:00
|
|
|
# Do not clean schema-validation on distclean, it should handle that itself
|
2005-10-22 01:26:27 +04:00
|
|
|
distclean:: LOOP_OVER_DIRS=
|
2005-10-19 15:10:19 +04:00
|
|
|
|
2004-10-13 13:51:52 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2005-10-19 11:11:06 +04: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)
|