ogl_w32s.gen 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 = ProcDynamic: [line from option1] [option2] [//comment in line]
  20. # PS = ProcStatic: [swapped proc from option1] [option2] [//comment]
  21. # PL = ProcLoaders: [function name from line in opt1]
  22. # := GetProc([option2], '[function name from opt1]');
  23. # TX, IF, PD and PL use first optional parameter as the def file name.
  24. # the rule PD has second optional parameter that modifys the function.
  25. # the rule PL has second optional parameter for import lib/dll name string.
  26. # ==== Win32 static linking ====
  27. [common]
  28. TOOL_NAME = c_gen_win32_s
  29. TARGET_TEXT = Win32
  30. TARGET_DIR = ../win32/
  31. [gl_sl.pp]
  32. TEMPLATE=gl_w32s.tem
  33. KEY=GLDeclsIF10, IF, gl10.def
  34. KEY=GLProcsPS10, PS, gl10.def, ogl_dll;
  35. KEY=GLDeclsIF10Ext, IF, gl10ext.def
  36. KEY=GLProcsPS10Ext, PS, gl10ext.def, ogl_dll;
  37. KEY=GLDeclsIF10SGI, IF, gl10sgi.def
  38. KEY=GLProcsPS10SGI, PS, gl10sgi.def, ogl_dll;
  39. KEY=GLDeclsIF10Mesa, IF, gl10mesa.def
  40. KEY=GLProcsPS10Mesa, PS, gl10mesa.def, ogl_dll;
  41. KEY=GLDeclsIF11, IF, gl11.def
  42. KEY=GLProcsPS11, PS, gl11.def, ogl_dll;
  43. KEY=GLDeclsIF12, IF, gl12.def
  44. KEY=GLProcsPS12, PS, gl12.def, ogl_dll;
  45. [glu_sl.pp]
  46. TEMPLATE=glu_w32s.tem
  47. KEY=GLUDeclsIF, IF, glu.def
  48. KEY=GLUProcsPS, PS, glu.def, glu_dll;
  49. [glut_sl.pp]
  50. TEMPLATE=glut_w32s.tem
  51. KEY=GLUTDeclsIF, IF, glut.def
  52. KEY=GLUTProcsPS, PS, glut.def, glut_dll;
  53. [glaux_sl.pp]
  54. TEMPLATE=glaux_w32s.tem
  55. KEY=GLAUXDeclsIF, IF, glaux.def
  56. KEY=GLAUXProcsPS, PS, glaux.def, glaux_dll;
  57. [glx_sl.pp]
  58. TEMPLATE=glx_w32s.tem
  59. KEY=GLXDeclsIF, IF, glx.def
  60. KEY=GLXProcsPS, PS, glx.def, glx_dll;