Browse Source

working generation command sequences

alex 25 years ago
parent
commit
51a3c70ada

+ 53 - 0
packages/opengl/build2/ogl_lind.gen

@@ -0,0 +1,53 @@
+#
+#       build tool script for generation of OpenGL units
+#
+
+# === file format description ===
+# - any empty line is ignored
+# - aything preceeded with a #, *, ; and ' is a comment
+# - sections can be 'common' or be made of a target file name
+# - common sections define general strings, but only
+#   the value of TARGET_DIR is really important for the build
+# - filename sections contain one key for the template name to be used
+#   plus some key definitons that describe the rules of how to insert
+#   generated data.
+# - a key is structured like this:
+#     key_name, key_rule [,optional_parameters]
+# - the following key rules exist and will create somewhat like this:
+#     IG = Ignore:      <key will be ignored - no text generated>
+#     TX = InsertText:  <whole text from refered file>
+#     IF = Interface:   [line from option1]
+#     PD = ProcDecls:   [line from option1] [option2] [//comment in line]
+#     PL = ProcLoaders: [function name from line in opt1]
+#                         := GetProc([option2], '[function name from opt1]');
+#   TX, IF, PD and PL use first optional parameter as the def file name.
+#   the rule PD has second optional parameter that modifys the function.
+#   the rule PL has second optional parameter for import lib/dll name string.
+
+# ==== Linux dynamic linking ====
+[common]
+TOOL_NAME   = c_gen_linux_d
+TARGET_TEXT = Linux
+TARGET_DIR  = ..\linux\
+
+[gl.pp]
+TEMPLATE=gl_linux.tem
+KEY=GLDeclsIF,   IF,gl.def
+KEY=GLProcsPD,   PD,gl.def,     cdecl;
+KEY=GLProcsPL,   PL,gl.def,     'libgl'
+KEY=GLExtDeclsIF,IF,glext.def
+KEY=GLExtProcsPD,PD,glext.def,  cdecl;
+KEY=GLExtProcsPL,PL,glext.def,  'libgl'
+KEY=GLUDeclsIF,  IF,glu.def
+KEY=GLUProcsPD,  PD,glu.def,    cdecl;
+KEY=GLUProcsPL,  PL,glu.def,    'libglu'
+KEY=GLXDeclsIF,  IF,glx.def
+KEY=GLXProcsPD,  PD,glx.def,    cdecl;
+KEY=GLXProcsPL,  PL,glx.def,    'libglx'
+
+[glut.pp]
+TEMPLATE=glut_linux.tem
+KEY=GLUTDeclsIF, IF,glut.def
+KEY=GLUTProcsPD, PD,glut.def,   cdecl;
+KEY=GLUTProcsPL, PL,glut.def,   'libglut'
+

+ 77 - 0
packages/opengl/build2/ogl_w32d.gen

@@ -0,0 +1,77 @@
+#
+#       build tool script for generation of OpenGL units
+#
+
+# === file format description ===
+# - any empty line is ignored
+# - aything preceeded with a #, *, ; and ' is a comment
+# - sections can be 'common' or be made of a target file name
+# - common sections define general strings, but only
+#   the value of TARGET_DIR is really important for the build
+# - filename sections contain one key for the template name to be used
+#   plus some key definitons that describe the rules of how to insert
+#   generated data.
+# - a key is structured like this:
+#     key_name, key_rule [,optional_parameters]
+# - the following key rules exist and will create somewhat like this:
+#     IG = Ignore:      <key will be ignored - no text generated>
+#     TX = InsertText:  <whole text from refered file>
+#     IF = Interface:   [line from option1]
+#     PD = ProcDecls:   [line from option1] [option2] [//comment in line]
+#     PL = ProcLoaders: [function name from line in opt1]
+#                         := GetProc([option2], '[function name from opt1]');
+#   TX, IF, PD and PL use first optional parameter as the def file name.
+#   the rule PD has second optional parameter that modifys the function.
+#   the rule PL has second optional parameter for import lib/dll name string.
+
+# ==== Win32 dynamic linking ====
+[common]
+TOOL_NAME   = c_gen_win32d
+TARGET_TEXT = Win32
+TARGET_DIR  = ..\win32\dynamic\
+
+[gl.pp]
+TEMPLATE=gl_w32d.tem
+KEY=GLDeclsIF10,        IF, gl10.def
+KEY=GLProcsPD10,        PD, gl10.def,           ogl_dll
+KEY=GLProcsPL10,        PL, gl10.def,           libGL
+KEY=GLDeclsIF10Ext,     IF, gl10ext.def
+KEY=GLProcsPD10Ext,     PD, gl10ext.def,        ogl_dll
+KEY=GLProcsPL10Ext,     PL, gl10ext.def,        libGL
+KEY=GLDeclsIF10SGI,     IF, gl10sgi.def
+KEY=GLProcsPD10SGI,     PD, gl10sgi.def,        ogl_dll
+KEY=GLProcsPL10SGI,     PL, gl10sgi.def,        libGL
+KEY=GLDeclsIF10Mesa,    IF, gl10mesa.def
+KEY=GLProcsPD10Mesa,    PD, gl10mesa.def,       ogl_dll
+KEY=GLProcsPL10Mesa,    PL, gl10mesa.def,       libGL
+KEY=GLDeclsIF11,        IF, gl11.def
+KEY=GLProcsPD11,        PD, gl11.def,           ogl_dll
+KEY=GLProcsPL11,        PL, gl11.def,           libGL
+KEY=GLDeclsIF12,        IF, gl12.def
+KEY=GLProcsPD12,        PD, gl12.def,           ogl_dll
+KEY=GLProcsPL12,        PL, gl12.def,           libGL
+
+[glu.pp]
+TEMPLATE=glu_w32d.tem
+KEY=GLUDeclsIF,         IF,glu.def
+KEY=GLUProcsPD,         PD,glu.def,             glu_dll
+KEY=GLUProcsPL,         PL,glu.def,             libGLU
+
+[glut.pp]
+TEMPLATE=glut_w32d.tem
+KEY=GLUTDeclsIF,        IF,glut.def
+KEY=GLUTProcsPD,        PD,glut.def,            glut_dll
+KEY=GLUTProcsPL,        PL,glut.def,            libGLUT
+
+[glaux.pp]
+TEMPLATE=glaux_w32d.tem
+KEY=GLAUXDeclsIF,       IF,glaux.def
+KEY=GLAUXProcsPD,       PD,glaux.def,           glaux_dll
+KEY=GLAUXProcsPL,       PL,glaux.def,           libGLAUX
+
+[glx.pp]
+TEMPLATE=glx_w32d.tem
+KEY=GLXDeclsIF,         IF,glx.def
+KEY=GLXProcsPD,         PD,glx.def,             glx_dll
+KEY=GLXProcsPL,         PL,glx.def,             libGLX
+

