9d04b4dd06
the child properties for a given widget in a container, and generate the child properties as properties on those classes. * parser/gapi2xml.pl (addPropElem): don't prepend "child_" to child prop names any more * generator/ClassBase.cs (ClassBase): keep childprops separate from properties (GenChildProperties): create a subclass of Gtk.ContainerChild containing the container type's child properties, and override the Container indexer to return that type. * generator/ObjectGen.cs (Generate): call GenChildProperties * generator/Property.cs: * generator/ChildProperty.cs: Simplify these a bunch, since * child properties are now represented as C# properties as well. Also add [GLib.Property(cname)] and [Gtk.ChildProperty(cname)] attributes. * glib/Makefile.am (sources): add PropertyAttribute.cs * glib/PropertyAttribute.cs: attribute used to label GObject properties * gtk/Makefile.am (sources): add ChildPropertyAttribute.cs * gtk/gtk-api.raw: regenerate for parser changes (remove "Child"/"child_" from child property names). * gtk/ChildPropertyAttribute.cs: attribute used to label GtkContainer child properties * gtk/Container.custom: define the ContainerChild class, and an indexer to return instances of it. * doc/en/Gtk/: update for container child property change svn path=/trunk/gtk-sharp/; revision=36284
76 lines
1.7 KiB
Makefile
76 lines
1.7 KiB
Makefile
SUBDIRS = glue
|
|
|
|
TARGET = $(ASSEMBLY)
|
|
ASSEMBLY = $(ASSEMBLY_NAME).dll
|
|
ASSEMBLY_NAME = glib-sharp
|
|
noinst_DATA = $(ASSEMBLY) $(ASSEMBLY).config
|
|
CLEANFILES = $(ASSEMBLY) gtk-sharp.snk
|
|
DISTCLEANFILES = $(ASSEMBLY).config AssemblyInfo.cs
|
|
|
|
references =
|
|
|
|
sources = \
|
|
Boxed.cs \
|
|
ConnectBeforeAttribute.cs \
|
|
DefaultSignalHandlerAttribute.cs \
|
|
DelegateWrapper.cs \
|
|
EnumWrapper.cs \
|
|
FileUtils.cs \
|
|
GException.cs \
|
|
GString.cs \
|
|
Idle.cs \
|
|
IWrapper.cs \
|
|
ListBase.cs \
|
|
List.cs \
|
|
Log.cs \
|
|
MainContext.cs \
|
|
MainLoop.cs \
|
|
ManagedValue.cs \
|
|
Markup.cs \
|
|
Marshaller.cs \
|
|
MissingIntPtrCtorException.cs \
|
|
Object.cs \
|
|
ObjectManager.cs \
|
|
Opaque.cs \
|
|
PropertyAttribute.cs \
|
|
SignalArgs.cs \
|
|
SignalAttribute.cs \
|
|
SignalCallback.cs \
|
|
SList.cs \
|
|
Source.cs \
|
|
Thread.cs \
|
|
Timeout.cs \
|
|
TypeConverter.cs \
|
|
Type.cs \
|
|
TypeFundamentals.cs \
|
|
UnwrappedObject.cs \
|
|
ValueArray.cs \
|
|
Value.cs
|
|
|
|
build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs
|
|
dist_sources = $(sources)
|
|
|
|
EXTRA_DIST = \
|
|
$(dist_sources) \
|
|
$(ASSEMBLY).config.in \
|
|
AssemblyInfo.cs.in \
|
|
makefile.win32
|
|
|
|
gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
|
|
cp $(top_srcdir)/gtk-sharp.snk .
|
|
|
|
$(ASSEMBLY): $(build_sources) gtk-sharp.snk
|
|
$(CSC) /nowarn:0612 /out:$(ASSEMBLY) /target:library $(references) $(build_sources)
|
|
|
|
install-data-local:
|
|
@if test -n '$(TARGET)'; then \
|
|
echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \
|
|
$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \
|
|
fi
|
|
|
|
uninstall-local:
|
|
@if test -n '$(TARGET)'; then \
|
|
echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
|
|
$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \
|
|
fi
|
|
|