OPTION(MULTIPROCESS_SERVICE_SUPPORT_INLINE "Process per service - inline mode support" OFF)
OPTION(CSP_SUPPORT "Support for csp policy" ON)
OPTION(ALLOW_NAVIGATION_SUPPORT "Support for allow-navigation" ON)
+OPTION(SMACK "Enable smack support" ON)
############################# compiler flags ##################################
ADD_DEFINITIONS("-Wno-variadic-macros") # Inhibit variadic macros warnings (needed for ORM)
ADD_DEFINITIONS("-Wno-deprecated") # No warnings about deprecated features
ADD_DEFINITIONS("-std=c++0x") # accept C++11x standard
-ADD_DEFINITIONS("-DWRT_SMACK_ENABLED") # enable smack
+
+IF(SMACK)
+ ADD_DEFINITIONS("-DWRT_SMACK_ENABLED")
+ENDIF(SMACK)
############################# Targets names ###################################
bool TaskSmack::setLabelForSharedDir(const char* pkgId)
{
+#ifdef WRT_SMACK_LABEL
/* shared directory */
if (PC_OPERATION_SUCCESS != app_label_dir("*",
m_context.locations->getSharedRootDir().c_str())) {
return false;
}
freeList(pList);
+#endif
return true;
}
} //namespace WidgetInstall