浏览代码

package/upower: add gobject-introspection optional dependency

gobject-introspection is an optional dependency which is enabled by
default since
https://gitlab.freedesktop.org/upower/upower/-/commit/0d7bf34ed6702c60028fa80e5d481621e9741d09

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fabrice Fontaine 3 年之前
父节点
当前提交
8bcae68f37
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      package/upower/upower.mk

+ 7 - 0
package/upower/upower.mk

@@ -22,4 +22,11 @@ UPOWER_DEPENDENCIES = \
 
 UPOWER_CONF_OPTS = --disable-man-pages --disable-tests
 
+ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
+UPOWER_CONF_OPTS += --enable-introspection
+UPOWER_DEPENDENCIES += gobject-introspection
+else
+UPOWER_CONF_OPTS += --disable-introspection
+endif
+
 $(eval $(autotools-package))