From b8a801def427255587a7e519577d29d1acb91162 Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Wed, 15 Dec 2021 15:50:42 +0100 Subject: Disallow multiple component files per library This converts existing users of multiple component files to the new filtering mechanism and adds a check to error in the case that someone tries to set multiple component files again. Change-Id: Ie75d6c5d1b78f446ff06faba7350715289b8d17e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126892 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sccomp/Library_solver.mk | 8 +++++--- sccomp/source/solver/coinmpsolver.component | 16 ---------------- sccomp/source/solver/lpsolvesolver.component | 26 -------------------------- sccomp/source/solver/solver.component | 25 +++++++++++++++++++++++++ sccomp/source/solver/solver.component.coinmp | 7 +++++++ sccomp/source/solver/solver.component.lpsolve | 7 +++++++ sccomp/source/solver/swarmsolver.component | 15 --------------- 7 files changed, 44 insertions(+), 60 deletions(-) delete mode 100644 sccomp/source/solver/coinmpsolver.component delete mode 100644 sccomp/source/solver/lpsolvesolver.component create mode 100644 sccomp/source/solver/solver.component create mode 100644 sccomp/source/solver/solver.component.coinmp create mode 100644 sccomp/source/solver/solver.component.lpsolve delete mode 100644 sccomp/source/solver/swarmsolver.component (limited to 'sccomp') diff --git a/sccomp/Library_solver.mk b/sccomp/Library_solver.mk index 900dcbd96072..933c0f7b6e38 100644 --- a/sccomp/Library_solver.mk +++ b/sccomp/Library_solver.mk @@ -19,10 +19,12 @@ $(eval $(call gb_Library_Library,solver)) -$(if $(ENABLE_COINMP),$(eval $(call gb_Library_set_componentfile,solver,sccomp/source/solver/coinmpsolver,services))) -$(if $(ENABLE_LPSOLVE),$(eval $(call gb_Library_set_componentfile,solver,sccomp/source/solver/lpsolvesolver,services))) +$(eval $(call gb_Library_set_componentfile,solver,sccomp/source/solver/solver,services)) -$(eval $(call gb_Library_set_componentfile,solver,sccomp/source/solver/swarmsolver,services)) +$(eval $(call gb_Library_add_componentimpls,solver, \ + $(if $(ENABLE_COINMP),coinmp) \ + $(if $(ENABLE_LPSOLVE),lpsolve) \ +)) $(eval $(call gb_Library_use_sdk_api,solver)) diff --git a/sccomp/source/solver/coinmpsolver.component b/sccomp/source/solver/coinmpsolver.component deleted file mode 100644 index 3ddeeea4af47..000000000000 --- a/sccomp/source/solver/coinmpsolver.component +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - diff --git a/sccomp/source/solver/lpsolvesolver.component b/sccomp/source/solver/lpsolvesolver.component deleted file mode 100644 index 76e2f3bbf722..000000000000 --- a/sccomp/source/solver/lpsolvesolver.component +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - diff --git a/sccomp/source/solver/solver.component b/sccomp/source/solver/solver.component new file mode 100644 index 000000000000..496be6628486 --- /dev/null +++ b/sccomp/source/solver/solver.component @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + diff --git a/sccomp/source/solver/solver.component.coinmp b/sccomp/source/solver/solver.component.coinmp new file mode 100644 index 000000000000..1ced6f61be45 --- /dev/null +++ b/sccomp/source/solver/solver.component.coinmp @@ -0,0 +1,7 @@ +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +com.sun.star.comp.Calc.CoinMPSolver diff --git a/sccomp/source/solver/solver.component.lpsolve b/sccomp/source/solver/solver.component.lpsolve new file mode 100644 index 000000000000..3b571fbc324d --- /dev/null +++ b/sccomp/source/solver/solver.component.lpsolve @@ -0,0 +1,7 @@ +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +com.sun.star.comp.Calc.LpsolveSolver diff --git a/sccomp/source/solver/swarmsolver.component b/sccomp/source/solver/swarmsolver.component deleted file mode 100644 index 0cdd925ee9fd..000000000000 --- a/sccomp/source/solver/swarmsolver.component +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - -- cgit