浏览代码

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.
tags/v0.99.beta17
Sam Hocevar sam 16 年前
父节点
当前提交
fd34b1779e
共有 2 个文件被更改,包括 26 次插入12 次删除
  1. +26
    -12
      caca-sharp/Makefile.am
  2. 二进制
      caca-sharp/caca-sharp.snk

+ 26
- 12
caca-sharp/Makefile.am 查看文件

@@ -1,6 +1,11 @@
# $Id: $
cacadir = $(libdir)/caca-sharp
# We need to install the .config file ourselves because of a gacutil
# bug (https://bugzilla.novell.com/show_bug.cgi?id=363341)
monodir = $(libdir)/mono/caca-sharp-0.0
if USE_CSHARP
noinst_DATA = caca-sharp.dll caca-sharp.dll.config test.exe
endif
caca_sources = \
$(srcdir)/AssemblyInfo.cs \
@@ -15,23 +20,32 @@ caca_sources = \
test_sources = \
$(srcdir)/test.cs
if USE_CSHARP
caca_DATA = caca-sharp.dll caca-sharp.dll.config
noinst_DATA = test.exe
endif
EXTRA_DIST = $(caca_sources) $(test_sources) \
caca-sharp.dll.config.in \
caca-sharp.csproj test-csharp.csproj
caca-sharp.snk caca-sharp.pc.in caca-sharp.dll.config.in \
caca-sharp.csproj test-csharp.csproj
caca-sharp.dll: $(caca_sources)
gmcs -unsafe $(caca_sources) -out:$@ -target:library \
-r:System.Drawing.dll
$(GMCS) -debug -unsafe $(caca_sources) -out:$@ -target:library \
-keyfile:$(srcdir)/caca-sharp.snk -r:System.Drawing.dll
test.exe: $(test_sources) caca-sharp.dll
gmcs $(test_sources) -out:$@ -lib:./ \
$(GMCS) -debug $(test_sources) -out:$@ -lib:./ \
-r:System.Drawing.dll -r:./caca-sharp.dll
if USE_CSHARP
install-data-local:
MONO_SHARED_DIR=$$HOME $(GACUTIL) -i caca-sharp.dll \
-package caca-sharp-0.0 -f -root $(DESTDIR)$(libdir)
$(mkinstalldirs) $(DESTDIR)$(monodir)
sed -e 's@target="[^"]*/@target="@' < caca-sharp.dll.config > $(DESTDIR)$(monodir)/caca-sharp.dll.config
uninstall-local:
MONO_SHARED_DIR=$$HOME $(GACUTIL) -u caca-sharp.dll, Version=0.0 \
-package caca-sharp-0.0 || true
rm -f $(DESTDIR)$(monodir)/caca-sharp.dll.config
rmdir $(DESTDIR)$(monodir) 2>/dev/null || true
endif
clean-local:
rm -f *.exe *.dll
rm -f *.exe *.dll *.mdb

二进制
caca-sharp/caca-sharp.snk 查看文件


正在加载...
取消
保存