' ************************************************** ' * _mim.inc * ' * meta compiler file for GMT * ' ************************************************** ' Metaconstants used as compiler directives: ' metacompilation file for #COMPILE EXE "mim" #RESOURCE "resource\gmt_mim.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 '%g_h_inc = 1 %Bom = 1 %ii_mim = 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\g_win.inc" ' 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_mim '"mim" ' ******************************************************* ' 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 #INCLUDE "..\winapi\Nidaqcns-pb.inc" #INCLUDE "..\winapi\Nidaqerr-pb.inc" #INCLUDE "g_h.bi" #INCLUDE "..\winapi\Nidaq32-pb.inc" #INCLUDE "gmt_gwr.bi" ' contains further metacompilation instructions. #INCLUDE "gmt_gwr.inc" ' required for all compositions by Godfried-Willem Raes #IF %DEF(%Bom) #INCLUDE "bom\gmt_bom.bi" ' declarations only #INCLUDE "bom\bom.inc" ' replaces tasks 16-... #IF %DEF(%ii_Mim) #INCLUDE "bom\mim.inc" ' for MIM compilation. #ENDIF #ENDIF '[EOF]