OPTION(CSP_SUPPORT "Support for csp policy" ON)
OPTION(ALLOW_NAVIGATION_SUPPORT "Support for allow-navigation" ON)
OPTION(SMACK "Enable smack support" ON)
-
+OPTION(DECRYPT_SUPPORT "Enable appmanager capabilities" ON)
+IF(DECRYPT_SUPPORT)
+ ADD_DEFINITIONS("-DDECRYPT")
+ENDIF(DECRYPT_SUPPORT)
############################# compiler flags ##################################
SET(CMAKE_C_FLAGS_PROFILING "-O2")
%bcond_with livebox
+%bcond_with decrypt
Name: wrt-installer
Summary: Installer for tizen Webruntime
Version: 0.1.58.2
BuildRequires: pkgconfig(web-provider)
%endif
BuildRequires: pkgconfig(libprivilege-control)
+BuildRequires: pkgconfig(libsmack)
+%if %{with decrypt}
BuildRequires: pkgconfig(osp-appfw)
BuildRequires: osp-appfw-internal-devel
-BuildRequires: pkgconfig(libsmack)
Requires: osp-appfw
+%endif
Requires: xmlsec1
%description
%else
-DLIVEBOX_SUPPORT=Off \
%endif
+%if %{with decrypt}
+ -DDECRYPT_SUPPORT=On \
+%else
+ -DDECRYPT_SUPPORT=Off \
+%endif
-DSMACK=Off \
-DDPL_LOG=ON \
-DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
MESSAGE(STATUS "add -DSEP_INSTALLER")
ADD_DEFINITIONS("-DSEP_INSTALLER")
-
+IF(DECRYPT_SUPPORT)
PKG_CHECK_MODULES(INSTALLER_STATIC_DEP
dpl-efl
dpl-event-efl
libsmack
REQUIRED
)
+ELSE(DECRYPT_SUPPORT)
+PKG_CHECK_MODULES(INSTALLER_STATIC_DEP
+ dpl-efl
+ dpl-event-efl
+ dpl-utils-efl
+ dpl-wrt-dao-ro
+ dpl-wrt-dao-rw
+ wrt-commons-custom-handler-dao-rw
+ wrt-commons-security-origin-dao
+ wrt-plugins-types
+ pkgmgr-installer
+ pkgmgr-parser
+ pkgmgr-info
+ libsmack
+ REQUIRED
+)
+ENDIF(DECRYPT_SUPPORT)
IF(LIVEBOX_SUPPORT)
PKG_CHECK_MODULES(web-provider)
)
#for encryption
+IF(DECRYPT_SUPPORT)
TARGET_LINK_LIBRARIES(${TARGET_INSTALLER_STATIC} -L/usr/lib/osp -losp-appfw )
+ENDIF(DECRYPT_SUPPORT)
ADD_SUBDIRECTORY(pkg-manager)
ADD_SUBDIRECTORY(wrt-installer)
setTizenId(configData);
setApplicationType(configData);
m_needEncryption = detectResourceEncryption(configData);
+#ifdef DECRYPT
+ if(m_needEncryption)
+ {
+ LogError("Encryption is not supported in this version. Please Enable DECRYPT_SUPPORT");
+ return ConfigureResult:Failed;
+ }
+#endif
setInstallLocationType(configData);
// Configure installation
#include <dpl/scoped_fclose.h>
#include <dpl/wrt-dao-ro/global_config.h>
#include <dpl/string.h>
+#ifdef DECRYPT
#include <FBaseByteBuffer.h>
#include <security/FSecCrypto_TrustZoneService.h>
-
+#endif
#include <widget_install/job_widget_install.h>
#include <widget_install/widget_install_context.h>
#include <widget_install/widget_install_errors.h>
}
} while ((bytesWritten != bytesToWrite) && (EINTR == errno));
}
+#ifdef DECRYPT
/*
* get encrypted string from trustzone
return pInstance->_TrustZoneService::DecryptN(*appInfo, pBuf);
}
+#endif
}
namespace Jobs {
DPL::TaskDecl<TaskEncryptResource>(this),
m_context(context)
{
+#ifdef DECRYPT
+
AddStep(&TaskEncryptResource::StepEncryptResource);
+#endif
}
+#ifdef DECRYPT
void TaskEncryptResource::StepEncryptResource()
{
m_context.widgetConfig.encryptedFiles.insert(fileInfo);
}
-
+#endif
} //namespace WidgetInstall
} //namespace Jobs