mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
c52362cd18
This allows building Vala without support for Graphviz; useful for more minimal installs where we don't want to pull it (and transitively, pango, gd, etc.) in as a dependency.
20 lines
546 B
Diff
20 lines
546 B
Diff
diff --git i/libvaladoc/Makefile.am w/libvaladoc/Makefile.am
|
|
index 8dc398cf1..a5d8a45b4 100644
|
|
--- i/libvaladoc/Makefile.am
|
|
+++ w/libvaladoc/Makefile.am
|
|
@@ -176,9 +176,13 @@ endif
|
|
libvaladoc@PACKAGE_SUFFIX@_la_SOURCES = \
|
|
libvaladoc.vala.stamp \
|
|
$(libvaladoc_la_VALASOURCES:.vala=.c) \
|
|
- gvc-compat.c \
|
|
$(NULL)
|
|
|
|
+if ENABLE_GRAPHVIZ
|
|
+libvaladoc@PACKAGE_SUFFIX@_la_SOURCES += \
|
|
+ gvc-compat.c
|
|
+endif
|
|
+
|
|
valadoc@PACKAGE_SUFFIX@.vapi valadoc.h: libvaladoc.vala.stamp
|
|
libvaladoc.vala.stamp: $(libvaladoc_la_VALASOURCES)
|
|
$(VALA_V)$(VALAC) \
|