package/libuwsc: manage BUILD_STATIC_LIBS
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 19 Apr 2020 23:26:28 +0000 (01:26 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 20 Apr 2020 05:46:14 +0000 (07:46 +0200)
Use BUILD_STATIC_LIBS added in version 3.3.5 with
https://github.com/zhaojh329/libuwsc/commit/1759dfd7d9f65775dc0a27e85b8c8c482efbfd00

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libuwsc/libuwsc.mk

index 08ea72c1f3114ced669b3591831cfd69eca10bf6..cad351529df7d23243900220ff94fb4e09389ffd 100644 (file)
@@ -43,4 +43,11 @@ else
 LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=OFF
 endif
 
+# BUILD_SHARED_LIBS is handled in pkg-cmake.mk as it is a generic cmake variable
+ifeq ($(BR2_SHARED_STATIC_LIBS),y)
+LIBUWSC_CONF_OPTS += -DBUILD_STATIC_LIBS=ON
+else ifeq ($(BR2_SHARED_LIBS),y)
+LIBUWSC_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF
+endif
+
 $(eval $(cmake-package))