ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
ADD_DEFINITIONS("-DFEATURE_DEVICE_DLOG")
ADD_DEFINITIONS("-DLIBPATH=\"${LIB_INSTALL_DIR}\"")
+IF(${EXCLUDE_INTERNAL_CAPI_SYSTEM_DEVICE})
+ ADD_DEFINITIONS("-DEXCLUDE_INTERNAL_CAPI_SYSTEM_DEVICE")
+ENDIF()
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
aux_source_directory(src SOURCES)
-IF(${EXCLUDE_INTERNAL_CAPI_SYSTEM_DEVICE})
- LIST(REMOVE_ITEM SOURCES "src/power-internal.c")
-ENDIF()
ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS})
INSTALL(FILES ${INC_DIR}/device.h ${INC_DIR}/device-error.h
DESTINATION include/system)
-IF(${EXCLUDE_INTERNAL_CAPI_SYSTEM_DEVICE})
- SET(EXCLUDE_INTERNAL_CAPI_SYSTEM_DEVICE_PATTERN PATTERN "power-internal.h" EXCLUDE)
-ENDIF()
-
INSTALL(
DIRECTORY ${INC_DIR}/ DESTINATION include/device
FILES_MATCHING
PATTERN "device.h" EXCLUDE
- ${EXCLUDE_INTERNAL_CAPI_SYSTEM_DEVICE_PATTERN}
PATTERN "${INC_DIR}/*.h"
)
*/
int device_power_check_reboot_allowed(void);
+#ifndef EXCLUDE_INTERNAL_CAPI_SYSTEM_DEVICE
/**
* @brief Get wakeup reason.
* @since_tizen 7.0
* @retval #DEVICE_ERROR_INVALID_PARAMETER Invalid parameter
*/
int device_power_get_wakeup_reason(device_power_transition_reason_e *reason);
+#endif
/**
* @brief Called when the registered power lock is changed.
return (retval != 0 || cloned != 0);
}
+#ifndef EXCLUDE_INTERNAL_CAPI_SYSTEM_DEVICE
int device_power_get_wakeup_reason(device_power_transition_reason_e *reason)
{
int ret, reply;
return DEVICE_ERROR_NONE;
}
+#endif
static void power_lock_state_change_cb(GDBusConnection *connection,
const gchar *sender_name,