mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 11:55:38 +00:00
12cd8d0d17
a bit; only Ref the pointer if Owned is false (and then set it to true), and vice versa for Unref. * glib/Opaque.cs (Opaque): set owned before setting Raw, so that Raw will be reffed properly. (GetOpaque): Fix this up to dtrt in all cases with refcounted opaques. * gtk/TreeView.custom (GetPathAtPos): Use "GetOpaque(...)" rather than "new TreePath()" * sample/opaquetest/*: regression test for opaque free/ref/unref handling * sample/Makefile.am (SUBDIRS): add opaquetest * configure.in.in (AC_OUTPUT): add opaquetest files svn path=/trunk/gtk-sharp/; revision=48168
31 lines
983 B
Makefile
31 lines
983 B
Makefile
noinst_SCRIPTS = opaquetest.exe
|
|
lib_LTLIBRARIES = libopaque.la
|
|
|
|
assemblies=../../glib/glib-sharp.dll ../../pango/pango-sharp.dll ../../atk/atk-sharp.dll ../../gdk/gdk-sharp.dll ../../gtk/gtk-sharp.dll
|
|
references=$(addprefix /r:, $(assemblies))
|
|
|
|
opaquetest.exe: OpaqueTest.cs generated/*.cs $(assemblies)
|
|
$(CSC) /out:opaquetest.exe $(references) $(srcdir)/OpaqueTest.cs generated/*.cs
|
|
|
|
libopaque_la_SOURCES = \
|
|
opaques.c \
|
|
opaques.h
|
|
|
|
libopaque_la_LDFLAGS = -module -avoid-version -no-undefined
|
|
|
|
libopaque_la_LIBADD = $(GTK_LIBS)
|
|
|
|
INCLUDES = $(GTK_CFLAGS)
|
|
|
|
generated/*.cs: opaque-api.xml
|
|
$(RUNTIME) ../../generator/gapi_codegen.exe --generate opaque-api.xml --include ../../gtk/gtk-api.xml ../../gdk/gdk-api.xml --outdir=generated --assembly-name=opaque-sharp
|
|
|
|
api:
|
|
PATH=../../parser:$PATH $(RUNTIME) ../../parser/gapi-parser.exe opaque-sources.xml
|
|
$(RUNTIME) ../../parser/gapi-fixup.exe --metadata=Opaque.metadata --api=opaque-api.xml
|
|
|
|
install:
|
|
|
|
CLEANFILES = \
|
|
generated/*.cs
|