Changeset 8313955 in tol


Ignore:
Timestamp:
Dec 8, 2011, 12:40:38 AM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
f532388
Parents:
1a27dd0
Message:

refs #1353, uptol should be able to work with VS80 & VS90, verified with VS80. The ticket will be closed when checked with VS90.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3893 be4846ae-f051-483a-831f-b64e7d08527f

Location:
windows/build_tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • windows/build_tools/_uptol.bat

    r1a27dd0 r8313955  
    145145  Goto ERROR
    146146)
    147 If Not Exist ..\..\%_mod%\win-VC9\%_sln% (
    148   Set _msg_error=No se puede compilar, el archivo %_mod%\win-VC9\%_sln% no existe
     147If Not Exist ..\..\%_mod%\%winSrc%\%_sln% (
     148  Set _msg_error=No se puede compilar, el archivo %_mod%\%winSrc%\%_sln% no existe
    149149  Goto ERROR
    150150)
    151151If "%_vsvars32%"=="" (
    152   If Defined VS90COMNTOOLS (
    153     call "%VS90COMNTOOLS%vsvars32"
     152  If Defined VSCOMNTOOLS (
     153    call "%VSCOMNTOOLS%vsvars32"
    154154    If errorlevel 1 (
    155155      Set _msg_error=No se pudo ejecutar vsvars32
    … …  
    158158    Set _vsvars32=1
    159159  ) else (
    160     Echo VS90COMNTOOLS no esta definida intentanto vsvars32 desde el PATH
     160    Echo VSCOMNTOOLS no esta definida intentanto vsvars32 desde el PATH
    161161    call vsvars32
    162162    If errorlevel 1 (
    … …  
    169169)
    170170Rem Verifico postbuild.bat: aseguro que existe. postbuild copia la compilacion a ActiveTOL
    171 If Not Exist ..\..\%_mod%\win-VC9\postbuild.bat (
    172   xcopy /F /Y postbuild.bat %_mod%\win-VC9
    173 )
    174 vcbuild %_rbopt% /useenv ..\..\%_mod%\win-VC9\%_sln% "Release|Win32"
     171If Not Exist ..\..\%_mod%\%winSrc%\postbuild.bat (
     172  xcopy /F /Y postbuild.bat %_mod%\%winSrc%
     173)
     174vcbuild %_rbopt% /useenv ..\..\%_mod%\%winSrc%\%_sln% "Release|Win32"
    175175If errorlevel 1 (
    176176  Set _msg_error=Fallo en vcbuild con la solucion %_sln%
    … …  
    247247Rem copiamos pkgIndex.tcl de toltcl
    248248xcopy ..\..\toltcl\pkgIndex.tcl ..\ActiveTOL\lib\toltcl\ /F /Y /I
     249xcopy ..\..\toltcl\library\toltcl.tcl ..\ActiveTOL\lib\toltcl\ /F /Y /I
    249250If errorlevel 1 (
    250251  Set _msg_error=Error copiando toltcl\pkgIndex.tcl hacia ActiveTOL
    251252  Goto ERROR
    252253)
    253 Rem Copia de scripts tcl, byswidget, toltk y rmtps_client
    254 Rem byswidget
    255 Set _dir_src=..\..\tolbase\lib\byswidget
    256 Set _dir_dest=..\ActiveTOL\lib\byswidget
    257 Set  _ret=RET_CPBYS
    258 Goto UP_SCRIPTS
    259 :RET_CPBYS
    260 Rem toltk
    261 Set _dir_src=..\..\tolbase\lib\toltk
    262 Set _dir_dest=..\ActiveTOL\lib\toltk
    263 Set  _ret=RET_CPTTK
    264 Goto UP_SCRIPTS
    265 :RET_CPTTK
    266 Rem rmtps_client
    267 Set _dir_src=..\..\tolbase\lib\rmtps_client
    268 Set _dir_dest=..\ActiveTOL\lib\rmtps_client
    269 Set  _ret=RET_CPRMT
    270 Goto UP_SCRIPTS
    271 :RET_CPRMT
     254
     255Rem Copia de scripts tcl: autoscroll, byswidget, markupparser, markupviewer,
     256Rem mimetex, mkWidgets1.3 ndbmanager, notebookdb, renderpane, rmtps_client,
     257Rem toltk, trycatch, wtree
     258
     259For %%x in (autoscroll byswidget markupparser markupviewer mimetex mkWidgets1.3 nbdbmanager notebookdb renderpane toltk trycatch wtree) do (
     260  Set _dir_src=..\..\tolbase\lib\%%x
     261  Set _dir_dest=..\ActiveTOL\lib\%%x
     262
     263  If Exist !_dir_dest!\nul (
     264    Echo Borrando scripts antiguos de !_dir_dest!
     265    Rmdir /S /Q !_dir_dest%!
     266  )
     267  Echo Copiando scripts nuevos de !_dir_src! a !_dir_dest!
     268  xcopy !_dir_src! !_dir_dest! /S /F /Y /I /EXCLUDE:exclude.lst
     269  If errorlevel 1  (
     270    Set _msg_error=Error copiando !_dir_src! hacia !_dir_dest!
     271    Goto ERROR
     272  )
     273)
    272274
    273275Rem Recupero ficheros perdidos por cualquier causa
    274276If Not Exist ..\ActiveTOL\bin\tol.exe (
    275277  Echo Recuperando ejecutable perdido ..\ActiveTOL\bin\tol.exe
    276   copy ..\..\tol\win-VC9\release\tol.exe ..\ActiveTOL\bin\tol.exe
     278  copy ..\..\tol\%winSrc%\release\tol.exe ..\ActiveTOL\bin\tol.exe
    277279)
    278280If Not Exist ..\ActiveTOL\bin\tol.dll (
    279281  Echo Recuperando librería perdida ..\ActiveTOL\bin\tol.dll
    280   copy ..\..\tol\win-VC9\release\tol.dll ..\ActiveTOL\bin\tol.dll
     282  copy ..\..\tol\%winSrc%\release\tol.dll ..\ActiveTOL\bin\tol.dll
    281283)
    282284If Not Exist ..\ActiveTOL\bin\tolodbc*.dll (
    283285  Echo Recuperando librería perdida ..\ActiveTOL\bin\tolodbc*.dll
    284   copy ..\..\tol\win-VC9\libtolodbc\Release\*.dll ..\ActiveTOL\bin
     286  copy ..\..\tol\%winSrc%\libtolodbc\Release\*.dll ..\ActiveTOL\bin
    285287) 
    286288If Not Exist ..\ActiveTOL\bin\tolmysql*.dll (
    287289  Echo Recuperando librería perdida ..\ActiveTOL\bin\tolmysql*.dll
    288   copy ..\..\tol\win-VC9\libtolmysql\Release\*.dll ..\ActiveTOL\bin
     290  copy ..\..\tol\%winSrc%\libtolmysql\Release\*.dll ..\ActiveTOL\bin
    289291) 
    290292If Not Exist ..\ActiveTOL\bin\tolpgsql*.dll (
    291293  Echo Recuperando librería perdida ..\ActiveTOL\bin\tolpgsql*.dll
    292   copy ..\..\tol\win-VC9\libtolpgsql\Release\*.dll ..\ActiveTOL\bin
     294  copy ..\..\tol\%winSrc%\libtolpgsql\Release\*.dll ..\ActiveTOL\bin
    293295) 
    294296If Not Exist ..\ActiveTOL\lib\toltcl\toltcl.dll (
    295297  Echo Recuperando librería perdida ..\ActiveTOL\lib\toltcl\toltcl.dll
    296   copy ..\..\toltcl\win-VC9\Release\toltcl.dll ..\ActiveTOL\lib\toltcl\toltcl.dll
     298  copy ..\..\toltcl\%winSrc%\Release\toltcl.dll ..\ActiveTOL\lib\toltcl\toltcl.dll
    297299)
    298300If Not Exist ..\ActiveTOL\bin\vbtol.dll (
    299301  Echo Recuperando librería perdida ..\ActiveTOL\bin\vbtol.dll
    300   copy ..\..\vbtol\win-VC9\Release\vbtol.dll ..\ActiveTOL\bin\vbtol.dll
     302  copy ..\..\vbtol\%winSrc%\Release\vbtol.dll ..\ActiveTOL\bin\vbtol.dll
    301303)
    302304
  • windows/build_tools/exclude.lst

    r1a27dd0 r8313955  
    11CVS
     2.svn
    23Makefile.am
    34Makefile.in
  • windows/build_tools/uptol.bat

    r1a27dd0 r8313955  
    11@Rem Author: Jorge <josp.jorge@gmail.com>
    2 
     2@Echo Off
    33
    44..\..\tol\win-VC8\release\build_date_gen.exe
    5 
    65touch ..\..\tol\init.cpp
    76
    8 @Echo Off
    97Rem Actualiza desde el SVN el contenido de build_tools (este directorio)
    108Rem Luego procede a ejecutar _uptol.bat
    … …  
    3937)
    4038
     39If Defined VS80COMNTOOLS (
     40  Echo Reconocido el entorno de desarrollo VS80
     41  Set VSCOMNTOOLS=%VS80COMNTOOLS%
     42  Set winSrc=win-VC8
     43) Else If Defined VS90COMNTOOLS (
     44  Echo Reconocido el entorno de desarrollo VS90
     45  Set VSCOMNTOOLS=%VS90COMNTOOLS%
     46  Set winSrc=win-VC9
     47) Else (
     48  Echo No hemos encontrado un entorno de desarrollo reconocido. Los entornos reconocidos con VS80 or VS90
     49  Goto END
     50)
     51
    4152CALL _uptol.bat %*
    4253
Note: See TracChangeset for help on using the changeset viewer.