ADD_DEFINITIONS(-DCBOR_FILE_IN_RES="${INSTALL_RESDIR}/${CBOR_FILE}")
ADD_DEFINITIONS(-DCBOR_FILE_IN_DATA="${INSTALL_OWNER_DATADIR}/${CBOR_FILE}")
+ADD_DEFINITIONS(-DCONF_FILE="${INSTALL_RESDIR}/${CONF_FILE}")
FOREACH (flag ${APP_PKGS_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ADD_EXECUTABLE(${PROJECT_NAME}
${PROJECT_ROOT_DIR}/src/controller.c
${PROJECT_ROOT_DIR}/src/controller_internal.c
+ ${PROJECT_ROOT_DIR}/src/controller_util.c
${PROJECT_ROOT_DIR}/src/connectivity.c
+ ${PROJECT_ROOT_DIR}/src/webutil.c
${PROJECT_ROOT_DIR}/src/resource.c
${PROJECT_ROOT_DIR}/src/resource/resource_illuminance_sensor.c
${PROJECT_ROOT_DIR}/src/resource/resource_infrared_motion_sensor.c
INSTALL(FILES ${ORG_PREFIX}.${PROJECT_NAME}.xml DESTINATION ${SYS_PACKAGES_DIR})
INSTALL(FILES ${PROJECT_ROOT_DIR}/shared/res/default_icon.png DESTINATION ${SYS_ICONS_DIR} RENAME ${PROJECT_NAME}.png)
INSTALL(FILES ${PROJECT_ROOT_DIR}/res/${CBOR_FILE} DESTINATION ${INSTALL_RESDIR})
+INSTALL(FILES ${PROJECT_ROOT_DIR}/res/${CONF_FILE} DESTINATION ${INSTALL_RESDIR})
# End of a file
%define _sys_packages_dir %{TZ_SYS_RO_PACKAGES}
%define _sys_license_dir %{TZ_SYS_SHARE}/license
%define _cbor_file iotcon-test-svr-db-server.dat
+%define _conf_file pi.conf
%ifarch %{arm}
export CFLAGS="$CFLAGS -DTIZEN_BUILD_TARGET"
-DINSTALL_RESDIR=%{_pkg_res_dir} \
-DSYS_ICONS_DIR=%{_sys_icons_dir} \
-DSYS_PACKAGES_DIR=%{_sys_packages_dir} \
- -DCBOR_FILE=%{_cbor_file}
+ -DCBOR_FILE=%{_cbor_file} \
+ -DCONF_FILE=%{_conf_file}
make %{?jobs:-j%jobs}
%install
%files
%{_pkg_res_dir}/*.dat
+%{_pkg_res_dir}/*.conf
%manifest %{alias}.manifest
%defattr(-,root,root,-)
%{_pkg_dir}/bin/%{P_NAME}