public class CmakeUtils
extends java.lang.Object
Constructor and Description |
---|
CmakeUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getBuildCommand(java.io.File cmakeExecutable,
java.io.File outputFolder,
java.lang.String targetName)
Returns the build command for the given target (given the output folder and cmake
executable).
|
static java.util.Set<java.lang.String> |
getCExtensionSet(CodeModel codeModel)
Returns the C file extensions for the given code model.
|
static java.lang.String |
getCleanCommand(java.io.File cmakeExecutable,
java.io.File outputFolder)
Returns the command to clean up for the given target (given the output folder and cmake
executable).
|
static java.util.Set<java.lang.String> |
getCppExtensionSet(CodeModel codeModel)
Returns the C++ file extensions for the given code model.
|
static <ContentType> |
getObjectToString(ContentType content)
Returns a JSON string representation of the given object.
|
static int |
getToolchainHash(com.android.build.gradle.internal.cxx.json.NativeToolchainValue toolchainValue)
Returns the toolchain hash for the given toolchain.
|
static com.android.repository.Revision |
getVersion(java.io.File cmakeInstallPath)
Parses the Cmake (from the given install path) version string into a structure.
|
static com.android.repository.Revision |
getVersion(java.lang.String cmakeVersionString) |
@NonNull public static com.android.repository.Revision getVersion(@NonNull java.io.File cmakeInstallPath) throws java.io.IOException
java.io.IOException
- I/O failure@NonNull public static com.android.repository.Revision getVersion(@NonNull java.lang.String cmakeVersionString)
@NonNull public static java.lang.String getBuildCommand(@NonNull java.io.File cmakeExecutable, @NonNull java.io.File outputFolder, @NonNull java.lang.String targetName)
@NonNull public static java.lang.String getCleanCommand(@NonNull java.io.File cmakeExecutable, @NonNull java.io.File outputFolder)
@NonNull public static java.util.Set<java.lang.String> getCppExtensionSet(@NonNull CodeModel codeModel)
@NonNull public static java.util.Set<java.lang.String> getCExtensionSet(CodeModel codeModel)
public static int getToolchainHash(@NonNull com.android.build.gradle.internal.cxx.json.NativeToolchainValue toolchainValue)
@Nullable public static <ContentType> java.lang.String getObjectToString(@Nullable ContentType content)