diff options
author | Jon Skeet <skeet@pobox.com> | 2008-08-14 20:33:37 +0100 |
---|---|---|
committer | Jon Skeet <skeet@pobox.com> | 2008-08-14 20:33:37 +0100 |
commit | de21d2c92c15387d64f16d4b20defb010caac299 (patch) | |
tree | d507b8f08a61d1da2e41017c79c0999ed8678def /csharp/Makefile.am | |
parent | 9f4f0a56b1a87af398d0fd9e9bff87e62609b0f7 (diff) | |
download | protobuf-de21d2c92c15387d64f16d4b20defb010caac299.tar.gz protobuf-de21d2c92c15387d64f16d4b20defb010caac299.tar.bz2 protobuf-de21d2c92c15387d64f16d4b20defb010caac299.zip |
Patch from Miguel de Icaza: This introduces auto-detection of Mono to configure, and if found, builds and installs the runtime library, and provides a pkg-config file so developers can easily use it on Unix.
Diffstat (limited to 'csharp/Makefile.am')
-rw-r--r-- | csharp/Makefile.am | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/csharp/Makefile.am b/csharp/Makefile.am new file mode 100644 index 00000000..d3b10be5 --- /dev/null +++ b/csharp/Makefile.am @@ -0,0 +1,54 @@ +pkgconfigdir = $(libdir)/pkgconfig + +pkgconfig_DATA = google-pb.pc + +noinst_SCRIPTS = Google.ProtocolBuffers.dll + +Google.ProtocolBuffers.dll_sources = \ + $(srcdir)/ProtocolBuffers/AbstractBuilder.cs \ + $(srcdir)/ProtocolBuffers/AbstractMessage.cs \ + $(srcdir)/ProtocolBuffers/Autogenerated.cs \ + $(srcdir)/ProtocolBuffers/ByteString.cs \ + $(srcdir)/ProtocolBuffers/CodedInputStream.cs \ + $(srcdir)/ProtocolBuffers/CodedOutputStream.cs \ + $(srcdir)/ProtocolBuffers/Collections/Dictionaries.cs \ + $(srcdir)/ProtocolBuffers/Collections/Lists.cs \ + $(srcdir)/ProtocolBuffers/Collections/ReadOnlyDictionary.cs \ + $(srcdir)/ProtocolBuffers/Descriptors/EnumDescriptor.cs \ + $(srcdir)/ProtocolBuffers/Descriptors/EnumValueDescriptor.cs \ + $(srcdir)/ProtocolBuffers/Descriptors/FieldDescriptor.cs \ + $(srcdir)/ProtocolBuffers/Descriptors/FieldMappingAttribute.cs \ + $(srcdir)/ProtocolBuffers/Descriptors/FieldType.cs \ + $(srcdir)/ProtocolBuffers/Descriptors/FileDescriptor.cs \ + $(srcdir)/ProtocolBuffers/Descriptors/MappedType.cs \ + $(srcdir)/ProtocolBuffers/Descriptors/MessageDescriptor.cs \ + $(srcdir)/ProtocolBuffers/ExtensionInfo.cs \ + $(srcdir)/ProtocolBuffers/ExtensionRegistry.cs \ + $(srcdir)/ProtocolBuffers/FieldAccess/Delegates.cs \ + $(srcdir)/ProtocolBuffers/FieldAccess/FieldAccessorTable.cs \ + $(srcdir)/ProtocolBuffers/FieldAccess/IFieldAccessor.cs \ + $(srcdir)/ProtocolBuffers/FieldSet.cs \ + $(srcdir)/ProtocolBuffers/GeneratedBuilder.cs \ + $(srcdir)/ProtocolBuffers/GeneratedExtension.cs \ + $(srcdir)/ProtocolBuffers/GeneratedMessage.cs \ + $(srcdir)/ProtocolBuffers/IBuilder.cs \ + $(srcdir)/ProtocolBuffers/IMessage.cs \ + $(srcdir)/ProtocolBuffers/InvalidProtocolBufferException.cs \ + $(srcdir)/ProtocolBuffers/Properties/AssemblyInfo.cs \ + $(srcdir)/ProtocolBuffers/TextFormat.cs \ + $(srcdir)/ProtocolBuffers/UninitializedMessageException.cs \ + $(srcdir)/ProtocolBuffers/UnknownField.cs \ + $(srcdir)/ProtocolBuffers/UnknownFieldSet.cs \ + $(srcdir)/ProtocolBuffers/WireFormat.cs + +Google.ProtocolBuffers.dll: $(Google.ProtocolBuffers.dll_sources) + cp $(srcdir)/ProtocolBuffers/Properties/Google.ProtocolBuffers.snk . + gmcs -codepage:utf8 -debug -target:library -out:Google.ProtocolBuffers.dll $(Google.ProtocolBuffers.dll_sources) + +install-data-local: Google.ProtocolBuffers.dll + gacutil -i Google.ProtocolBuffers.dll -package google + +EXTRA_DIST = $(Google.ProtocolBuffers.dll_sources) google-pb.pc.in + +google-pb.pc: Makefile.am google-pb.pc.in + sed "s,@PREFIX@,${prefix}," < $(srcdir)/google-pb.pc.in > google-pb.pc
\ No newline at end of file |