manages simulation of security-manager
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 29 Dec 2015 14:08:15 +0000 (15:08 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 29 Dec 2015 14:13:46 +0000 (15:13 +0100)
Change-Id: Ia465bab3ae99e95daa7afd5bd22a98bea1bfef17

CMakeLists.txt
README.md
TODO
src/CMakeLists.txt

index 2e6995c..f62a279 100644 (file)
@@ -29,6 +29,7 @@ macro(setc name value)
 endmacro(setc)
 
 setc(USE_LIBZIP 1)
+setc(USE_SIMULATION 1)
 
 setc(afm_name                "aglfwk")
 setc(afm_confdir             "${CMAKE_INSTALL_FULL_SYSCONFDIR}/${afm_name}")
index e5ce6c6..96640c5 100644 (file)
--- a/README.md
+++ b/README.md
@@ -22,6 +22,7 @@ This package requires the following libraries or modules:
 - ***xmlsec1-openssl***
 - ***json-c***
 - ***dbus-1***
+- ***security-manager***
 
 This package also requires either ***libzip*** (version >= 0.11) 
 or the binaries ***zip*** and ***unzip***. By default, it will
@@ -78,6 +79,10 @@ The installed programs are:
 - ***wgtpkg-sign***: command line tool to add a signature
   to a widget directory.
 
+## Description
+
+The framework defined by afm-main 
+
 ## Comparison with Tizen framework
 
 This package is providing few less behaviour than
@@ -93,6 +98,10 @@ the following Tizen packages:
 
 ### Details about widgets
 
+The widgets are specified in that W3C recommandation: 
+[Packaged Web Apps](http://www.w3.org/TR/widgets).
+This model was initially designed for HTML applications.
+But it is well suited for other kind of applications.
 
 ### Details about dependencies
 
@@ -105,5 +114,5 @@ For details, you can dig into internet the following links:
 - [D-Bus](http://www.freedesktop.org/wiki/Software/dbus)
 - [libzip](http://www.nih.at/libzip)
 - [CMake](https://cmake.org)
-
+- [Security-Manager](https://wiki.tizen.org/wiki/Security/Tizen_3.X_Security_Manager)
 
diff --git a/TODO b/TODO
index 136911e..6e89fef 100644 (file)
--- a/TODO
+++ b/TODO
@@ -2,5 +2,5 @@ List of things to do
 - Implement CRL and OCSP parts of x509
 - Implement permissions grant based on certificates
 - more documentation
-- more launchers
 - notifications
+- manage upgrade packages
index 89d4d51..c47e632 100644 (file)
@@ -46,7 +46,14 @@ endif(USE_LIBZIP)
 
 ###########################################################################
 
-include_directories(simulation)
+if(USE_SIMULATION)
+       include_directories(simulation)
+else(USE_SIMULATION)
+       pkg_check_modules(SECMGR REQUIRED security-manager)
+       add_compile_options(${SECMGR_CFLAGS})
+       include_directories(${SECMGR_INCLUDE_DIRS})
+       link_libraries(${SECMGR_LIBRARIES})
+endif(USE_SIMULATION)
 
 ###########################################################################