Remove Profile Build Dependency: Do it at runtime 46/97546/25 accepted/tizen/common/20170223.182438 accepted/tizen/ivi/20170223.120346 accepted/tizen/mobile/20170223.120312 accepted/tizen/tv/20170223.120328 accepted/tizen/unified/20170309.033730 accepted/tizen/wearable/20170223.120339 submit/tizen/20170223.080352 submit/tizen_unified/20170308.100409
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 14 Nov 2016 10:24:01 +0000 (19:24 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 15 Feb 2017 05:42:25 +0000 (14:42 +0900)
commitc6ea5bcb123ccf11d2864a3a84ba6da063467b5a
treec81e46c7aab6dadd52bca1fe80e4a89b9225f7d6
parent494598ea2359fecd5d4796923d6bf8678e2f32bc
Remove Profile Build Dependency: Do it at runtime

- This is for Tizen 4.0.

  : Tizen 4.0 Configurability and Build Blocks require
  to remove all profile-depending build options in spec files.
  (No More profile macros!)

- It is recommended to distinguish features/profiles at runtime.
 unless it incurs too much overhead, which requires you to
 create multiple binaries and subpackages.

  The configuration file is /etc/privilege-checker.ini

  For example:
$ cat /etc/privilege-checker.ini
[General]
Profile = mobile
$

  You can apply same ini file for server-running scenarios.

- This has a bit of code cleaning in build scripts.
 (e.g., BuildRequires is global to all subpackages.)

- When you SR this, you need to create JIRA-TRE of:

  : Add security-privilege-manager-profile_tv for tv profile
  : Add security-privilege-manager-profile_wearable for wearable profile
  : Add security-privilege-manager-profile_mobile for wearable profile

patchset7: rebased and coding style updated

Change-Id: I901bf017cd088bbb657144ad34a8d1209b648f15
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
15 files changed:
CMakeLists.txt
capi/CMakeLists.txt
capi/include/privilege_private.h [new file with mode: 0644]
capi/res/dbspace/CMakeLists.txt
capi/src/privilege_db_manager.c
capi/src/privilege_info.c
packaging/privilege-checker.ini [new file with mode: 0644]
packaging/privilege-checker.spec
test/CMakeLists.txt
test/tc-common.c
test/tc-common.h
test/tc-privilege-db-manager.c
test/tc-privilege-info.c
test/tc-privilege-manager.c
tool/CMakeLists.txt