2004-03-18 22:03:49 +00:00
|
|
|
SUBDIRS = . glue
|
2004-03-12 21:18:11 +00:00
|
|
|
|
|
|
|
API = gtk-api.xml
|
|
|
|
RAW_API = gtk-api.raw
|
|
|
|
ADDITIONAL_API = gtk-symbols.xml
|
|
|
|
INCLUDE_API = ../pango/pango-api.xml ../atk/atk-api.xml ../gdk/gdk-api.xml $(top_srcdir)/gdk/gdk-symbols.xml
|
|
|
|
METADATA = Gtk.metadata
|
|
|
|
ASSEMBLY_NAME = gtk-sharp
|
|
|
|
references = /r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll /r:../atk/atk-sharp.dll /r:../gdk/gdk-sharp.dll
|
|
|
|
|
2004-05-03 21:05:51 +00:00
|
|
|
TARGET = $(ASSEMBLY)
|
2004-03-12 21:18:11 +00:00
|
|
|
ASSEMBLY = $(ASSEMBLY_NAME).dll
|
2004-10-29 20:33:07 +00:00
|
|
|
gapidir = $(datadir)/gapi-2.0
|
2004-05-01 03:38:54 +00:00
|
|
|
noinst_DATA = $(ASSEMBLY) $(ASSEMBLY).config
|
2004-03-12 21:18:11 +00:00
|
|
|
gapi_DATA = $(API) $(ADDITIONAL_API)
|
2004-06-10 19:45:20 +00:00
|
|
|
CLEANFILES = $(ASSEMBLY) generated-stamp generated/*.cs $(API) glue/generated.c gtk-sharp.snk
|
2004-04-29 22:19:30 +00:00
|
|
|
DISTCLEANFILES = $(ASSEMBLY).config AssemblyInfo.cs
|
2004-03-12 21:18:11 +00:00
|
|
|
|
|
|
|
sources = \
|
2004-11-26 14:59:38 +00:00
|
|
|
ActionEntry.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
Application.cs \
|
2004-12-23 22:59:59 +00:00
|
|
|
BindingAttribute.cs \
|
2004-11-18 20:31:22 +00:00
|
|
|
ChildPropertyAttribute.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
ITreeNode.cs \
|
2004-12-17 20:32:33 +00:00
|
|
|
NodeCellDataFunc.cs \
|
2004-12-16 20:30:43 +00:00
|
|
|
NodeSelection.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
NodeStore.cs \
|
2004-12-16 20:30:43 +00:00
|
|
|
NodeView.cs \
|
2004-11-26 14:59:38 +00:00
|
|
|
RadioActionEntry.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
ThreadNotify.cs \
|
2004-11-26 14:59:38 +00:00
|
|
|
ToggleActionEntry.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
TreeNodeAttribute.cs \
|
|
|
|
TreeNode.cs \
|
|
|
|
TreeNodeValueAttribute.cs
|
|
|
|
|
2004-04-29 22:19:30 +00:00
|
|
|
build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs
|
2004-03-12 21:18:11 +00:00
|
|
|
|
|
|
|
customs = \
|
|
|
|
Accel.custom \
|
|
|
|
AccelKey.custom \
|
2004-10-29 20:33:07 +00:00
|
|
|
Action.custom \
|
2004-11-26 14:59:38 +00:00
|
|
|
ActionGroup.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
Adjustment.custom \
|
2004-09-24 15:58:05 +00:00
|
|
|
Bin.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
Button.custom \
|
|
|
|
Calendar.custom \
|
2004-05-14 20:25:57 +00:00
|
|
|
CellRenderer.custom \
|
2004-05-07 17:32:32 +00:00
|
|
|
CheckMenuItem.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
Clipboard.custom \
|
|
|
|
ColorSelection.custom \
|
|
|
|
ColorSelectionDialog.custom \
|
|
|
|
Combo.custom \
|
2004-10-29 20:33:07 +00:00
|
|
|
ComboBox.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
Container.custom \
|
|
|
|
Dialog.custom \
|
|
|
|
Entry.custom \
|
2004-10-29 20:33:07 +00:00
|
|
|
FileChooserDialog.custom \
|
2004-10-30 02:40:00 +00:00
|
|
|
FileChooserWidget.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
FileSelection.custom \
|
2004-10-29 20:33:07 +00:00
|
|
|
FileSystemModel.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
Frame.custom \
|
2004-03-30 22:28:58 +00:00
|
|
|
HBox.custom \
|
2004-05-07 19:04:03 +00:00
|
|
|
HScale.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
IconFactory.custom \
|
|
|
|
IconSet.custom \
|
2004-10-29 20:33:07 +00:00
|
|
|
IconTheme.custom \
|
2004-05-07 17:32:32 +00:00
|
|
|
ImageMenuItem.custom \
|
2004-09-03 15:59:29 +00:00
|
|
|
Init.custom \
|
2004-08-26 19:10:48 +00:00
|
|
|
InputDialog.custom \
|
2004-05-10 17:37:02 +00:00
|
|
|
ItemFactory.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
Label.custom \
|
|
|
|
Layout.custom \
|
|
|
|
ListStore.custom \
|
|
|
|
MessageDialog.custom \
|
2004-08-24 19:54:09 +00:00
|
|
|
Menu.custom \
|
2004-05-07 15:48:25 +00:00
|
|
|
MenuItem.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
Notebook.custom \
|
|
|
|
Object.custom \
|
2004-05-10 17:37:02 +00:00
|
|
|
Plug.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
RadioButton.custom \
|
|
|
|
RadioMenuItem.custom \
|
|
|
|
ScrolledWindow.custom \
|
|
|
|
SelectionData.custom \
|
2004-05-28 15:05:36 +00:00
|
|
|
Settings.custom \
|
2004-05-07 19:41:36 +00:00
|
|
|
SpinButton.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
Stock.custom \
|
|
|
|
Style.custom \
|
|
|
|
Table.custom \
|
|
|
|
TargetEntry.custom \
|
2004-10-19 14:21:48 +00:00
|
|
|
TargetList.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
TextBuffer.custom \
|
|
|
|
TextChildAnchor.custom \
|
|
|
|
TextIter.custom \
|
|
|
|
TextTag.custom \
|
|
|
|
TextView.custom \
|
|
|
|
TreeIter.custom \
|
|
|
|
TreeModel.custom \
|
2004-10-29 20:33:07 +00:00
|
|
|
TreeModelFilter.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
TreeModelSort.custom \
|
|
|
|
TreePath.custom \
|
|
|
|
TreeSelection.custom \
|
|
|
|
TreeStore.custom \
|
|
|
|
TreeViewColumn.custom \
|
|
|
|
TreeView.custom \
|
2004-10-29 20:33:07 +00:00
|
|
|
UIManager.custom \
|
2004-03-30 22:28:58 +00:00
|
|
|
VBox.custom \
|
2004-05-07 19:04:03 +00:00
|
|
|
VScale.custom \
|
2004-03-12 21:18:11 +00:00
|
|
|
Viewport.custom \
|
|
|
|
Widget.custom \
|
|
|
|
Window.custom
|
|
|
|
|
|
|
|
build_customs = $(addprefix $(srcdir)/, $(customs))
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
makefile.win32 \
|
2004-04-29 15:00:24 +00:00
|
|
|
$(ASSEMBLY).config.in \
|
2004-04-29 22:19:30 +00:00
|
|
|
AssemblyInfo.cs.in \
|
2004-03-12 21:18:11 +00:00
|
|
|
$(RAW_API) \
|
|
|
|
$(ADDITIONAL_API) \
|
|
|
|
$(METADATA) \
|
|
|
|
$(customs) \
|
|
|
|
$(sources)
|
|
|
|
|
|
|
|
$(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA)
|
|
|
|
cp $(srcdir)/$(RAW_API) $(API)
|
|
|
|
chmod u+w $(API)
|
|
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=$(API) --metadata=$(srcdir)/$(METADATA)
|
|
|
|
|
|
|
|
generated-stamp: $(API) $(srcdir)/$(ADDITIONAL_API) ../generator/gapi_codegen.exe $(build_customs)
|
2004-05-27 02:06:05 +00:00
|
|
|
rm -f generated/* && \
|
2004-03-18 22:03:49 +00:00
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(API) $(srcdir)/$(ADDITIONAL_API) \
|
|
|
|
--include $(INCLUDE_API) --outdir=generated --customdir=$(srcdir) --assembly-name=$(ASSEMBLY_NAME) \
|
|
|
|
--gluelib-name=gtksharpglue --glue-filename=glue/generated.c \
|
2004-03-12 21:18:11 +00:00
|
|
|
&& touch generated-stamp
|
|
|
|
|
2004-06-10 19:45:20 +00:00
|
|
|
gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
|
|
|
|
cp $(top_srcdir)/gtk-sharp.snk .
|
2004-05-01 03:38:54 +00:00
|
|
|
|
2004-06-10 19:45:20 +00:00
|
|
|
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
|
2004-11-11 03:58:14 +00:00
|
|
|
$(CSC) /nowarn:0612 /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
|
2004-03-12 21:18:11 +00:00
|
|
|
|
2004-05-01 03:38:54 +00:00
|
|
|
install-data-local:
|
2004-05-03 21:05:51 +00:00
|
|
|
@if test -n '$(TARGET)'; then \
|
2004-06-10 19:45:20 +00:00
|
|
|
echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \
|
2004-05-03 21:05:51 +00:00
|
|
|
fi
|
2004-05-01 03:38:54 +00:00
|
|
|
|
|
|
|
uninstall-local:
|
2004-05-03 21:05:51 +00:00
|
|
|
@if test -n '$(TARGET)'; then \
|
2004-06-10 19:45:20 +00:00
|
|
|
echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \
|
2004-05-03 21:05:51 +00:00
|
|
|
fi
|
2004-05-01 03:38:54 +00:00
|
|
|
|