home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / appgen / vgdefs.h < prev    next >
C/C++ Source or Header  |  1999-03-11  |  2KB  |  77 lines

  1. //=======================================================================
  2. //    vgdefs.h:    Defs for vg app
  3. //=======================================================================
  4. #ifndef VGDEFS_H
  5. #define VGDEFS_H
  6. // Define where V lives on your system
  7.  
  8. #define VGEN_VERS "1.05"
  9. #define DEF_VPATH "/include"    // to find v_defs.h, etc. for compile, link
  10.  
  11. #ifdef GNUWIN32
  12.  #ifdef DEVEL
  13.   #define DEF_HOMEV "D:/mingw32" // to find libV.a
  14.  #else   //DEVEL
  15.   #define DEF_HOMEV "C:/mingw32" // to find libV.a
  16.  #endif  //DEVEL
  17.  #define DEF_LIBS "-lV -lcomctl32 -mwindows"
  18.  #define OGLDEF_LIBS "-lV -lVgl -lglu32 -lopengl32 -lcomctl32 -mwindows"
  19.  
  20. #else  //GNUWIN32
  21.  
  22.  #ifdef _WIN32
  23.   #define DEF_HOMEV "C:/egcs" // to find libV.a
  24.   #define DEF_LIBS "-lV -lcomctl32 -mwindows"
  25.   #define OGLDEF_LIBS "-lV -lVgl -lglu32 -lopengl32 -lcomctl32 -mwindows"
  26.  
  27.  #else    //_WIN32    // X version
  28.  
  29.   #ifdef LINUX
  30.    #define DEF_HOMEV "/usr" // to find libV.a
  31.   #else //LINUX
  32.    #define DEF_HOMEV "/usr/local/v" // to find libV.a
  33.   #endif //LINUX
  34.  
  35.   #ifdef Motif
  36.    #define DEF_LIBS "-lVm -lXm -lXmu -lXt -lXext -lX11"
  37.    #define OGLDEF_LIBS "-lVm -lVglm -lGLw -lGLU -lGL -lXm -lXmu -lXt -lXext -lX11"
  38.   #else  //Motif
  39.    #define DEF_LIBS "-lV -lXaw -lXmu -lXt -lXext -lX11"
  40.    #define OGLDEF_LIBS "-lV -lVgl -lGLw -lGLU -lGL -lXaw -lXmu -lXt -lXext -lX11"
  41.   #endif  //Motif
  42.  
  43.  #endif //_WIN32
  44. #endif //GNUWIN32
  45.  
  46. #ifdef OS2
  47.  #define DEF_HOMEV "E:/devtools/v/lib/os2" // to find libV.a
  48.  #define DEF_LIBS "-lvos2 -los2 -lc -lstdcpp"
  49.  #define OGLDEF_LIBS "-lvos2 -lvos2gl -lopengl -llibaux -los2 -lc -lstdcpp"
  50. #endif // OS2
  51.  
  52.     enum cnvType {Canvas, Text, OpenGL, NoCanvas};
  53.     typedef struct vgOptions
  54.       {
  55.         char appName[100];    // base name of app classes
  56.         char fileName[100]; // base name of app files
  57.         char title[100];    // title of app
  58.         char home[100];     // V home
  59.         int    addDialog,    // if add a dialog
  60.         addModal,     // if add modal dialog
  61.         addMake,     // if add makefile
  62.         addVproj,    // if add project file
  63.         extraDialog,    // if making an extra dialog
  64.         addMenu,    // for a menuless app
  65.         addToolBar,    // if add tool bar
  66.         addStatus,     // if add status bar
  67.         addDate,    // if add date/time
  68.         addTimer,    // if add a timer
  69.         vScroll,    // if include v Scroll bar
  70.         hScroll,    // if include h scroll bar
  71.         winSDI,        // if a Windows SDI model
  72.         fullMenu;    // if a full menu or short menu
  73.         cnvType canvasType;    // kind of canvas to generate
  74.  
  75.       } vgOptions;
  76. #endif
  77.