' ************************************************** ' * _invis.inc * ' * meta compiler file for GMT * ' ************************************************** ' Metaconstants used as compiler directives: ' metacompilation file for ' ' ' ' #COMPILE EXE "gmt_ii" #RESOURCE "resource\gmt_ii.pbr" %gwr = 1 ' If declared, the code will include gmt_gwr.bas and further ' compiler instructions included therein. [need g_glib.dll] #INCLUDE "_NiDAQ.bi" ''%NiDAQ = 1 ' needed for ,, ' ' should only be set to true for computers that do have this hardware! ' ' (National Instruments data acquisition cards + NiDAQ 6.90 library). '%g_NiDAQmx = 1 ' for NiDAQmx 8.8 '%g_h_inc = 1 ' this one should always be combined with %NIDAQ since we have to load ' all libraries dynamically with the new NiDaq drivers! %Bom = 1 ' [translated from BC7/QBX june/july 1999] %Songbook = 1 ' now in separate code module from Bom. '%Eggs = 1 '%Debug = 1 %ii_robot = 1 ' ---------------------------------------------------------------------------------------- ' The order in which the following includes appear is very important! ' Do not change unless you understand what you are doing. Keep all filenames lowercase. ' Includes for sourcecode libraries: '#INCLUDE "..\winapi\win32api.inc" ' Win32API - version 31.03.2000 ' this includes way too much. You may want to build a smaller ' include. However, there is no performance penalty. Only ' elements that are called in, are compiled into the code. ' It only makes compilation a little bit slower. '#INCLUDE "..\winapi\commctrl.inc" '#INCLUDE "..\winapi\comdlg32.inc" #INCLUDE "..\winapi\g_win.inc" '#INCLUDE "..\winapi\mdi32.inc" '#INCLUDE "..\winapi\richedit.inc" '#INCLUDE "..\winapi\wsock32.inc" ' required for internet apps ' #INCLUDE "..\winapi\vbapi32.inc" ' not required here. - has %Null defined! '#INCLUDE "..\winapi\ddraw.inc" ' - in the works. '#INCLUDE "..\winapi\dsound.inc" ' - in the works - although we solved streaming without this! ' Next we declare all our own constants, using an include file: #INCLUDE "g_kons.bi" ' only integer and string constants can be declared in PB #INCLUDE "g_type.bi" ' This declares all our own structures, user defined types #INCLUDE "gmt_glob.bi" ' This declares all variables shared across modules ' must appear after win32api: we use Win32 types as globals #INCLUDE "g_indep.bi" ' includes context independent functions and procedures. Source is in g_indep.bas #INCLUDE "g_file.bi" #INCLUDE "g_lib.bi" ' loads the library DLL, by including its declarations. ' g_lib.bas should be compiled with the PB-DLL compiler, ' as it contains all source code and resources. #INCLUDE "g_Wave.bi" #INCLUDE "g_wmix.bi" #INCLUDE "g_mus.bi" ' music library #INCLUDE "g_har.bi" #INCLUDE "g_net.bi" ' ---------------------------- #INCLUDE "gmt.bi" ' kernel procedure declaration file $kompilfile = $kompil_ii '"gmt_ii" ' ******************************************************* ' conditional compilation block II - application code ' ******************************************************* ' code for Interactive Pieces: we can keep our main structure and add more #elseif statements for alternative compilations ' of different compositions. It is important to have this include after the declarations of GMT functions and libraries, ' since all the compositions make use of these functions. #INCLUDE "g_glib.bi" ' includes Godfrieds specific DLL ' following includes only for NiDAQ devices. However, even without having NiDAQ devices on your system it should be ' harmless to include these declarations. (if alone, to avoid double definitions...) [26.09.2000] '#IF %DEF(%NiDAQ) ' #INCLUDE "..\winapi\Nidaqcns-pb.inc" ' constants declaration V6.9 ' #INCLUDE "..\winapi\Nidaqerr-pb.inc" ' constants for error handling procs. and msg's. ' $g_h_lib = "g_nih.dll" '#ELSEIF %DEF(%g_NiDAQmx) ' $g_h_lib = "g_nxh.dll" '#ELSE ' $g_h_lib = "g_noh.dll" '#ENDIF #INCLUDE "g_h.bi" '#INCLUDE "..\winapi\Nidaq32-pb.inc" 'proc.declarations V6.9 '#INCLUDE "..\winapi\Nidex32-pb.inc" 'examples library = demo sample procs. ' constants and procedure declarations - not used in this module. #INCLUDE "gmt_gwr.bi" ' contains further metacompilation instructions. #INCLUDE "gmt_gwr.inc" ' required for all compositions by Godfried-Willem Raes #IF %DEF(%ii_robot) #INCLUDE "g_mm.bi" ' 06.11.2004 #INCLUDE "g_mm.inc" #ENDIF #IF %DEF (%Debug) #INCLUDE "gmt_debu.inc" ' specific debugging/ demo code and tasks #ENDIF #IF %DEF (%Demo) #INCLUDE "gmt_demo.inc" ' code prototypes #ENDIF #IF %DEF(%Bom) #INCLUDE "bom\gmt_bom.bi" ' declarations only #INCLUDE "bom\bom.inc" ' replaces tasks 16-... #IF %DEF(%Songbook) #INCLUDE "bom\songbook.inc" ' replaces tasks 48-63 #INCLUDE "bom\bomhol.inc" ' 27.11.2000 #ENDIF #ENDIF #IF %DEF(%Eggs) #INCLUDE "eggs\eggs.bas" #ENDIF #IF %DEF(%ii_robot) #INCLUDE "bom\gestrobo.bi" ' created 09.10.2003 #INCLUDE "bom\gestrobo.inc" #INCLUDE "bom\quadrada.inc" ' 08.02.2003 #ENDIF '[EOF]