mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
In order to support generation of Common Package Specifications, the mechanisms CMake uses to export package information need to be made more abstract. As a first step toward this, refactor cmInstallExportGenerator so that logic specific to config.cmake and Android .mk lives in separate subclasses. While we're at it, clean up the code style a bit and try to use moves a bit more consistently. This is step 1 of 2. The next step will refactor the individual file generators along similar lines, which will also involve creating additional classes for format-agnostic logic that is shared between build-tree and install-tree variants.
39 lines
1.4 KiB
C++
39 lines
1.4 KiB
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#include "cmInstallAndroidMKExportGenerator.h"
|
|
|
|
#include <utility>
|
|
|
|
#include <cm/memory>
|
|
|
|
#include "cmExportInstallAndroidMKGenerator.h"
|
|
#include "cmExportInstallFileGenerator.h"
|
|
#include "cmListFileCache.h"
|
|
|
|
class cmExportSet;
|
|
|
|
cmInstallAndroidMKExportGenerator::cmInstallAndroidMKExportGenerator(
|
|
cmExportSet* exportSet, std::string destination, std::string filePermissions,
|
|
std::vector<std::string> const& configurations, std::string component,
|
|
MessageLevel message, bool excludeFromAll, std::string filename,
|
|
std::string targetNamespace, bool exportOld, cmListFileBacktrace backtrace)
|
|
: cmInstallExportGenerator(exportSet, std::move(destination),
|
|
std::move(filePermissions), configurations,
|
|
std::move(component), message, excludeFromAll,
|
|
std::move(filename), std::move(targetNamespace),
|
|
std::string{}, std::move(backtrace))
|
|
, ExportOld(exportOld)
|
|
{
|
|
this->EFGen = cm::make_unique<cmExportInstallAndroidMKGenerator>(this);
|
|
}
|
|
|
|
cmInstallAndroidMKExportGenerator::~cmInstallAndroidMKExportGenerator() =
|
|
default;
|
|
|
|
void cmInstallAndroidMKExportGenerator::GenerateScript(std::ostream& os)
|
|
{
|
|
this->EFGen->SetExportOld(this->ExportOld);
|
|
|
|
this->cmInstallExportGenerator::GenerateScript(os);
|
|
}
|