# HG changeset patch # User timkelly # Date 1246385435 18000 # Node ID 6f5ea15e52ffea6f7c7e3fc150138eb5d8d611af # Parent 31403302c38ea99e8fcfb7c93158bc0406247153 Fix API break, add back in generateAbldMakefileIfNecessary(ICarbideBuildConfiguration, CarbideCommandLauncher, IPath, boolean), but leave deprecated. diff -r 31403302c38e -r 6f5ea15e52ff builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/builder/builder/CarbideCPPBuilder.java --- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/builder/builder/CarbideCPPBuilder.java Tue Jun 30 13:04:25 2009 -0500 +++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/builder/builder/CarbideCPPBuilder.java Tue Jun 30 13:10:35 2009 -0500 @@ -980,6 +980,26 @@ * @param componentPath the absolute file system path of the component * @param isTest true for test components, false otherwise * @return false if any makefile generation was necessary but failed, true otherwise + * + * @deprecated use {@link #generateAbldMakefileIfNecessary(ICarbideBuildConfiguration, CarbideCommandLauncher, IPath, boolean, IProgressMonitor)} instead + */ + protected static boolean generateAbldMakefileIfNecessary(ICarbideBuildConfiguration config, CarbideCommandLauncher launcher, IPath componentPath, boolean isTest) { + return generateAbldMakefileIfNecessary(config, launcher, componentPath, isTest, new NullProgressMonitor()); + } + + /** + * Generates the abld makefile if necessary. + * Generates the makefile for the given mmp file if: + * 1) the makefile for the mmp does not exist + * 2) if the mmp or any of its includes is newer than the makefile + * 3) the makefile does not have the necessary Carbide changes + * + * The command used will be 'abld [test] makefile platform mmpname' + * @param config the build configuration context + * @param launcher the Carbide launcher + * @param componentPath the absolute file system path of the component + * @param isTest true for test components, false otherwise + * @return false if any makefile generation was necessary but failed, true otherwise */ protected static boolean generateAbldMakefileIfNecessary(ICarbideBuildConfiguration config, CarbideCommandLauncher launcher, IPath componentPath, boolean isTest, IProgressMonitor progress) { return getBuilder(config.getCarbideProject().getProject()).generateAbldMakefileIfNecessary(config, launcher, componentPath, isTest, progress);