hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Rockchip's MPP(Multimedia Processing Platform)
IPCWEB_BACKEND_SITE = $(TOPDIR)/../app/ipcweb-backend
IPCWEB_BACKEND_VERSION = release
IPCWEB_BACKEND_SITE_METHOD = local
 
IPCWEB_BACKEND_DEPENDENCIES = libcgicc openssl minilogger json-for-modern-cpp
IPCWEB_BACKEND_CONF_OPTS += -DIPCWEBBACKEND_BUILD_TESTS=OFF
 
ifeq ($(BR2_PACKAGE_IPCWEB_BACKEND_JWT), y)
IPCWEB_BACKEND_CONF_OPTS += -DENABLE_JWT=ON
else
IPCWEB_BACKEND_CONF_OPTS += -DENABLE_JWT=OFF
endif
 
ifeq ($(BR2_PACKAGE_MEDIASERVE_USE_ROCKFACE), y)
IPCWEB_BACKEND_CONF_OPTS += -DMEDIASERVER_ROCKFACE=ON
else
IPCWEB_BACKEND_CONF_OPTS += -DMEDIASERVER_ROCKFACE=OFF
endif
 
ifeq ($(BR2_PACKAGE_IPCWEB_BACKEND_USE_RKIPC), y)
IPCWEB_BACKEND_CONF_OPTS += -DUSE_RKIPC=ON
IPCWEB_BACKEND_WWW_DIR = $(@D)/www-rkipc
else
IPCWEB_BACKEND_CONF_OPTS += -DUSE_RKIPC=OFF
IPCWEB_BACKEND_DEPENDENCIES += librkdb libgdbus libIPCProtocol
IPCWEB_BACKEND_WWW_DIR = $(@D)/www
endif
 
ifeq ($(BR2_PACKAGE_RK_OEM), y)
IPCWEB_BACKEND_INSTALL_TARGET_OPTS = DESTDIR=$(BR2_PACKAGE_RK_OEM_INSTALL_TARGET_DIR) install/fast
IPCWEB_BACKEND_DEPENDENCIES += rk_oem
IPCWEB_BACKEND_CONF_OPTS += -DIPCWEBBACKEND_INSTALL_ON_OEM_PARTITION=ON
IPCWEB_BACKEND_TARGET_INSTALL_DIR = $(BR2_PACKAGE_RK_OEM_INSTALL_TARGET_DIR)
 
define IPCWEB_BACKEND_INSTALL_TARGET_CMDS
   rm -rf $(IPCWEB_BACKEND_TARGET_INSTALL_DIR)/www
   cp -rfp $(IPCWEB_BACKEND_WWW_DIR) $(IPCWEB_BACKEND_TARGET_INSTALL_DIR)/www
   mkdir -p $(IPCWEB_BACKEND_TARGET_INSTALL_DIR)/www/cgi-bin/
   cp -rfp $(@D)/src/entry.cgi $(IPCWEB_BACKEND_TARGET_INSTALL_DIR)/www/cgi-bin/
endef
else
define IPCWEB_BACKEND_INSTALL_TARGET_CMDS
   rm -rf $(TARGET_DIR)/usr/www
   cp -rfp $(IPCWEB_BACKEND_WWW_DIR) $(TARGET_DIR)/usr/www
   mkdir -p  $(TARGET_DIR)/usr/www/cgi-bin/
   cp -rfp $(@D)/src/entry.cgi $(TARGET_DIR)/usr/www/cgi-bin/
endef
endif
 
$(eval $(cmake-package))