-OPTION(CARD_VIEWER_SUPPORT "Enable card installation feature" OFF)
-
-IF(CARD_VIEWER_SUPPORT)
- ADD_DEFINITIONS("-DCARD_VIEWER_SUPPORT")
-ENDIF(CARD_VIEWER_SUPPORT)
+OPTION(WEB_PROVIDER_SUPPORT "Support for Web Provider" OFF)
+
+IF(DEVICE_PROFILE STREQUAL "WEARABLE")
+ MESSAGE(STATUS "Device Profile: WEARABLE")
+ ADD_DEFINITIONS("-DDEVICE_PROFILE_WEARABLE")
+ELSEIF(DEVICE_PROFILE STREQUAL "MOBILE")
+ MESSAGE(STATUS "Device Profile: MOBILE")
+ ADD_DEFINITIONS("-DDEVICE_PROFILE_MOBILE")
+ELSEIF(DEVICE_PROFILE STREQUAL "TV")
+ MESSAGE(STATUS "Device Profile: TV")
+ ADD_DEFINITIONS("-DDEVICE_PROFILE_TV")
+ SET(WEB_PROVIDER_SUPPORT OFF)
+ENDIF()
+
+INCLUDE(build/Options.cmake)