SubDir TOP ;

CSharp gtkgl-sharp.dll : [ Wildcard gtkgl-sharp : *.cs ] ;
CSFLAGS on gtkgl-sharp.dll += -unsafe -pkg:gtk-sharp-2.0 ;
CSharp Lisp.dll : [ Wildcard Lisp : *.cs ] ;
CSharp LispReader.dll : [ Wildcard LispReader : *.cs ] ;
LinkWith LispReader.dll : Lisp.dll ;
CSharp Resources.dll : [ Wildcard Resources : *.cs ] ;

# DIRS = src src/Drawing src/DataStructures src/Libs src/SceneGraph src/Sprites ;
# for i in $(DIRS) {
#     SOURCES += [ Wildcard $(i) : *.cs ] ;
# }
# CSharp supertux.exe
#     : $(SOURCES)
# ;
# LinkWith supertux.exe : Lisp.dll Resources.dll ;
# CSFLAGS on supertux.exe += -debug -unsafe ;

CSharp libeditor.dll
    :   [ Wildcard libeditor/DataStructures : *.cs ]
        [ Wildcard libeditor/Libs : *.cs ]
        [ Wildcard libeditor/SceneGraph : *.cs ]
        [ Wildcard libeditor/Drawing : *.cs ]
        [ Wildcard libeditor : *.cs ]
    :   [ Wildcard libeditor/resources : *.glade *.png ]
;
LinkWith libeditor.dll : Resources.dll gtkgl-sharp.dll ;
CSFLAGS on libeditor.dll += -unsafe -pkg:gtk-sharp-2.0 -pkg:glade-sharp-2.0 ;

CSharp supertux-editor.exe
    :   [ Wildcard supertux-editor : *.cs ]
        [ Wildcard supertux-editor/Sprites : *.cs ]
        [ Wildcard supertux-editor/Editors : *.cs ]
        [ Wildcard supertux-editor/LevelObjects : *.cs ]
    :   [ Wildcard supertux-editor/resources : *.glade *.png ]
;
LinkWith supertux-editor.exe : Lisp.dll Resources.dll LispReader.dll libeditor.dll gtkgl-sharp.dll ;
CSFLAGS on supertux-editor.exe += -unsafe -pkg:gtk-sharp-2.0 -pkg:glade-sharp-2.0 ;

