if ENABLE_PROJECT_TREE_PLUGIN

DISTCLEANFILES =
BUILT_SOURCES =
CLEANFILES =
EXTRA_DIST = $(plugin_DATA)

plugindir = $(libdir)/gnome-builder/plugins
plugin_LTLIBRARIES = libproject-tree-plugin.la
dist_plugin_DATA = project-tree.plugin

libproject_tree_plugin_la_SOURCES =        \
	gb-new-file-popover.c              \
	gb-new-file-popover.h              \
	gb-project-file.c                  \
	gb-project-file.h                  \
	gb-project-tree-actions.c          \
	gb-project-tree-actions.h          \
	gb-project-tree-builder.c          \
	gb-project-tree-builder.h          \
	gb-project-tree.c                  \
	gb-project-tree.h                  \
	gb-project-tree-editor-addin.c     \
	gb-project-tree-editor-addin.h     \
	gb-project-tree-private.h          \
	gb-rename-file-popover.c           \
	gb-rename-file-popover.h           \
	gb-project-tree-addin.c            \
	gb-project-tree-addin.h            \
	project-tree-plugin.c              \
	$(NULL)

nodist_libproject_tree_plugin_la_SOURCES = \
	gb-project-tree-resources.c        \
	gb-project-tree-resources.h

libproject_tree_plugin_la_CFLAGS = $(PLUGIN_CFLAGS)
libproject_tree_plugin_la_LDFLAGS = $(PLUGIN_LDFLAGS)
if ENABLE_TERMINAL_PLUGIN
libproject_tree_plugin_la_LIBADD = $(TERMINAL_LIBS)
libproject_tree_plugin_la_CFLAGS +=        \
	$(TERMINAL_CFLAGS)                 \
	-DHAVE_VTE
endif


glib_resources_c = gb-project-tree-resources.c
glib_resources_h = gb-project-tree-resources.h
glib_resources_xml = gb-project-tree.gresource.xml
glib_resources_namespace = gb_project_tree
include $(top_srcdir)/build/autotools/Makefile.am.gresources

include $(top_srcdir)/plugins/Makefile.plugin

endif

-include $(top_srcdir)/git.mk
