[CLI] Add the "--rootstrap" option to "build-native" command.
authorSangJin Kim <sangjin3.kim@samsung.com>
Tue, 23 Feb 2016 02:32:32 +0000 (11:32 +0900)
committerSangJin Kim <sangjin3.kim@samsung.com>
Thu, 3 Mar 2016 05:34:21 +0000 (14:34 +0900)
Change-Id: I5b2e1f8ab37f9abdf445f94e494d224b7c8015bc
Signed-off-by: SangJin Kim <sangjin3.kim@samsung.com>
org.tizen.devtools/html/native_tools/command_line_interface_n.htm

index 1624e49..da3ea0a 100644 (file)
@@ -118,7 +118,7 @@ Sets the default connection timeout value. The default is 60000 milliseconds.</p
 <td> <p>Displays the profile templates in a list corresponding to the given sub-command.</p>
 <p><strong>Syntax:</strong></p>  
 <ul><pre class="prettyprint">
-&nbsp;&nbsp;<strong>tizen list</strong> native-project
+&nbsp;&nbsp;<strong>tizen list</strong> {native-project|web-project|rootstrap}
 </pre></ul>
 
 <p><strong>Examples:</strong></p>
@@ -196,7 +196,7 @@ Sets the default connection timeout value. The default is 60000 milliseconds.</p
 <p><strong>Syntax:</strong></p> 
 <ul><pre class="prettyprint">
 &nbsp;&nbsp;<strong>tizen build-native</strong> [-a {x86|arm}] [-c {gcc|llvm}] 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-C {Debug|Release}] [-j &lt;number of parallel builds&gt;] [--]
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-C {Debug|Release}] [-j &lt;number of parallel builds&gt;] [-r &lt;rootstrap name&gt;] [--]
 </pre></ul>
 
 <p><strong>Options:</strong></p>
@@ -209,6 +209,8 @@ Sets the default connection timeout value. The default is 60000 milliseconds.</p
 <p>Specifies the build configuration.</p></li>
 <li><span style="font-family: Courier New,Courier,monospace;">-j, --jobs</span>:
 <p>Specifies the number of parallel builds for the native application.</p></li>
+<li><span style="font-family: Courier New,Courier,monospace;">-r, --rootstrap</span>:
+<p>Specifies the rootstrap name. The rootstrap has the information of the architecture type and the compiler. So if you use this option with the -C (--configuration) option, you can build a native project without other options.</p></li>
 <li><span style="font-family: Courier New,Courier,monospace;">--</span>:
 <p>Specifies the project directory.</p></li>
 </ul>
@@ -216,14 +218,30 @@ Sets the default connection timeout value. The default is 60000 milliseconds.</p
 <ul>
 <li><p>Builds the project with the llvm compiler and the debug mode. The x86 executable named basic is generated, if the project is built successfully:</p>
 <pre class="prettyprint">
-&nbsp;&nbsp;$ tizen build-native -–arch x86 –-compiler llvm –-configuration Debug -- /home/workspace/basic
+&nbsp;&nbsp;$ tizen build-native --arch x86 --compiler llvm --configuration Debug -- /home/workspace/basic
 &nbsp;&nbsp;$ ls /home/workspace/basic/Debug/
 </pre>
+<pre class="prettyprint">
+&nbsp;&nbsp;$ tizen list rootstrap
+&nbsp;&nbsp;[ROOTSTRAP]                              [INFORMATION]
+&nbsp;&nbsp;mobile-2.4-emulator.core                 Mobile 2.4, i386
+&nbsp;&nbsp;mobile-2.4-device.core                   Mobile 2.4, armel
+&nbsp;&nbsp;$ tizen build-native --rootstrap mobile-2.4-device.core --configuration Release -- /home/workspace/basic
+&nbsp;&nbsp;$ ls /home/workspace/basic/Release/
+</pre>
 <p>Or for Windows:</p>
 <pre class="prettyprint">
-&nbsp;&nbsp;&gt; tizen.bat build-native -–arch x86 –-compiler llvm –-configuration Debug -- C:\Users\workspace\basic
+&nbsp;&nbsp;&gt; tizen.bat build-native --arch x86 --compiler llvm --configuration Debug -- C:\Users\workspace\basic
 &nbsp;&nbsp;&gt; dir C:\Users\workspace\basic\Debug
 </pre>
+<pre class="prettyprint">
+&nbsp;&nbsp;&gt; tizen.bat list rootstrap
+&nbsp;&nbsp;[ROOTSTRAP]                              [INFORMATION]
+&nbsp;&nbsp;mobile-2.4-emulator.core                 Mobile 2.4, i386
+&nbsp;&nbsp;mobile-2.4-device.core                   Mobile 2.4, armel
+&nbsp;&nbsp;&gt; tizen.bat build-native --rootstrap mobile-2.4-device.core --configuration Release -- C:\Users\workspace\basic
+&nbsp;&nbsp;&gt; dir C:\Users\workspace\basic\Release
+</pre>
 </li>
 <li><p>Builds the project with the default options:</p>
 <pre class="prettyprint">