ogl_lind.gen 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. # ==== Linux dynamic linking ====
  26. [common]
  27. TOOL_NAME = c_gen_linux_d
  28. TARGET_TEXT = Linux
  29. TARGET_DIR = ..\linux\
  30. [gl.pp]
  31. TEMPLATE=gl_linux.tem
  32. KEY=GLDeclsIF, IF,gl.def
  33. KEY=GLProcsPD, PD,gl.def, cdecl;
  34. KEY=GLProcsPL, PL,gl.def, 'libgl'
  35. KEY=GLExtDeclsIF,IF,glext.def
  36. KEY=GLExtProcsPD,PD,glext.def, cdecl;
  37. KEY=GLExtProcsPL,PL,glext.def, 'libgl'
  38. KEY=GLUDeclsIF, IF,glu.def
  39. KEY=GLUProcsPD, PD,glu.def, cdecl;
  40. KEY=GLUProcsPL, PL,glu.def, 'libglu'
  41. KEY=GLXDeclsIF, IF,glx.def
  42. KEY=GLXProcsPD, PD,glx.def, cdecl;
  43. KEY=GLXProcsPL, PL,glx.def, 'libglx'
  44. [glut.pp]
  45. TEMPLATE=glut_linux.tem
  46. KEY=GLUTDeclsIF, IF,glut.def
  47. KEY=GLUTProcsPD, PD,glut.def, cdecl;
  48. KEY=GLUTProcsPL, PL,glut.def, 'libglut'