~ubuntu-branches/ubuntu/maverick/docky/maverick

« back to all changes in this revision

Viewing changes to lib/gio-sharp/gio/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2010-02-17 15:10:07 UTC
  • Revision ID: james.westby@ubuntu.com-20100217151007-msxpd0lsj300ndde
Tags: upstream-2.0.0
ImportĀ upstreamĀ versionĀ 2.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include $(top_srcdir)/build.rules.core.mk
 
2
 
 
3
UNSAFE = -unsafe
 
4
DEBUG = -debug
 
5
 
 
6
EXTRA_DIST =    AppInfoAdapter.custom \
 
7
                FileEnumerator.custom \
 
8
                gio-sharp.dll.config  \
 
9
                AssemblyInfo.cs       \
 
10
                FileFactory.cs        \
 
11
                GioStream.cs          \
 
12
                FileAdapter.custom    \
 
13
                gio-api.raw           \
 
14
                File.custom           \
 
15
                Gio.metadata          \
 
16
                snk
 
17
 
 
18
 
 
19
SRCS = \
 
20
        $(srcdir)/AssemblyInfo.cs \
 
21
        $(srcdir)/FileFactory.cs \
 
22
        $(srcdir)/GioStream.cs
 
23
 
 
24
CUSTOMS = \
 
25
        $(srcdir)/AppInfoAdapter.custom \
 
26
        $(srcdir)/FileAdapter.custom \
 
27
        $(srcdir)/File.custom \
 
28
        $(srcdir)/FileEnumerator.custom 
 
29
 
 
30
SNK =   $(srcdir)/snk
 
31
 
 
32
ASSEMBLIES = \
 
33
        -pkg:glib-sharp-2.0
 
34
 
 
35
all: gio-sharp.dll
 
36
 
 
37
gio-api.xml: $(srcdir)/gio-api.raw $(srcdir)/Gio.metadata
 
38
        @echo -e "\n*** Massaging the raw api into $@"
 
39
        cp $(srcdir)/gio-api.raw gio-api.xml
 
40
        chmod +w gio-api.xml
 
41
        $(GAPI2FIXUP) --api=gio-api.xml --metadata=$(srcdir)/Gio.metadata
 
42
 
 
43
$(top_builddir)/build/gapi_codegen.exe:
 
44
        $(MAKE) -C $(top_builddir)/lib/gio-sharp/generator
 
45
 
 
46
generated/File.cs: gio-api.xml $(CUSTOMS) $(top_builddir)/build/gapi_codegen.exe
 
47
        @echo -e "\n*** Generating C# code"
 
48
        $(MONO) $(top_builddir)/build/gapi_codegen.exe $(GLIB_SHARP_20_CFLAGS) --outdir=generated --customdir=$(srcdir) --generate gio-api.xml
 
49
 
 
50
gtk-sharp.snk: $(SNK)
 
51
        cp $< $@
 
52
 
 
53
gio-sharp.dll: generated/File.cs $(SRCS) gtk-sharp.snk
 
54
        @echo -e "\n*** Building $@"
 
55
        $(MCS) -target:library -out:$@ $(UNSAFE) $(DEBUG) $(ASSEMBLIES) $(SRCS) generated/*.cs
 
56
        cp $@ $(top_builddir)/build/
 
57
 
 
58
assemblydir = $(pkglibdir)
 
59
assembly_DATA = \
 
60
        gio-sharp.dll \
 
61
        gio-sharp.dll.config
 
62
 
 
63
clean-local:
 
64
        rm -rf generated
 
65
 
 
66
 
 
67
CLEANFILES = gio-sharp.dll gio-sharp.dll.mdb gtk-sharp.snk gio-api.xml