Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Builder configuration CDT nature

Hi Robin,

I looked at the code for the Builder settings page. Have you tried this?
bld.setManagedBuildOn(false);

Hope this helps,
Marc-Andre

On 14-03-11 10:42 AM, Robin Bussenot wrote:
Hi, 
I'm creating a plugin to export a specific kind of C or C++ project. 
This project have his own makefile generated by an external tool. 

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 ? 

That a sample of my code : 

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);

Robin 


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top