BUILD: Passed --dist option when building a project if rootstrap has
authordonghyuk.yang <donghyuk.yang@samsung.com>
Fri, 25 Apr 2014 02:28:40 +0000 (11:28 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Fri, 25 Apr 2014 02:28:40 +0000 (11:28 +0900)
local repository

If rootstrap is created based on local repository, "--dist" option
should be used when building a platform project

Change-Id: Iab02dad3dff86c1baa4fbccba9509a9b18d6cfae
Signed-off-by: donghyuk.yang <donghyuk.yang@samsung.com>
org.tizen.nativeplatform/src/org/tizen/nativeplatform/build/gbs/GBSBuildCommandProvider.java

index f89d035..12850f8 100644 (file)
@@ -51,6 +51,7 @@ public class GBSBuildCommandProvider implements IBuildCommandProvider {
     public static final String DEFINE_OP = "--define";
     public static final String BUILDROOT_OP = "--buildroot";
     public static final String EXTRAPKG_OP = "--extra-packs";
+    public static final String DIST_OP = "--dist";
 
     public GBSBuildCommandProvider(IConfiguration config) {
         this.config = config;
@@ -82,6 +83,9 @@ public class GBSBuildCommandProvider implements IBuildCommandProvider {
         for (String op : PlatformConfigurationManager.getGBSOptions(config)) {
             args.add(op);
         }
+        if (rt.getConfFile() != null) {
+            args.add(String.format("%s=%s", DIST_OP, rt.getConfFile().toString()));
+        }
         args.add(DEFINE_OP);
         args.add("BUILD_TYPE ${BUILD_TYPE}");
         return args.toArray(new String[0]);