summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: bed189e596bc0cb8a064ac3e371e8a187f777ae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(device-manager-plugin-sc7730 C)

SET(CMAKE_VERBOSE_MAKEFILE OFF)

SET(PREFIX ${CMAKE_INSTALL_PREFIX})

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror")

IF(ENABLE_DLOG STREQUAL on)
	ADD_DEFINITIONS("-DFEATURE_DLOG")
ENDIF()

INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.Apache-2.0 DESTINATION ${HAL_LICENSE_DIR}/${PROJECT_NAME})

ADD_SUBDIRECTORY(hw/battery)
ADD_SUBDIRECTORY(hw/display)
ADD_SUBDIRECTORY(hw/led)
ADD_SUBDIRECTORY(hw/external_connection)
ADD_SUBDIRECTORY(hw/touchscreen)
ADD_SUBDIRECTORY(hw/ir)
ADD_SUBDIRECTORY(hw/thermal)
ADD_SUBDIRECTORY(hw/usb_gadget)
ADD_SUBDIRECTORY(hw/board)
ADD_SUBDIRECTORY(hw/haptic)
ADD_SUBDIRECTORY(hw/memory)