alternative to assert
[gtkD.git] / gtkD / wrap / Readme.txt
blobe20fc9dd659231dc76e203dae21eaaef01f2b27a
1 This contains information and code to generate the GtkD source code.
2 This is not for GUI App writers wanting to use gtkD. Save yourself some
3 misery and get the archived install files at dsource.org.
5 Prerequesits:
6 -------------
8 htod.exe from http://digitalmars.com/d needs to be in the
9 GtkD/wrap/utils directory.
10 wine needs to be installed and in $PATH
11 cairo source must be unzipped somewhere on your system.
12 gtkglext source must be unzipped somewhere on your system.
13 gtk documentation tarballs must be in some directory.
15 Build & run on linux:
16 --------------------
17 Default paths: 
18 html docs: ${gtkD}/wrap/gtkdocs
19 API*.txt: ${gtkD}/wrap
20 output: ${gtkD}/src ${gtkD}/srcgl
22 cd ${gtkD}/wrap
23 make default
24 gtkwrap
26 edit ${gtkD}/srcgl/gtkglc/gl.d; comment out the last 23 entries
27 (MESA...)
29 ... and that should do it. Go run ./makeAll.sh and see what works.
32 Path definition locations:
33 -------------------------------
35 wrap/Makefile #has location of gtk docs tarballs, cairo, gtkglext
37 wrap/APIlookup.txt #has html-source and output directories
38                    #(search for "inputRoot" and "outputRoot")
40 wrap/utils/GtkWrapper.d #has build filename & path
41                       #(search for "buildDir", "buildFile")
43 wrap/utils/HTODConvert.d #where to find wine and paths...
44                        # constants at the start of the file
46 at the moment gtkwrap assumes that the api files are in the
47 directory you run it from...
50 Random info
51 -----------------------------------------------------
52 When building from leds the following commands are run...
54 dmd wrap/utils/HTODConvert.d wrap/utils/WrapperIF.d wrap/utils/funct.d wrap/utils/DefReader.d wrap/utils/GtkWrapper.d wrap/utils/HtmlStrip.d wrap/utils/convparms.d wrap/utils/DuitClass.d  \
55     -odobj  -op  -Iwrap:/home/ruimt/dmd/src/phobos:/home/ruimt/devel/D/Duit/trunk/src   -c  -I/home/ruimt/dmd/src/phobos
56 gcc  obj/wrap/utils/HTODConvert.o obj/wrap/utils/WrapperIF.o obj/wrap/utils/funct.o obj/wrap/utils/DefReader.o obj/wrap/utils/GtkWrapper.o obj/wrap/utils/HtmlStrip.o obj/wrap/utils/convparms.o \
57     obj/wrap/utils/DuitClass.o -o ./gtkwrap -m32     -ldl -lpthread -lstdc++ -lphobos -lpthread -lm   -m32 -lphobos -lpthread -lm