cmake/Source/cmExportBuildAndroidMKGenerator.h

48 lines
1.5 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2016-10-30 18:24:19 +01:00
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2017-04-14 19:02:05 +02:00
#include <iosfwd>
#include <string>
2024-11-11 15:18:55 +01:00
#include "cmExportAndroidMKGenerator.h"
2016-10-30 18:24:19 +01:00
#include "cmExportBuildFileGenerator.h"
2018-08-09 18:06:22 +02:00
#include "cmStateTypes.h"
2016-10-30 18:24:19 +01:00
2017-04-14 19:02:05 +02:00
class cmGeneratorTarget;
2016-10-30 18:24:19 +01:00
/** \class cmExportBuildAndroidMKGenerator
* \brief Generate a file exporting targets from a build tree.
*
* cmExportBuildAndroidMKGenerator generates a file exporting targets from
* a build tree. This exports the targets to the Android ndk build tool
* makefile format for prebuilt libraries.
*
2022-08-04 22:12:04 +02:00
* This is used to implement the export() command.
2016-10-30 18:24:19 +01:00
*/
2024-11-11 15:18:55 +01:00
class cmExportBuildAndroidMKGenerator
: public cmExportBuildFileGenerator
, public cmExportAndroidMKGenerator
2016-10-30 18:24:19 +01:00
{
public:
cmExportBuildAndroidMKGenerator();
2024-11-11 15:18:55 +01:00
/** Set whether to append generated code to the output file. */
void SetAppendMode(bool append) { this->AppendMode = append; }
2016-10-30 18:24:19 +01:00
protected:
2024-11-11 15:18:55 +01:00
GenerateType GetGenerateType() const override { return BUILD; }
2016-10-30 18:24:19 +01:00
// Implement virtual methods from the superclass.
2024-11-11 15:18:55 +01:00
bool GenerateMainFile(std::ostream& os) override;
2016-10-30 18:24:19 +01:00
void GenerateImportHeaderCode(std::ostream& os,
2024-11-11 15:18:55 +01:00
std::string const& config = "") override;
2018-08-09 18:06:22 +02:00
void GenerateImportTargetCode(
std::ostream& os, cmGeneratorTarget const* target,
cmStateEnums::TargetType /*targetType*/) override;
2024-11-11 15:18:55 +01:00
std::string GetCxxModulesDirectory() const override { return {}; }
2016-10-30 18:24:19 +01:00
};