cmExportInstallAndroidMKGenerator.h 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmExportInstallAndroidMKGenerator_h
  11. #define cmExportInstallAndroidMKGenerator_h
  12. #include "cmExportInstallFileGenerator.h"
  13. class cmInstallExportGenerator;
  14. class cmInstallTargetGenerator;
  15. /** \class cmExportInstallAndroidMKGenerator
  16. * \brief Generate a file exporting targets from an install tree.
  17. *
  18. * cmExportInstallAndroidMKGenerator generates files exporting targets from
  19. * install an installation tree. The files are placed in a temporary
  20. * location for installation by cmInstallExportGenerator. The file format
  21. * is for the ndk build system and is a makefile fragment specifing prebuilt
  22. * libraries to the ndk build system.
  23. *
  24. * This is used to implement the INSTALL(EXPORT_ANDROID_MK) command.
  25. */
  26. class cmExportInstallAndroidMKGenerator : public cmExportInstallFileGenerator
  27. {
  28. public:
  29. /** Construct with the export installer that will install the
  30. files. */
  31. cmExportInstallAndroidMKGenerator(cmInstallExportGenerator* iegen);
  32. protected:
  33. // Implement virtual methods from the superclass.
  34. void GeneratePolicyHeaderCode(std::ostream&) CM_OVERRIDE {}
  35. void GeneratePolicyFooterCode(std::ostream&) CM_OVERRIDE {}
  36. void GenerateImportHeaderCode(std::ostream& os,
  37. const std::string& config = "") CM_OVERRIDE;
  38. void GenerateImportFooterCode(std::ostream& os) CM_OVERRIDE;
  39. void GenerateImportTargetCode(std::ostream& os,
  40. const cmGeneratorTarget* target) CM_OVERRIDE;
  41. void GenerateExpectedTargetsCode(
  42. std::ostream& os, const std::string& expectedTargets) CM_OVERRIDE;
  43. void GenerateImportPropertyCode(std::ostream& os, const std::string& config,
  44. cmGeneratorTarget const* target,
  45. ImportPropertyMap const& properties)
  46. CM_OVERRIDE;
  47. void GenerateMissingTargetsCheckCode(
  48. std::ostream& os,
  49. const std::vector<std::string>& missingTargets) CM_OVERRIDE;
  50. void GenerateInterfaceProperties(
  51. cmGeneratorTarget const* target, std::ostream& os,
  52. const ImportPropertyMap& properties) CM_OVERRIDE;
  53. void GenerateImportPrefix(std::ostream& os) CM_OVERRIDE;
  54. void LoadConfigFiles(std::ostream&) CM_OVERRIDE;
  55. void GenerateRequiredCMakeVersion(std::ostream& os,
  56. const char* versionString) CM_OVERRIDE;
  57. void CleanupTemporaryVariables(std::ostream&) CM_OVERRIDE;
  58. void GenerateImportedFileCheckLoop(std::ostream& os) CM_OVERRIDE;
  59. void GenerateImportedFileChecksCode(
  60. std::ostream& os, cmGeneratorTarget* target,
  61. ImportPropertyMap const& properties,
  62. const std::set<std::string>& importedLocations) CM_OVERRIDE;
  63. bool GenerateImportFileConfig(const std::string& config,
  64. std::vector<std::string>&) CM_OVERRIDE;
  65. };
  66. #endif