Move StepGenerateXml to wgt/ 07/54707/3
authorTomasz Iwanek <t.iwanek@samsung.com>
Thu, 17 Dec 2015 08:37:47 +0000 (09:37 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Thu, 17 Dec 2015 08:49:51 +0000 (00:49 -0800)
Following to changes in: https://review.tizen.org/gerrit/#/c/54607/

StepGenerateXml will be used only for wgt.

Change-Id: I689b6a1f39fde81fe4214acec4f2bd5f3648d251

src/common/CMakeLists.txt
src/tpk/tpk_installer.cc
src/wgt/CMakeLists.txt
src/wgt/step/step_generate_xml.cc [moved from src/common/step/step_generate_xml.cc with 99% similarity]
src/wgt/step/step_generate_xml.h [moved from src/common/step/step_generate_xml.h with 83% similarity]
src/wgt/wgt_installer.cc

index 5e15d15..ee47b7f 100644 (file)
@@ -25,7 +25,6 @@ SET(SRCS
   step/step_delta_patch.cc
   step/step_fail.cc
   step/step_kill_apps.cc
-  step/step_generate_xml.cc
   step/step_recover_application.cc
   step/step_recover_files.cc
   step/step_recover_icons.cc
index 34779b3..65cb108 100644 (file)
@@ -13,7 +13,6 @@
 #include "common/step/step_delta_patch.h"
 #include "common/step/step_fail.h"
 #include "common/step/step_kill_apps.h"
-#include "common/step/step_generate_xml.h"
 #include "common/step/step_old_manifest.h"
 #include "common/step/step_open_recovery_file.h"
 #include "common/step/step_parse.h"
index feb29c0..2640375 100644 (file)
@@ -5,6 +5,7 @@ SET(SRCS
   step/step_check_wgt_background_category.cc
   step/step_create_symbolic_link.cc
   step/step_encrypt_resources.cc
+  step/step_generate_xml.cc
   step/step_parse.cc
   step/step_remove_encryption_data.cc
   step/step_parse_recovery.cc
similarity index 99%
rename from src/common/step/step_generate_xml.cc
rename to src/wgt/step/step_generate_xml.cc
index d8f58d1..fbb5d14 100644 (file)
@@ -3,7 +3,7 @@
 // Use of this source code is governed by a apache 2.0 license that can be
 // found in the LICENSE file.
 
-#include "common/step/step_generate_xml.h"
+#include "wgt/step/step_generate_xml.h"
 
 #include <boost/filesystem/path.hpp>
 #include <boost/system/error_code.hpp>
@@ -87,7 +87,7 @@ void WriteWidgetApplicationAttributes(
 
 }  // namespace
 
-namespace common_installer {
+namespace wgt {
 namespace pkgmgr {
 
 common_installer::Step::Status StepGenerateXml::GenerateApplicationCommonXml(
@@ -489,4 +489,4 @@ common_installer::Step::Status StepGenerateXml::undo() {
 }
 
 }  // namespace pkgmgr
-}  // namespace common_installer
+}  // namespace wgt
similarity index 83%
rename from src/common/step/step_generate_xml.h
rename to src/wgt/step/step_generate_xml.h
index 2a5d622..e0c369d 100644 (file)
@@ -3,8 +3,8 @@
 // Use of this source code is governed by a apache 2.0 license that can be
 // found in the LICENSE file.
 
-#ifndef  COMMON_STEP_STEP_GENERATE_XML_H_
-#define  COMMON_STEP_STEP_GENERATE_XML_H_
+#ifndef  WGT_STEP_STEP_GENERATE_XML_H_
+#define  WGT_STEP_STEP_GENERATE_XML_H_
 
 #include <manifest_parser/utils/logging.h>
 
@@ -13,7 +13,7 @@
 #include "common/installer_context.h"
 #include "common/step/step.h"
 
-namespace common_installer {
+namespace wgt {
 namespace pkgmgr {
 
 class StepGenerateXml : public common_installer::Step {
@@ -40,6 +40,6 @@ class StepGenerateXml : public common_installer::Step {
 };
 
 }  // namespace pkgmgr
-}  // namespace common_installer
+}  // namespace wgt
 
-#endif  // COMMON_STEP_STEP_GENERATE_XML_H_
+#endif  // WGT_STEP_STEP_GENERATE_XML_H_
index 70253be..00a0c21 100644 (file)
@@ -16,7 +16,6 @@
 #include "common/step/step_delta_patch.h"
 #include "common/step/step_fail.h"
 #include "common/step/step_kill_apps.h"
-#include "common/step/step_generate_xml.h"
 #include "common/step/step_open_recovery_file.h"
 #include "common/step/step_parse.h"
 #include "common/step/step_privilege_compatibility.h"
@@ -47,6 +46,7 @@
 #include "wgt/step/step_check_wgt_background_category.h"
 #include "wgt/step/step_create_symbolic_link.h"
 #include "wgt/step/step_encrypt_resources.h"
+#include "wgt/step/step_generate_xml.h"
 #include "wgt/step/step_parse.h"
 #include "wgt/step/step_parse_recovery.h"
 #include "wgt/step/step_rds_modify.h"
@@ -80,7 +80,7 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
       AddStep<wgt::filesystem::StepWgtCreateStorageDirectories>();
       AddStep<wgt::filesystem::StepCreateSymbolicLink>();
       AddStep<wgt::filesystem::StepWgtCreateIcons>();
-      AddStep<ci::pkgmgr::StepGenerateXml>();
+      AddStep<wgt::pkgmgr::StepGenerateXml>();
       AddStep<ci::pkgmgr::StepRegisterApplication>();
       AddStep<ci::security::StepRegisterSecurity>();
       break;
@@ -104,7 +104,7 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
       AddStep<wgt::filesystem::StepCreateSymbolicLink>();
       AddStep<wgt::filesystem::StepWgtCreateIcons>();
       AddStep<ci::security::StepUpdateSecurity>();
-      AddStep<ci::pkgmgr::StepGenerateXml>();
+      AddStep<wgt::pkgmgr::StepGenerateXml>();
       AddStep<ci::pkgmgr::StepUpdateApplication>();
       break;
     }
@@ -153,7 +153,7 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
       AddStep<wgt::filesystem::StepCreateSymbolicLink>();
       AddStep<wgt::filesystem::StepWgtCreateIcons>();
       AddStep<ci::security::StepUpdateSecurity>();
-      AddStep<ci::pkgmgr::StepGenerateXml>();
+      AddStep<wgt::pkgmgr::StepGenerateXml>();
       AddStep<ci::pkgmgr::StepUpdateApplication>();
       break;
     }