conan.tools.apple.is_apple_os()¶
-
is_apple_os
(conanfile)¶ returns True if OS is Apple one (Macos, iOS, watchOS or tvOS
conan.tools.apple.to_apple_arch()¶
-
to_apple_arch
(conanfile, default=None)¶ converts conan-style architecture into Apple-style arch
conan.tools.apple.XCRun()¶
-
class
XCRun
(conanfile, sdk=None, use_settings_target=False)¶ XCRun is a wrapper for the Apple xcrun tool used to get information for building.
Parameters: - conanfile – Conanfile instance.
- sdk – Will skip the flag when
False
is passed and will try to adjust the sdk it automatically ifNone
is passed. - target_settings – Try to use
settings_target
in case they exist (False
by default)
-
find
(tool)¶ find SDK tools (e.g. clang, ar, ranlib, lipo, codesign, etc.)
-
sdk_path
¶ obtain sdk path (aka apple sysroot or -isysroot
-
sdk_version
¶ obtain sdk version
-
sdk_platform_path
¶ obtain sdk platform path
-
sdk_platform_version
¶ obtain sdk platform version
-
cc
¶ path to C compiler (CC)
-
cxx
¶ path to C++ compiler (CXX)
-
ar
¶ path to archiver (AR)
-
ranlib
¶ path to archive indexer (RANLIB)
-
strip
¶ path to symbol removal utility (STRIP)
-
libtool
¶ path to libtool