From 0751491892c3cb90e08528fd483d33fd232aa67e Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sun, 25 Dec 2011 16:17:04 +0100 Subject: gbuildize UnoControls --- UnoControls/Library_ctl.mk | 64 +++++++++++++++++++++++++++++++++++++++ UnoControls/Makefile | 40 ++++++++++++++++++++++++ UnoControls/Module_UnoControls.mk | 34 +++++++++++++++++++++ UnoControls/prj/build.lst | 4 +-- UnoControls/prj/d.lst | 6 ---- UnoControls/prj/makefile.mk | 1 + UnoControls/util/makefile.pmk | 27 ----------------- UnoControls/util/target.pmk | 35 --------------------- 8 files changed, 140 insertions(+), 71 deletions(-) create mode 100644 UnoControls/Library_ctl.mk create mode 100644 UnoControls/Makefile create mode 100644 UnoControls/Module_UnoControls.mk create mode 100644 UnoControls/prj/makefile.mk delete mode 100644 UnoControls/util/makefile.pmk delete mode 100644 UnoControls/util/target.pmk (limited to 'UnoControls') diff --git a/UnoControls/Library_ctl.mk b/UnoControls/Library_ctl.mk new file mode 100644 index 000000000000..f1eb96af2474 --- /dev/null +++ b/UnoControls/Library_ctl.mk @@ -0,0 +1,64 @@ +# -*- 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) 2010 Red Hat, Inc., David Tardon +# (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. + +$(eval $(call gb_Library_Library,ctl)) + +$(eval $(call gb_Library_set_include,ctl,\ + $$(INCLUDE) \ + -I$(SRCDIR)/UnoControls/inc \ + -I$(SRCDIR)/UnoControls/source/inc \ +)) + +$(eval $(call gb_Library_add_api,ctl,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_Library_add_linked_libs,ctl,\ + cppu \ + cppuhelper \ + sal \ + tl \ + $(gb_STDLIBS) \ +)) + +$(eval $(call gb_Library_set_componentfile,ctl,UnoControls/util/ctl)) + +$(eval $(call gb_Library_add_exception_objects,ctl,\ + UnoControls/source/base/basecontainercontrol \ + UnoControls/source/base/basecontrol \ + UnoControls/source/base/multiplexer \ + UnoControls/source/base/registercontrols \ + UnoControls/source/controls/OConnectionPointContainerHelper \ + UnoControls/source/controls/OConnectionPointHelper \ + UnoControls/source/controls/framecontrol \ + UnoControls/source/controls/progressbar \ + UnoControls/source/controls/progressmonitor \ + UnoControls/source/controls/statusindicator \ +)) + +# vim:set shiftwidth=4 softtabstop=4 expandtab: diff --git a/UnoControls/Makefile b/UnoControls/Makefile new file mode 100644 index 000000000000..7bbbe6c703e6 --- /dev/null +++ b/UnoControls/Makefile @@ -0,0 +1,40 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +#************************************************************************* +# +# 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 +# +# for a copy of the LGPLv3 License. +# +#************************************************************************* + +gb_PARTIALBUILD := T +ifeq ($(strip $(SOLARENV)),) +include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../solenv/gbuild/source_and_rerun.mk +else + +gb_SourceEnvAndRecurse_STAGE=gbuild +include $(SOLARENV)/gbuild/gbuild.mk + +$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk))) + +endif +# vim: set noet sw=4 ts=4: diff --git a/UnoControls/Module_UnoControls.mk b/UnoControls/Module_UnoControls.mk new file mode 100644 index 000000000000..6b7fac152cb7 --- /dev/null +++ b/UnoControls/Module_UnoControls.mk @@ -0,0 +1,34 @@ +# -*- 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) 2010 Red Hat, Inc., David Tardon +# (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. + +$(eval $(call gb_Module_Module,UnoControls)) + +$(eval $(call gb_Module_add_targets,UnoControls,\ + Library_ctl \ +)) + +# vim:set shiftwidth=4 softtabstop=4 expandtab: diff --git a/UnoControls/prj/build.lst b/UnoControls/prj/build.lst index 473776ffbedd..adfce8fa9d03 100644 --- a/UnoControls/prj/build.lst +++ b/UnoControls/prj/build.lst @@ -1,5 +1,3 @@ us UnoControls : LIBXSLT:libxslt cppuhelper offapi tools NULL us UnoControls usr1 - all us_mkout NULL -us UnoControls\source\base nmake - all us_base NULL -us UnoControls\source\controls nmake - all us_ctrls NULL -us UnoControls\util nmake - all us_util us_base us_ctrls NULL +us UnoControls\prj nmake - all us_prj NULL diff --git a/UnoControls/prj/d.lst b/UnoControls/prj/d.lst index 4c1de78bd819..e69de29bb2d1 100644 --- a/UnoControls/prj/d.lst +++ b/UnoControls/prj/d.lst @@ -1,6 +0,0 @@ -..\%__SRC%\bin\*.dll %_DEST%\bin\*.dll -..\%__SRC%\lib\lib*.so %_DEST%\lib -..\%__SRC%\lib\*.sl %_DEST%\lib\*.sl -..\%__SRC%\bin\*.res %_DEST%\bin\*.res -..\%__SRC%\lib\*.dylib %_DEST%\lib\*.dylib -..\%__SRC%\misc\ctl.component %_DEST%\xml\ctl.component diff --git a/UnoControls/prj/makefile.mk b/UnoControls/prj/makefile.mk new file mode 100644 index 000000000000..0997622e00f6 --- /dev/null +++ b/UnoControls/prj/makefile.mk @@ -0,0 +1 @@ +.INCLUDE : gbuildbridge.mk diff --git a/UnoControls/util/makefile.pmk b/UnoControls/util/makefile.pmk deleted file mode 100644 index 02a34a2434a1..000000000000 --- a/UnoControls/util/makefile.pmk +++ /dev/null @@ -1,27 +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 -# -# for a copy of the LGPLv3 License. -# -#************************************************************************* -.INCLUDE : settings.mk diff --git a/UnoControls/util/target.pmk b/UnoControls/util/target.pmk deleted file mode 100644 index c7c1de9c2563..000000000000 --- a/UnoControls/util/target.pmk +++ /dev/null @@ -1,35 +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 -# -# for a copy of the LGPLv3 License. -# -#************************************************************************* -ALLSLO: $(SLOFILES) - -SOSHL: $(SHL1TARGETN) - -WHOLEPRJ: - cd $(PRJ)$/prj - make debug linkinc prjpch compinc - @echo "READY" - -- cgit v1.2.3