Changeset 3160


Ignore:
Timestamp:
Oct 31, 2008, 1:21:04 AM (11 years ago)
Author:
Sam Hocevar
Message:

caca-sharp: improve install and uninstall rules, add a strong name key
to allow third-party applications to link with caca-sharp, and tune a
few things here and there.

Location:
libcaca/trunk/caca-sharp
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-sharp/Makefile.am

    r2898 r3160  
    11# $Id: $
    22
    3 cacadir = $(libdir)/caca-sharp
     3# We need to install the .config file ourselves because of a gacutil
     4# bug (https://bugzilla.novell.com/show_bug.cgi?id=363341)
     5monodir = $(libdir)/mono/caca-sharp-0.0
     6if USE_CSHARP
     7noinst_DATA = caca-sharp.dll caca-sharp.dll.config test.exe
     8endif
    49
    510caca_sources = \
     
    1621        $(srcdir)/test.cs
    1722
     23EXTRA_DIST = $(caca_sources) $(test_sources) \
     24        caca-sharp.snk caca-sharp.pc.in caca-sharp.dll.config.in \
     25        caca-sharp.csproj test-csharp.csproj
     26
     27caca-sharp.dll: $(caca_sources)
     28        $(GMCS) -debug -unsafe $(caca_sources) -out:$@ -target:library \
     29          -keyfile:$(srcdir)/caca-sharp.snk -r:System.Drawing.dll
     30
     31test.exe: $(test_sources) caca-sharp.dll
     32        $(GMCS) -debug $(test_sources) -out:$@ -lib:./ \
     33          -r:System.Drawing.dll -r:./caca-sharp.dll
     34
    1835if USE_CSHARP
    19 caca_DATA = caca-sharp.dll caca-sharp.dll.config
    20 noinst_DATA = test.exe
     36install-data-local:
     37        MONO_SHARED_DIR=$$HOME $(GACUTIL) -i caca-sharp.dll \
     38          -package caca-sharp-0.0 -f -root $(DESTDIR)$(libdir)
     39        $(mkinstalldirs) $(DESTDIR)$(monodir)
     40        sed -e 's@target="[^"]*/@target="@' < caca-sharp.dll.config > $(DESTDIR)$(monodir)/caca-sharp.dll.config
     41
     42uninstall-local:
     43        MONO_SHARED_DIR=$$HOME $(GACUTIL) -u caca-sharp.dll, Version=0.0 \
     44          -package caca-sharp-0.0 || true
     45        rm -f $(DESTDIR)$(monodir)/caca-sharp.dll.config
     46        rmdir $(DESTDIR)$(monodir) 2>/dev/null || true
    2147endif
    2248
    23 EXTRA_DIST = $(caca_sources) $(test_sources) \
    24              caca-sharp.dll.config.in \
    25              caca-sharp.csproj test-csharp.csproj
     49clean-local:
     50        rm -f *.exe *.dll *.mdb
    2651
    27 caca-sharp.dll: $(caca_sources)
    28         gmcs -unsafe $(caca_sources) -out:$@ -target:library \
    29           -r:System.Drawing.dll
    30 
    31 test.exe: $(test_sources) caca-sharp.dll
    32         gmcs $(test_sources) -out:$@ -lib:./ \
    33           -r:System.Drawing.dll -r:./caca-sharp.dll
    34 
    35 clean-local:
    36         rm -f *.exe *.dll
    37 
Note: See TracChangeset for help on using the changeset viewer.