From a8485d558fab53291e2530fd9a1be581c1628deb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 14 Sep 2021 17:26:17 +0200 Subject: [API CHANGE] Remove deprecated idlc and regmerge from the SDK * Client code must replace uses of idlc and regmerge with uses of unoidl-write, see the changes to odk/examples/ and ure/source/uretext/ in 40f2aee6584eafcf4cd1d95fcf1f775e5435440d "Provide unoidl-write also for the SDK" for examples. * The new types.rdb format is not compatible with LibreOffice < 4.1. Clients generating extensions containing such files are advised to use appropriate LibreOffice-minimal-version elements. * For compatibility with old extensions, reading the legacy types.rdb format is still supported. * The SDK no longer ships an idl/ sub-directory containing the udkap and offapi .idl files (as, unlike idlc, unoidl-write does not need them). odk/config/cfgWin.js had to be adapted to look (somewhat arbitrarily) for an examples/ sub-directory instead of idl/ when checking for "an sdk folder". gb_UnoApi_package_idlfiles became unused and has been removed. * The idlc and regmerge executables have been removed. Module idlc has been removed except for idlc/test/parser/, which is also used by CustomTarget_unoidl/unoidl-write_test, and which may eventually be moved into module unoidl. Module external/ucpp and the corresponding configure options have also been removed. Change-Id: I42a0231699b863b5ebe2bee63bc32c8f79278cc1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122363 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- registry/Executable_regmerge.mk | 29 ----- registry/Module_registry.mk | 1 - registry/StaticLibrary_registry_helper.mk | 1 - registry/tools/options.cxx | 144 ----------------------- registry/tools/options.hxx | 57 ---------- registry/tools/regmerge.cxx | 183 ------------------------------ 6 files changed, 415 deletions(-) delete mode 100644 registry/Executable_regmerge.mk delete mode 100644 registry/tools/options.cxx delete mode 100644 registry/tools/options.hxx delete mode 100644 registry/tools/regmerge.cxx (limited to 'registry') diff --git a/registry/Executable_regmerge.mk b/registry/Executable_regmerge.mk deleted file mode 100644 index a55acf885f12..000000000000 --- a/registry/Executable_regmerge.mk +++ /dev/null @@ -1,29 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# 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/. -# - -$(eval $(call gb_Executable_Executable,regmerge)) - -$(eval $(call gb_Executable_use_libraries,regmerge,\ - reg \ - $(if $(filter TRUE,$(DISABLE_DYNLOADING)),store) \ - $(if $(filter TRUE,$(DISABLE_DYNLOADING)),salhelper) \ - sal \ -)) - -$(eval $(call gb_Executable_use_static_libraries,regmerge,\ - registry_helper \ -)) - -$(eval $(call gb_Executable_add_exception_objects,regmerge,\ - registry/tools/regmerge \ -)) - -$(eval $(call gb_Executable_add_default_nativeres,regmerge)) - -# vim:set noet sw=4 ts=4: diff --git a/registry/Module_registry.mk b/registry/Module_registry.mk index 40f7230bbb73..45c23bd617e3 100644 --- a/registry/Module_registry.mk +++ b/registry/Module_registry.mk @@ -12,7 +12,6 @@ $(eval $(call gb_Module_Module,registry)) $(eval $(call gb_Module_add_targets,registry,\ Library_reg \ $(call gb_CondExeRegistryTools, \ - Executable_regmerge \ Executable_regview \ StaticLibrary_registry_helper \ ) \ diff --git a/registry/StaticLibrary_registry_helper.mk b/registry/StaticLibrary_registry_helper.mk index a0c11428ef0f..cffd7a22da16 100644 --- a/registry/StaticLibrary_registry_helper.mk +++ b/registry/StaticLibrary_registry_helper.mk @@ -12,7 +12,6 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,registry_helper)) $(eval $(call gb_StaticLibrary_add_exception_objects,registry_helper,\ registry/tools/fileurl \ - registry/tools/options \ )) # vim: set noet sw=4 ts=4: diff --git a/registry/tools/options.cxx b/registry/tools/options.cxx deleted file mode 100644 index 0212c94e9f55..000000000000 --- a/registry/tools/options.cxx +++ /dev/null @@ -1,144 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * 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/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 . - */ - -#include "options.hxx" - -#include - -#include - -namespace registry::tools -{ - -Options::Options (char const * program) - : m_program (program) -{} - -Options::~Options() -{} - -// static -bool Options::checkArgument(std::vector< std::string> & rArgs, char const * arg, size_t len) -{ - bool result = ((arg != nullptr) && (len > 0)); - OSL_PRECOND(result, "registry::tools::Options::checkArgument(): invalid arguments"); - if (!result) - return false; - - switch (arg[0]) - { - case '@': - result = len > 1; - if (result) - { - // "@" - result = Options::checkCommandFile(rArgs, &(arg[1])); - } - break; - case '-': - result = len > 1; - if (result) - { - // "-