@Override
public void pressDefaultPostValueStore(Map<String, String> valueStore, TizenTemplate template) throws TizenProcessFailureException {
- pressValueStoreForSrcObjDep(valueStore, template);
+ //MACRO_SRCS, MACRO_OBJ, MACRO_DEP is not used in makefile anymore.
+// pressValueStoreForSrcObjDep(valueStore, template);
pressValueStoreForBuildData(valueStore, template);
String projectName = template.getProjectName();
import org.tizen.nativecommon.templateengine.build.model.TargetModel;
import org.tizen.nativecommon.templateengine.build.util.BuildPluginUtil;
import org.tizen.nativecommon.templateengine.model.TizenTemplate;
+import org.tizen.nativecpp.misc.core.NewAppXmlStore;
public class NativeMain extends AbstractLauncher {
private void executeMakefile(CommandLine cmdLine) throws Exception {
Prompter prompter = getPrompter();
- File manifestFile = new File("manifest.xml");
-
- if(!manifestFile.exists()) {
- prompter.error("manifext.xml does not exist.");
- return;
- }
String projectType = cmdLine.getOptionValue(OPTION_MAKE_PROJECTTYPE);
String projectId = PROJECTTYPE_MAP.get(projectType);
}
String binaryName = cmdLine.getOptionValue(OPTION_MAKE_BINARY);
+ String projectPath = new File(StringUtil.EMPTY_STRING).getAbsolutePath();
if(StringUtil.isEmpty(binaryName)) {
- binaryName = new File(StringUtil.EMPTY_STRING).getName();
+
+ //Only application has a manifest.xml
+ if(projectType.equals(PROJECTTYPE_APP)) {
+ File manifestFile = new File("manifest.xml");
+ if(!manifestFile.exists()) {
+ prompter.error("manifext.xml does not exist.");
+ return;
+ }
+ NewAppXmlStore store = new NewAppXmlStore();
+ store.loadXML(manifestFile.getAbsolutePath());
+ binaryName = store.getModel().getAppList().get(0).getName();
+ }
+ else {
+ binaryName = FileUtil.getFileNameFromPath(projectPath);
+ }
}
- String projectPath = new File(StringUtil.EMPTY_STRING).getAbsolutePath();
-
TargetModel target = BuildPluginManagerForCLI.getDefaultTarget(projectId, BuildPluginUtil.ARCH_I386);
RootstrapModel rootstrap = target.getRootstrap();
HashMap<String, DevPackageModel> devPkgMap = BuildPluginManagerForCLI.DEVPKG_MAP.get(rootstrap.getId());