~shnatsel/+junk/cairo-compmgr

« back to all changes in this revision

Viewing changes to build/plugin.am

  • Committer: Sergey "Shnatsel" Davidoff
  • Date: 2012-03-04 22:53:22 UTC
  • Revision ID: shnatsel@gmail.com-20120304225322-q2hz82j51yxv1qqw
fixed up build dependencies

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
uidir = $(datadir)/cairo-compmgr/ui
 
2
 
 
3
INCLUDES = \
 
4
    -I${top_srcdir}/src \
 
5
    -I${top_srcdir}/lib \
 
6
    -DUI_DIR=\"$(uidir)\" \
 
7
    $(CAIRO_COMPMGR_CFLAGS)
 
8
 
 
9
plugindir = $(libdir)/cairo-compmgr
 
10
 
 
11
VALAFLAGS = \
 
12
    --vapidir=${top_srcdir}/vapi \
 
13
    --pkg=config \
 
14
    --pkg=cairo-compmgr
 
15
 
 
16
PLUGIN_LDFLAGS = -module -avoid-version -no-undefined
 
17
PLUGIN_LIBADD = ${top_builddir}/lib/libcairo_compmgr.la
 
18
 
 
19
plugin_in_files = $(PLUGIN).plugin.desktop.in
 
20
%.plugin: %.plugin.desktop $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
 
21
 
 
22
plugin_DATA = $(PLUGIN).plugin
 
23
 
 
24
schemakeydir = $(datadir)/cairo-compmgr/schemas
 
25
schemakey_DATA = $(PLUGIN_SCHEMA:.schema-key.in=.schema-key)
 
26
 
 
27
%.schema-key: %.schema-key.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
 
28
 
 
29
if ENABLE_GCONF
 
30
schemasdir = $(GCONF_SCHEMA_FILE_DIR)
 
31
schemas_in_files = $(PLUGIN_SCHEMA:.schema-key.in=.schemas.in)
 
32
schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
 
33
 
 
34
%.schemas.in: %.schema-key
 
35
        ${top_builddir}/tools/ccm-schema-key-to-gconf --plugin --schema-key=$< --schema-gconf=$@
 
36
 
 
37
@INTLTOOL_SCHEMAS_RULE@
 
38
 
 
39
if GCONF_SCHEMAS_INSTALL
 
40
install-data-local:
 
41
        if test -z "$(DESTDIR)" ; then \
 
42
          for p in $(schemas_DATA) ; do \
 
43
            GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p ; \
 
44
          done \
 
45
        fi
 
46
else
 
47
install-data-local:
 
48
endif
 
49
endif
 
50
 
 
51
ui_DATA = $(PLUGIN_UI)
 
52
 
 
53
EXTRA_DIST = $(PLUGIN_VALA_SOURCES) \
 
54
             $(PLUGIN_SCHEMA) \
 
55
             $(ui_DATA) \
 
56
             $(plugin_in_files)
 
57
 
 
58
CLEANFILES = lib$(subst -,_,$(PLUGIN))_la_vala.stamp \
 
59
             $(PLUGIN_VALA_SOURCES:.vala=.c) \
 
60
             $(PLUGIN_VALA_SOURCES:.vala=.h) \
 
61
             $(schemakey_DATA) \
 
62
             $(plugin_DATA)
 
63
 
 
64
if ENABLE_GCONF
 
65
CLEANFILES += $(schemas_DATA) \
 
66
              $(schemas_in_files)
 
67
endif