AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/filesystem TPK_STEP_FILESYSTEM_SRCS)
AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/pkgmgr TPK_STEP_PKGMGR_SRCS)
AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/security TPK_STEP_SECURITY_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../lib LIB_SRCS)
ADD_LIBRARY(${TARGET_LIBNAME_TPK} SHARED
${TPK_SRCS}
${TPK_STEP_CONFIGURATION_SRCS}
${TPK_STEP_FILESYSTEM_SRCS}
${TPK_STEP_PKGMGR_SRCS}
- ${TPK_STEP_SECURITY_SRCS})
+ ${TPK_STEP_SECURITY_SRCS}
+ ${LIB_SRCS})
ADD_EXECUTABLE(${TARGET_TPK_BACKEND} "tpk_backend.cc")
TARGET_INCLUDE_DIRECTORIES(${TARGET_LIBNAME_TPK} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../")
TPK_MANIFEST_HANDLERS_DEPS
CAPI_SYSTEM_INFO_DEPS
TTRACE_DEPS
+ VCONF_DEPS
Boost
)
#include <common/step/security/step_privilege_compatibility.h>
#include <common/step/security/step_recover_privilege_compatibility.h>
+#include "lib/tpk_archive_info.h"
#include "tpk/step/configuration/step_adjust_install_location.h"
#include "tpk/step/configuration/step_check_reinstall_manifest.h"
#include "tpk/step/filesystem/step_create_external_storage_directories.h"
TpkInstaller::~TpkInstaller() {
}
+std::unique_ptr<ci::ArchiveInfo> TpkInstaller::GetArchiveInfo() {
+ std::unique_ptr<TpkArchiveInfo> archive_info;
+ archive_info.reset(new TpkArchiveInfo(pkgmgr_->GetRequestInfo(GetIndex())));
+ return archive_info;
+}
void TpkInstaller::InstallSteps() {
AppInstaller::InstallSteps();
explicit TpkInstaller(common_installer::PkgMgrPtr pkgmgr);
~TpkInstaller();
void Prepare();
+ std::unique_ptr<common_installer::ArchiveInfo> GetArchiveInfo() override;
protected:
void InstallSteps() override;