Enable r2r/fnv selection for -regen-all-app option. accepted/tizen/unified/20190403.064844 submit/tizen/20190402.104048
authorWoongsuk Cho <ws77.cho@samsung.com>
Wed, 6 Mar 2019 04:05:52 +0000 (13:05 +0900)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Mon, 11 Mar 2019 23:25:01 +0000 (08:25 +0900)
Previous implemenataion supports r2r mode only for --regen-all-app.
For convinence of development enable --r2r option for --regen-all-app.

ex) nitool --r2r --rege-all-app

NativeLauncher/installer-plugin/nitool.cc

index 5339bae..afae251 100644 (file)
@@ -41,24 +41,27 @@ static void help(const char *argv0)
 {
        const char* helpDesc =
                "Usage: %s [args] <root paths or pkg name>\n"
-               "               --help              - Display this screen\n"
-               "               --system            - Create NI under System DLLs\n"
-               "               --dll               - Create NI for DLL\n"
-               "               --pkg               - Create NI for package\n"
-               "               --dir               - Create NI for directory\n"
-               "               --r2r               - Use ready-to-run option (default: FNV)\n"
-               "               --reset-system      - Remove System NI files\n"
-               "               --reset-pkg         - Remove App NI files\n"
-               "               --regen-all-app     - Re-generate All App NI files\n"
+               "       --help              - Display this screen\n"
+               "       --system            - Create NI under System DLLs\n"
+               "       --dll               - Create NI for DLL\n"
+               "       --pkg               - Create NI for package\n"
+               "       --dir               - Create NI for directory\n"
+               "       --r2r               - Use ready-to-run option (default: FNV)\n"
+               "                             (This option should be used with other options)\n"
+               "       --reset-system      - Remove System NI files\n"
+               "       --reset-pkg         - Remove App NI files\n"
+               "       --regen-all-app     - Re-generate All App NI files\n"
                "\n"
                "Example:\n"
-               "Create native image for dlls and exes under platform directories\n"
-               "%s --system\n"
-               "Create native image for dll\n"
-               "%s --dll /usr/bin/Tizen.Runtime.dll\n"
-               "Create native image under the package's bin and lib directory\n"
-               "%s --pkg org.tizen.FormsGallery\n\n";
-       printf(helpDesc, argv0, argv0, argv0, argv0);
+               "1. Create native image for dlls and exes under platform directories\n"
+               "   # %s --system\n"
+               "2. Create native image for dll\n"
+               "   # %s --dll /usr/bin/Tizen.Runtime.dll\n"
+               "3. Create native image under the package's bin and lib directory\n"
+               "   # %s --pkg org.tizen.FormsGallery\n"
+               "4. Regenerate native images for all installed .net packages with ready-to-run option\n"
+               "   # %s --r2r --regen-all-app\n\n";
+       printf(helpDesc, argv0, argv0, argv0, argv0, argv0);
 }
 
 int main(int argc, char* argv[])