ogl_w32d.gen 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #
  2. # build tool script for generation of OpenGL units
  3. #
  4. # === file format description ===
  5. # - any empty line is ignored
  6. # - aything preceeded with a #, *, ; and ' is a comment
  7. # - sections can be 'common' or be made of a target file name
  8. # - common sections define general strings, but only
  9. # the value of TARGET_DIR is really important for the build
  10. # - filename sections contain one key for the template name to be used
  11. # plus some key definitons that describe the rules of how to insert
  12. # generated data.
  13. # - a key is structured like this:
  14. # key_name, key_rule [,optional_parameters]
  15. # - the following key rules exist and will create somewhat like this:
  16. # IG = Ignore: <key will be ignored - no text generated>
  17. # TX = InsertText: <whole text from refered file>
  18. # IF = Interface: [line from option1]
  19. # PD = ProcDecls: [line from option1] [option2] [//comment in line]
  20. # PL = ProcLoaders: [function name from line in opt1]
  21. # := GetProc([option2], '[function name from opt1]');
  22. # TX, IF, PD and PL use first optional parameter as the def file name.
  23. # the rule PD has second optional parameter that modifys the function.
  24. # the rule PL has second optional parameter for import lib/dll name string.
  25. # ==== Win32 dynamic linking ====
  26. [common]
  27. TOOL_NAME = c_gen_win32d
  28. TARGET_TEXT = Win32
  29. TARGET_DIR = ../win32/
  30. [gl.pp]
  31. TEMPLATE=gl_w32d.tem
  32. KEY=GLDeclsIF10, IF, gl10.def
  33. KEY=GLProcsPD10, PD, gl10.def, ogl_dll
  34. KEY=GLProcsPL10, PL, gl10.def, libGL
  35. KEY=GLDeclsIF10Ext, IF, gl10ext.def
  36. KEY=GLProcsPD10Ext, PD, gl10ext.def, ogl_dll
  37. KEY=GLProcsPL10Ext, PL, gl10ext.def, libGL
  38. KEY=GLDeclsIF10SGI, IF, gl10sgi.def
  39. KEY=GLProcsPD10SGI, PD, gl10sgi.def, ogl_dll
  40. KEY=GLProcsPL10SGI, PL, gl10sgi.def, libGL
  41. KEY=GLDeclsIF10Mesa, IF, gl10mesa.def
  42. KEY=GLProcsPD10Mesa, PD, gl10mesa.def, ogl_dll
  43. KEY=GLProcsPL10Mesa, PL, gl10mesa.def, libGL
  44. KEY=GLDeclsIF11, IF, gl11.def
  45. KEY=GLProcsPD11, PD, gl11.def, ogl_dll
  46. KEY=GLProcsPL11, PL, gl11.def, libGL
  47. KEY=GLDeclsIF12, IF, gl12.def
  48. KEY=GLProcsPD12, PD, gl12.def, ogl_dll
  49. KEY=GLProcsPL12, PL, gl12.def, libGL
  50. [glu.pp]
  51. TEMPLATE=glu_w32d.tem
  52. KEY=GLUDeclsIF, IF,glu.def
  53. KEY=GLUProcsPD, PD,glu.def, glu_dll
  54. KEY=GLUProcsPL, PL,glu.def, libGLU
  55. [glut.pp]
  56. TEMPLATE=glut_w32d.tem
  57. KEY=GLUTDeclsIF, IF,glut.def
  58. KEY=GLUTProcsPD, PD,glut.def, glut_dll
  59. KEY=GLUTProcsPL, PL,glut.def, libGLUT
  60. [glaux.pp]
  61. TEMPLATE=glaux_w32d.tem
  62. KEY=GLAUXDeclsIF, IF,glaux.def
  63. KEY=GLAUXProcsPD, PD,glaux.def, glaux_dll
  64. KEY=GLAUXProcsPL, PL,glaux.def, libGLAUX
  65. [glx.pp]
  66. TEMPLATE=glx_w32d.tem
  67. KEY=GLXDeclsIF, IF,glx.def
  68. KEY=GLXProcsPD, PD,glx.def, glx_dll
  69. KEY=GLXProcsPL, PL,glx.def, libGLX