License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
+%define BUILD_PROFILE %{?profile}%{!?profile:%{?tizen_profile_name}}
+
BuildRequires: cmake
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(bundle)
export CXXFLAGS+=" -DTIZEN_ENGINEER_MODE"
export FFLAGS+=" -DTIZEN_ENGINEER_MODE"
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DMAJORVER=${MAJORVER} -DFULLVER=%{version}
+%if "%{?BUILD_PROFILE}" == "tv"
+export CFLAGS+=" -D_ALLOW_SERVICE_APP_TRIGGER_"
+export CXXFLAGS+=" -D_ALLOW_SERVICE_APP_TRIGGER_"
+%endif
+
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DMAJORVER=${MAJORVER} -DFULLVER=%{version} -DPROFILE=%{?BUILD_PROFILE}
make %{?jobs:-j%jobs}
%install
g_free(app_id);
IF_FAIL_RETURN_TAG(error == PMINFO_R_OK, CONTEXT_TRIGGER_ERROR_INVALID_RULE, _E, "No such app");
+#ifndef _ALLOW_SERVICE_APP_TRIGGER_
char *app_type = NULL;
pkgmgrinfo_appinfo_get_component_type(app_info, &app_type);
if (!strcmp(app_type, "svcapp")) {
pkgmgrinfo_appinfo_destroy_appinfo(app_info);
return CONTEXT_TRIGGER_ERROR_INVALID_RULE;
}
+#endif
pkgmgrinfo_appinfo_destroy_appinfo(app_info);
// Set action type