home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 January / pcwk_01_1999.iso / Wtestowe / Vistdstd / Install / Data.Z / Buildall.BAT < prev    next >
DOS Batch File  |  1996-10-18  |  6KB  |  118 lines

  1. @REM /* BUILDALL.BAT - Batch file for building the sample addons.
  2. @REM  * Copyright (C) 1996 Visio Corporation. All rights reserved.
  3. @REM  */
  4. @REM
  5. @echo off
  6. @echo.
  7. @REM
  8. @REM    ***********************************************************************
  9. @REM    **    Test building c-cpp add-ons
  10. @REM    **    Builds all combinations of c/cpp, exe/vsl, release/debug
  11. @REM    **    Output saved in .\txt\output.txt
  12.  
  13. call vcvars32.bat x86
  14. @echo.
  15.  
  16. set tv_NMAKE_OPTS=/nologo %1 %2 %3 %4 %5 %6 %7 %8 %9
  17. if not exist ".\txt\nul" mkdir ".\txt"
  18.  
  19. @echo ***********************************************************************    >  .\txt\output.txt
  20. @echo *** Begin...                                                                >> .\txt\output.txt
  21.  
  22. @echo *** nmake params are: %tv_NMAKE_OPTS%
  23. @echo.
  24. @echo *** nmake params are: %tv_NMAKE_OPTS%                                        >> .\txt\output.txt
  25.  
  26.  
  27. @REM    ***********************************************************************
  28. @REM    **    Debug builds:
  29.  
  30. @echo Building MyAddon...        (DEBUG)
  31. @echo ***********************************************************************    >> .\txt\output.txt
  32. @echo Building MyAddon...        (DEBUG)                                        >> .\txt\output.txt
  33. nmake %tv_NMAKE_OPTS% /f myaddon.mak CFG="myaddon - Win32 Debug"                >> .\txt\output.txt
  34.  
  35. @echo Building C++ VSL...        (DEBUG)
  36. @echo ***********************************************************************    >> .\txt\output.txt
  37. @echo Building C++ VSL...        (DEBUG)                                        >> .\txt\output.txt
  38. nmake %tv_NMAKE_OPTS% /f cppvsl.mak CFG="cppvsl - Win32 Debug"                    >> .\txt\output.txt
  39.  
  40. @echo Building C++ executable... (DEBUG)
  41. @echo ***********************************************************************    >> .\txt\output.txt
  42. @echo Building C++ executable... (DEBUG)                                        >> .\txt\output.txt
  43. nmake %tv_NMAKE_OPTS% /f cppexe.mak CFG="cppexe - Win32 Debug"                    >> .\txt\output.txt
  44.  
  45. @echo Building C VSL...          (DEBUG)
  46. @echo ***********************************************************************    >> .\txt\output.txt
  47. @echo Building C VSL...          (DEBUG)                                        >> .\txt\output.txt
  48. nmake %tv_NMAKE_OPTS% /f cvsl.mak CFG="cvsl - Win32 Debug"                        >> .\txt\output.txt
  49.  
  50. @echo Building C executable...   (DEBUG)
  51. @echo ***********************************************************************    >> .\txt\output.txt
  52. @echo Building C executable...   (DEBUG)                                        >> .\txt\output.txt
  53. nmake %tv_NMAKE_OPTS% /f cexe.mak CFG="cexe - Win32 Debug"                        >> .\txt\output.txt
  54.  
  55. @echo Building Both as VSL...    (DEBUG)
  56. @echo ***********************************************************************    >> .\txt\output.txt
  57. @echo Building Both as VSL...    (DEBUG)                                        >> .\txt\output.txt
  58. nmake %tv_NMAKE_OPTS% /f both.mak CFG="shellVSL - Win32 Debug"                    >> .\txt\output.txt
  59.  
  60. @echo Building Both as EXE...    (DEBUG)
  61. @echo ***********************************************************************    >> .\txt\output.txt
  62. @echo Building Both as EXE...    (DEBUG)                                        >> .\txt\output.txt
  63. nmake %tv_NMAKE_OPTS% /f both.mak CFG="shellEXE - Win32 Debug"                    >> .\txt\output.txt
  64.  
  65.  
  66. @REM    ***********************************************************************
  67. @REM    **    Release builds:
  68.  
  69. @echo Building MyAddon...
  70. @echo ***********************************************************************    >> .\txt\output.txt
  71. @echo Building MyAddon...                                                        >> .\txt\output.txt
  72. nmake %tv_NMAKE_OPTS% /f myaddon.mak CFG="myaddon - Win32 Release"                >> .\txt\output.txt
  73.  
  74. @echo Building C++ VSL...
  75. @echo ***********************************************************************    >> .\txt\output.txt
  76. @echo Building C++ VSL...                                                        >> .\txt\output.txt
  77. nmake %tv_NMAKE_OPTS% /f cppvsl.mak CFG="cppvsl - Win32 Release"                >> .\txt\output.txt
  78.  
  79. @echo Building C++ executable...
  80. @echo ***********************************************************************    >> .\txt\output.txt
  81. @echo Building C++ executable...                                                >> .\txt\output.txt
  82. nmake %tv_NMAKE_OPTS% /f cppexe.mak CFG="cppexe - Win32 Release"                >> .\txt\output.txt
  83.  
  84. @echo Building C VSL...
  85. @echo ***********************************************************************    >> .\txt\output.txt
  86. @echo Building C VSL...                                                            >> .\txt\output.txt
  87. nmake %tv_NMAKE_OPTS% /f cvsl.mak CFG="cvsl - Win32 Release"                    >> .\txt\output.txt
  88.  
  89. @echo Building C executable...
  90. @echo ***********************************************************************    >> .\txt\output.txt
  91. @echo Building C executable...                                                    >> .\txt\output.txt
  92. nmake %tv_NMAKE_OPTS% /f cexe.mak CFG="cexe - Win32 Release"                    >> .\txt\output.txt
  93.  
  94. @echo Building Both as VSL...
  95. @echo ***********************************************************************    >> .\txt\output.txt
  96. @echo Building Both as VSL...                                                    >> .\txt\output.txt
  97. nmake %tv_NMAKE_OPTS% /f both.mak CFG="shellVSL - Win32 Release"                >> .\txt\output.txt
  98.  
  99. @echo Building Both as EXE...
  100. @echo ***********************************************************************    >> .\txt\output.txt
  101. @echo Building Both as EXE...                                                    >> .\txt\output.txt
  102. nmake %tv_NMAKE_OPTS% /f both.mak CFG="shellEXE - Win32 Release"                >> .\txt\output.txt
  103.  
  104.  
  105. @REM    ***********************************************************************
  106. @REM    **    The end:
  107.  
  108. :DONE
  109. set tv_NMAKE_OPTS=
  110. @echo ***********************************************************************    >> .\txt\output.txt
  111. @echo *** End...                                                                >> .\txt\output.txt
  112. @echo ***********************************************************************    >> .\txt\output.txt
  113. @echo.
  114. @echo Done!
  115. @echo.
  116. @echo Nmake output has been saved in txt\output.txt
  117. @echo.
  118.