File: Makefile.am

package info (click to toggle)
poppler-sharp 0.0.3-4.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 416 kB
  • sloc: sh: 625; makefile: 68
file content (59 lines) | stat: -rw-r--r-- 1,334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- makefile-automake -*-

ACLOCAL_AMFLAGS = -Im4

CUSTOMSOURCES = \
	poppler-sharp/custom/Document.custom

EXTRA_DIST = \
	poppler-sharp/poppler-api.raw \
	poppler-sharp/poppler.metadata \
	sources/poppler-sharp.dll.config \
	$(CUSTOMSOURCES)

GENDIR = poppler-sharp/generated/
GENSOURCES = $(GENDIR)*.cs
GENSTAMP = $(GENDIR)stamp

CLEANFILES = \
	$(GENSOURCES) \
	$(GENSTAMP) \
	poppler-sharp/poppler-api.xml \
	poppler-sharp.dll

programfilesdir = $(pkglibdir)
programfiles_DATA = poppler-sharp.dll sources/poppler-sharp.dll.config
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = sources/poppler-sharp.pc

if ENABLE_AUTOGEN_API
poppler-sharp/poppler-api.raw: sources/poppler-sharp.sources
	gapi2-parser $<
endif

poppler-sharp/poppler-api.xml: poppler-sharp/poppler-api.raw \
                               poppler-sharp/poppler.metadata
	[ -d $(dir $@) ] || mkdir -p $(dir $@)
	cp $< $@
	chmod u+w $@
	gapi2-fixup \
		--api=$@ \
		--metadata=$(lastword $^)

$(GENSOURCES): $(GENSTAMP)
$(GENSTAMP): poppler-sharp/poppler-api.xml $(CUSTOMSOURCES)
	gapi2-codegen \
		--outdir=poppler-sharp/generated \
		--customdir=$(srcdir)/poppler-sharp/custom \
		$(GTKSHARP_CFLAGS) \
		--generate $<
	touch $@

poppler-sharp.dll: $(GENSOURCES)
	$(MCS) \
		-pkg:gtk-sharp-2.0 \
		-r:Mono.Cairo \
		-t:library \
		-out:$@ \
		-unsafe \
		$^