Blame view

buildroot/buildroot-2016.08.1/package/libwebsockets/libwebsockets.mk 1.54 KB
6b13f685e   김민수   BSP 최초 추가
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
52
53
  ################################################################################
  #
  # libwebsockets
  #
  ################################################################################
  
  LIBWEBSOCKETS_VERSION = v1.7.5
  LIBWEBSOCKETS_SITE = $(call github,warmcat,libwebsockets,$(LIBWEBSOCKETS_VERSION))
  LIBWEBSOCKETS_LICENSE = LGPLv2.1 with exceptions
  LIBWEBSOCKETS_LICENSE_FILES = LICENSE
  LIBWEBSOCKETS_DEPENDENCIES = zlib
  LIBWEBSOCKETS_INSTALL_STAGING = YES
  LIBWEBSOCKETS_CONF_OPTS = -DLWS_WITHOUT_TESTAPPS=ON -DLWS_IPV6=ON
  
  # If LWS_MAX_SMP=1, then there is no code related to pthreads compiled
  # in the library. If unset, LWS_MAX_SMP defaults to 32 and a small
  # amount of pthread mutex code is built into the library.
  ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
  LIBWEBSOCKETS_CONF_OPTS += -DLWS_MAX_SMP=1
  else
  LIBWEBSOCKETS_CONF_OPTS += -DLWS_MAX_SMP=
  endif
  
  ifeq ($(BR2_PACKAGE_OPENSSL),y)
  LIBWEBSOCKETS_DEPENDENCIES += openssl host-openssl
  LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=ON
  else
  LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=OFF
  endif
  
  ifeq ($(BR2_PACKAGE_LIBEV),y)
  LIBWEBSOCKETS_DEPENDENCIES += libev
  LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEV=ON
  else
  LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEV=OFF
  endif
  
  ifeq ($(BR2_PACKAGE_LIBUV),y)
  LIBWEBSOCKETS_DEPENDENCIES += libuv
  LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBUV=ON
  else
  LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBUV=OFF
  endif
  
  ifeq ($(BR2_STATIC_LIBS),y)
  LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SHARED=OFF
  endif
  
  ifeq ($(BR2_SHARED_LIBS),y)
  LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_STATIC=OFF
  endif
  
  $(eval $(cmake-package))