diff options
author | David Tardon <dtardon@redhat.com> | 2011-12-20 12:08:08 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-12-23 16:43:00 +0100 |
commit | 24585e1bf151eb66ddae998b087f832c62e5a2f3 (patch) | |
tree | 4e5bba3035c5a2701b76ee9ff5f908f69027835a /accessibility/bridge | |
parent | 7f31e252e4c28cfac9a21fe3309fd39956274d7f (diff) |
convert windows-specific bits, part 1: jars
Diffstat (limited to 'accessibility/bridge')
-rw-r--r-- | accessibility/bridge/Makefile | 63 | ||||
-rwxr-xr-x | accessibility/bridge/org/openoffice/accessibility/makefile.mk | 62 | ||||
-rwxr-xr-x | accessibility/bridge/org/openoffice/java/accessibility/makefile.mk | 115 |
3 files changed, 63 insertions, 177 deletions
diff --git a/accessibility/bridge/Makefile b/accessibility/bridge/Makefile new file mode 100644 index 000000000000..67792cd542ba --- /dev/null +++ b/accessibility/bridge/Makefile @@ -0,0 +1,63 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# 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 or as specified alternatively below. 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. +# +# Major Contributor(s): +# Copyright (C) 2011 Red Hat, Inc., David Tardon <dtardon@redhat.com> +# (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +gb_PARTIALBUILD := T +include $(GBUILDDIR)/gbuild.mk + +TARGETDIR := $(WORKDIR)/CustomTarget/accessibility/bridge +PACKAGE := org/openoffice/java/accessibility + +ifeq ($(PRODUCT),) +DEBUGSWITCH := true +PRODUCTSWITCH := false +else +DEBUGSWITCH := false +PRODUCTSWITCH := true +endif + +$(TARGETDIR)/done : $(TARGETDIR)/classes/$(PACKAGE)/Build.class + mkdir -p $(dir $@) && touch $@ + +$(TARGETDIR)/classes/$(PACKAGE)/Build.class : $(TARGETDIR)/src/$(PACKAGE)/Build.java | $(gb_JavaClassSet_JAVACCOMMAND) + mkdir -p $(dir $@) && \ + $(gb_JavaClassSet_JAVACCOMMAND) $(gb_JavaClassSet_JAVACDEBUG) -d $(TARGETDIR)/classes $^ + +$(TARGETDIR)/src/$(PACKAGE)/Build.java : + mkdir -p $(dir $@) && (\ + echo package org.openoffice.java.accessibility\; && \ + echo public class Build \{ && \ + echo public static final boolean DEBUG = $(DEBUGSWITCH)\; && \ + echo public static final boolean PRODUCT = $(PRODUCTSWITCH)\; && \ + echo \} \ + ) > $@ + +.DEFAULT_GOAL := all +.PHONY : all +all : \ + $(TARGETDIR)/done + +# vim: set ts=4 sw=4 et: diff --git a/accessibility/bridge/org/openoffice/accessibility/makefile.mk b/accessibility/bridge/org/openoffice/accessibility/makefile.mk deleted file mode 100755 index 1fa29f5bfcb1..000000000000 --- a/accessibility/bridge/org/openoffice/accessibility/makefile.mk +++ /dev/null @@ -1,62 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (a copy is included in the LICENSE file that accompanied this code). -# -# You should have received a copy of the GNU Lesser General Public License -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJNAME = accessibility -PRJ = ..$/..$/..$/.. -TARGET = java_uno_accessbridge -PACKAGE = org$/openoffice$/accessibility - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -JARFILES = jurt.jar unoil.jar ridl.jar -JAVAFILES = \ - AccessBridge.java \ - KeyHandler.java \ - PopupWindow.java \ - WindowsAccessBridgeAdapter.java - -JAVACLASSFILES= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class) - -JARTARGET = $(TARGET).jar -JARCOMPRESS = TRUE -JARCLASSDIRS = $(PACKAGE) org/openoffice/java/accessibility -CUSTOMMANIFESTFILE = manifest - -# --- Targets ------------------------------------------------------ - - -.INCLUDE : target.mk - -ALLTAR : $(MISC)/java_uno_accessbridge.component - -$(MISC)/java_uno_accessbridge.component .ERRREMOVE : \ - $(SOLARENV)/bin/createcomponent.xslt java_uno_accessbridge.component - $(XSLTPROC) --nonet --stringparam uri \ - '$(COMPONENTPREFIX_BASIS_JAVA)$(JARTARGET)' -o $@ \ - $(SOLARENV)/bin/createcomponent.xslt java_uno_accessbridge.component diff --git a/accessibility/bridge/org/openoffice/java/accessibility/makefile.mk b/accessibility/bridge/org/openoffice/java/accessibility/makefile.mk deleted file mode 100755 index 0d98760a31df..000000000000 --- a/accessibility/bridge/org/openoffice/java/accessibility/makefile.mk +++ /dev/null @@ -1,115 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (a copy is included in the LICENSE file that accompanied this code). -# -# You should have received a copy of the GNU Lesser General Public License -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJNAME = accessibility -PRJ = ..$/..$/..$/..$/.. -TARGET = java_accessibility -PACKAGE = org$/openoffice$/java$/accessibility - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -JAVADIR = $(OUT)$/misc$/java -JARFILES = jurt.jar unoil.jar ridl.jar -JAVAFILES = \ - logging$/XAccessibleEventLog.java \ - logging$/XAccessibleHypertextLog.java \ - logging$/XAccessibleTextLog.java \ - AbstractButton.java \ - AccessibleActionImpl.java \ - AccessibleComponentImpl.java \ - AccessibleEditableTextImpl.java \ - AccessibleExtendedState.java \ - AccessibleHypertextImpl.java \ - AccessibleIconImpl.java \ - AccessibleKeyBinding.java \ - AccessibleObjectFactory.java \ - AccessibleRoleAdapter.java \ - AccessibleSelectionImpl.java \ - AccessibleStateAdapter.java \ - AccessibleTextImpl.java \ - AccessibleValueImpl.java \ - Alert.java \ - Application.java \ - Button.java \ - CheckBox.java \ - ComboBox.java \ - Component.java \ - Container.java \ - DescendantManager.java \ - Dialog.java \ - FocusTraversalPolicy.java \ - Frame.java \ - Icon.java \ - Label.java \ - List.java \ - Menu.java \ - MenuItem.java \ - MenuContainer.java \ - NativeFrame.java \ - Paragraph.java \ - RadioButton.java \ - ScrollBar.java \ - Separator.java \ - Table.java \ - TextComponent.java \ - ToggleButton.java \ - ToolTip.java \ - Tree.java \ - Window.java - -JAVACLASSFILES = $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:s/.java//).class) $(CLASSDIR)$/$(PACKAGE)$/Build.class - -JARTARGET = $(TARGET).jar -JARCOMPRESS = TRUE -JARCLASSDIRS = $(PACKAGE) - -# --- Targets ------------------------------------------------------ - -.INCLUDE : target.mk - -# Enable logging in non-product only -.IF "$(PRODUCT)"!="" -DEBUGSWITCH = false -PRODUCTSWITCH = true -.ELSE -PRODUCTSWITCH = false -DEBUGSWITCH = true -.ENDIF - -$(JAVADIR)$/$(PACKAGE)$/%.java: makefile.mk - @@-$(MKDIRHIER) $(JAVADIR)$/$(PACKAGE) - @-echo package org.openoffice.java.accessibility\; > $@ - @-echo public class Build { >> $@ - @-echo public static final boolean DEBUG = $(DEBUGSWITCH)\; >> $@ - @-echo public static final boolean PRODUCT = $(PRODUCTSWITCH)\; >> $@ - @-echo } >> $@ - -$(CLASSDIR)$/$(PACKAGE)$/Build.class : $(JAVADIR)$/$(PACKAGE)$/Build.java - -$(JAVAC) -d $(CLASSDIR) $(JAVADIR)$/$(PACKAGE)$/Build.java - |