+ 68 - 0
packages/opengl/build2/ogl_w32s.gen

@@ -0,0 +1,68 @@
+#
+#       build tool script for generation of OpenGL units
+#
+
+# === file format description ===
+# - any empty line is ignored
+# - aything preceeded with a #, *, ; and ' is a comment
+# - sections can be 'common' or be made of a target file name
+# - common sections define general strings, but only
+#   the value of TARGET_DIR is really important for the build
+# - filename sections contain one key for the template name to be used
+#   plus some key definitons that describe the rules of how to insert
+#   generated data.
+# - a key is structured like this:
+#     key_name, key_rule [,optional_parameters]
+# - the following key rules exist and will create somewhat like this:
+#     IG = Ignore:      <key will be ignored - no text generated>
+#     TX = InsertText:  <whole text from refered file>
+#     IF = Interface:   [line from option1]
+#     PD = ProcDynamic: [line from option1] [option2] [//comment in line]
+#     PS = ProcStatic:  [swapped proc from option1] [option2] [//comment]
+#     PL = ProcLoaders: [function name from line in opt1]
+#                         := GetProc([option2], '[function name from opt1]');
+#   TX, IF, PD and PL use first optional parameter as the def file name.
+#   the rule PD has second optional parameter that modifys the function.
+#   the rule PL has second optional parameter for import lib/dll name string.
+
+# ==== Win32 static linking ====
+[common]
+TOOL_NAME   = c_gen_win32_s
+TARGET_TEXT = Win32
+TARGET_DIR  = ..\win32\static\
+
+[gl.pp]
+TEMPLATE=gl_w32s.tem
+KEY=GLDeclsIF10,        IF, gl10.def
+KEY=GLProcsPS10,        PS, gl10.def,           ogl_dll;
+KEY=GLDeclsIF10Ext,     IF, gl10ext.def
+KEY=GLProcsPS10Ext,     PS, gl10ext.def,        ogl_dll;
+KEY=GLDeclsIF10SGI,     IF, gl10sgi.def
+KEY=GLProcsPS10SGI,     PS, gl10sgi.def,        ogl_dll;
+KEY=GLDeclsIF10Mesa,    IF, gl10mesa.def
+KEY=GLProcsPS10Mesa,    PS, gl10mesa.def,       ogl_dll;
+KEY=GLDeclsIF11,        IF, gl11.def
+KEY=GLProcsPS11,        PS, gl11.def,           ogl_dll;
+KEY=GLDeclsIF12,        IF, gl12.def
+KEY=GLProcsPS12,        PS, gl12.def,           ogl_dll;
+
+[glu.pp]
+TEMPLATE=glu_w32s.tem
+KEY=GLUDeclsIF,         IF, glu.def
+KEY=GLUProcsPS,         PS, glu.def,            glu_dll;
+
+[glut.pp]
+TEMPLATE=glut_w32s.tem
+KEY=GLUTDeclsIF,        IF, glut.def
+KEY=GLUTProcsPS,        PS, glut.def,           glut_dll;
+
+[glaux.pp]
+TEMPLATE=glaux_w32s.tem
+KEY=GLAUXDeclsIF,       IF, glaux.def
+KEY=GLAUXProcsPS,       PS, glaux.def,          glaux_dll;
+
+[glx.pp]
+TEMPLATE=glx_w32s.tem
+KEY=GLXDeclsIF,         IF, glx.def
+KEY=GLXProcsPS,         PS, glx.def,            glx_dll;
+