use of com.android.tools.idea.gradle.dsl.model.android.externalNativeBuild.CMakeModel in project android by JetBrains.
the class ExternalNativeBuildModelTest method testCMake.
public void testCMake() throws Exception {
String text = "android {\n" + " externalNativeBuild {\n" + " cmake {\n" + " path file(\"foo/bar\")\n" + " }\n" + " }\n" + "}";
writeToBuildFile(text);
AndroidModel android = getGradleBuildModel().android();
assertNotNull(android);
ExternalNativeBuildModel externalNativeBuild = android.externalNativeBuild();
assertTrue(externalNativeBuild.hasValidPsiElement());
CMakeModel cmake = externalNativeBuild.cmake();
assertTrue(cmake.hasValidPsiElement());
assertEquals("path", new File("foo/bar"), cmake.path());
}
Aggregations