-defstr(FWK_CONFIG_DIR "${afm_confdir}")
-defstr(FWK_PREFIX_PERMISSION "${afm_prefix_permission}")
-defstr(FWK_PREFIX_PLUGIN "${afm_prefix_plugin}")
-defstr(FWK_ICON_DIR "${afm_icondir}")
-defstr(FWK_APP_DIR "${afm_appdir}")
-defstr(FWK_USER_APP_DIR "${afm_user_appdir}")
-defstr(WGTPKG_TRUSTED_CERT_DIR "${wgtpkg_trusted_cert_dir}")
-defstr(FWK_LAUNCH_CONF "${afm_confdir}/afm-launch.conf")
+add_definitions(
+ -DFWK_CONFIG_DIR="${afm_confdir}"
+ -DFWK_PREFIX="${afm_prefix}"
+ -DFWK_ICON_DIR="${afm_icondir}"
+ -DFWK_APP_DIR="${afm_appdir}"
+ -DFWK_USER_APP_DIR="${afm_user_appdir}"
+ -DWGTPKG_TRUSTED_CERT_DIR="${wgtpkg_trusted_cert_dir}"
+ -DFWK_LAUNCH_CONF="${afm_confdir}/afm-launch.conf"
+ -DFWK_UNIT_CONF="${afm_confdir}/afm-unit.conf"
+ -DFWK_USER_APP_DIR_LABEL="${afm_user_appdir_label}"
+ -DSYSTEMD_UNITS_ROOT="${systemd_units_root}"
+ -DAFM_VERSION="${PROJECT_VERSION}"
+)
+if(ALLOW_NO_SIGNATURE)
+ add_definitions(-DDEFAULT_ALLOW_NO_SIGNATURE=1)
+else(ALLOW_NO_SIGNATURE)
+ add_definitions(-DDEFAULT_ALLOW_NO_SIGNATURE=0)
+endif(ALLOW_NO_SIGNATURE)
+if(DISTINCT_VERSIONS)
+ add_definitions(-DDISTINCT_VERSIONS=1)
+else(DISTINCT_VERSIONS)
+ add_definitions(-DDISTINCT_VERSIONS=0)
+endif(DISTINCT_VERSIONS)