I use cdt.managedbuild.toolchain.gnu.exe.release, that provide me an external builder and the good build command : make -f ${ProjDirPath}/makefile.
Now I want to disable the makefile generation programmatically. Can you tell my how to do this ?
IConfiguration config = mProj.createConfiguration(icf, id);
des.createConfiguration(
ManagedBuildManager.CFG_DATA_PROVIDER_ID,
config.getConfigurationData());
IBuilder bld = config.getEditableBuilder();
if (bld != null) {
bld.setManagedBuildOn(true);
bld.setUseDefaultBuildCmd(true);
}
config.setName(toolChain.getName());
config.setArtifactName(project.getName());
config.setBuildArguments("-f ${ProjDirPath}/makefile -k");
config.getBuilder().setCleanBuildEnable(true);
config.getBuilder().setAutoBuildEnable(true);
config.getBuilder().setBuildAttribute(
IBuilder.BUILD_TARGET_CLEAN, "clean");
config.getBuilder().setBuildAttribute(
IBuilder.BUILD_TARGET_INCREMENTAL, "Build");
config.getBuilder().setBuildAttribute(
IBuilder.BUILD_TARGET_AUTO, "Build");
config.getBuilder().setBuildAttribute(
IMakeCommonBuildInfo.BUILD_LOCATION,
"${ProjDirPath}/log");
config.setCleanCommand("rm -Rf $(CWD)\\..\\GENERATION");
config.getBuilder().setIncrementalBuildEnable(true);