CFBundle.h 839 B

123456789101112131415161718192021222324252627282930
  1. //===- tools/dsymutil/CFBundle.h - CFBundle helper --------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_TOOLS_DSYMUTIL_CFBUNDLE_H
  9. #define LLVM_TOOLS_DSYMUTIL_CFBUNDLE_H
  10. #include "llvm/ADT/StringRef.h"
  11. #include <string>
  12. namespace llvm {
  13. namespace dsymutil {
  14. struct CFBundleInfo {
  15. std::string VersionStr = "1";
  16. std::string ShortVersionStr = "1.0";
  17. std::string IDStr;
  18. bool OmitShortVersion() const { return ShortVersionStr.empty(); }
  19. };
  20. CFBundleInfo getBundleInfo(llvm::StringRef ExePath);
  21. } // end namespace dsymutil
  22. } // end namespace llvm
  23. #endif