IF (with_x11)
pkg_check_modules(libpkgs REQUIRED ${AUL-1_LIB_PKG_CHECK_MODULES})
ENDIF (with_x11)
-IF(_APPFW_FEATURE_DEFAULT_USER)
- ADD_DEFINITIONS("-D_APPFW_FEATURE_DEFAULT_USER")
-ENDIF(_APPFW_FEATURE_DEFAULT_USER)
+IF(TIZEN_FEATURE_DEFAULT_USER)
+ ADD_DEFINITIONS("-DTIZEN_FEATURE_DEFAULT_USER")
+ENDIF(TIZEN_FEATURE_DEFAULT_USER)
FOREACH(flag ${libpkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
%endif
%if "%{?profile}" == "tv"
-%define appfw_feature_default_user 1
+%define tizen_feature_default_user 1
%else
-%define appfw_feature_default_user 0
+%define tizen_feature_default_user 0
%endif
%description
CFLAGS="%{optflags} -D__emul__"; export CFLAGS
%endif
-%if 0%{?appfw_feature_default_user}
-_APPFW_FEATURE_DEFAULT_USER=ON
+%if 0%{?tizen_feature_default_user}
+TIZEN_FEATURE_DEFAULT_USER=ON
%endif
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%if %{with x}
-Dwith_x11=TRUE \
%endif
- -D_APPFW_FEATURE_DEFAULT_USER:BOOL=${_APPFW_FEATURE_DEFAULT_USER} \
+ -DTIZEN_FEATURE_DEFAULT_USER:BOOL=${TIZEN_FEATURE_DEFAULT_USER} \
.
%__make %{?_smp_mflags}
#include <sys/xattr.h>
#include <errno.h>
#include <fcntl.h>
-#ifdef _APPFW_FEATURE_DEFAULT_USER
+#ifdef TIZEN_FEATURE_DEFAULT_USER
#include <tzplatform_config.h>
#endif
#define MAX_NR_OF_DESCRIPTORS 2
-#ifdef _APPFW_FEATURE_DEFAULT_USER
+#ifdef TIZEN_FEATURE_DEFAULT_USER
#define REGULAR_UID_MIN 5000
static uid_t default_uid;
static int default_uid_initialized;
}
}
-#ifdef _APPFW_FEATURE_DEFAULT_USER
+#ifdef TIZEN_FEATURE_DEFAULT_USER
if (uid < REGULAR_UID_MIN) {
if (!default_uid_initialized) {
default_uid = tzplatform_getuid(TZ_SYS_DEFAULT_USER);
}
}
-#ifdef _APPFW_FEATURE_DEFAULT_USER
+#ifdef TIZEN_FEATURE_DEFAULT_USER
if (uid < REGULAR_UID_MIN) {
if (!default_uid_initialized) {
default_uid = tzplatform_getuid(TZ_SYS_DEFAULT_USER);
#include <pkgmgr-info.h>
#include <bundle.h>
#include <bundle_internal.h>
-#ifdef _APPFW_FEATURE_DEFAULT_USER
+#ifdef TIZEN_FEATURE_DEFAULT_USER
#include <tzplatform_config.h>
#endif
#define LAUNCHPAD_PROCESS_POOL_SOCK ".launchpad-process-pool-sock"
#define APP_TYPE_UI "uiapp"
#define APP_TYPE_SERVICE "svcapp"
-#ifdef _APPFW_FEATURE_DEFAULT_USER
+#ifdef TIZEN_FEATURE_DEFAULT_USER
#define REGULAR_UID_MIN 5000
#endif
#define INOTIFY_BUF (1024 * ((sizeof(struct inotify_event)) + 16))
if (argc == 1)
print_usage(argv[0]);
-#ifdef _APPFW_FEATURE_DEFAULT_USER
+#ifdef TIZEN_FEATURE_DEFAULT_USER
if (uid < REGULAR_UID_MIN)
uid = tzplatform_getuid(TZ_SYS_DEFAULT_USER);
#endif