%define memory_module ON
%define mem_stress OFF
%define vip_agent_module ON
-%define debug_log OFF
# Defines for resourced.common variant - see build section for defines for
# light variant.
%setup -q
%build
-export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
-
# resourced common/main variant
mkdir build_common
pushd build_common
-DMEM_STRESS=%{mem_stress} \
-DSWAP_MODULE=%{swap_module} \
-DVIP_AGENT=%{vip_agent_module} \
- -DDEBUG_LOG=%{debug_log} \
-DRD_SYS_ETC=%{TZ_SYS_ETC} \
-DRD_SYS_DATA=%{TZ_SYS_GLOBALUSER_DATA} \
-DRD_SYS_DB=%{TZ_SYS_GLOBALUSER_DB} \
-DMEMORY_MODULE=%{memory_module} \
-DMEM_STRESS=%{mem_stress} \
-DVIP_AGENT=%{vip_agent_module} \
- -DDEBUG_LOG=%{debug_log} \
-DRD_SYS_ETC=%{TZ_SYS_ETC} \
-DRD_SYS_DATA=%{TZ_SYS_GLOBALUSER_DATA} \
-DRD_SYS_DB=%{TZ_SYS_GLOBALUSER_DB} \
${RESOURCED_SOURCE_DIR}/main.c
${COMMON_SOURCE_DIR}/procfs.c
)
-IF("${DEBUG_LOG}" STREQUAL "ON")
- ADD_DEFINITIONS("-DPROC_DEBUG")
-ENDIF()
#freezer module
IF("${FREEZER_MODULE}" STREQUAL "ON")
SET(SOURCES ${SOURCES} ${FILE})
ENDFOREACH()
ADD_DEFINITIONS("-DHEART_SUPPORT")
- IF("${DEBUG_LOG}" STREQUAL "ON")
- ADD_DEFINITIONS("-DLOGGING_DEBUG")
- ENDIF()
ENDIF()
#memory module