Changeset 0783660 in tol for windows/build_tools


Ignore:
Timestamp:
Dec 7, 2015, 11:08:24 AM (11 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
93d69e0
Parents:
06328fd
Message:

Refs #1899, #1880, #1827
Se revisa ActiveTOL_Base.exe y se incorpora ActiveTOL_Patch.exe en él.
Se modifica _uptol.bat para permitir las opciones: /dist /no_tests.
Se modifica el mecanismo de comprobación de que se está usando la consola del SDK.
Se tiene en cuenta en _uptol.bat el nombre del nuevo instalador.
Se revisa build_tol_sdk/build_tol_sdk.tol para evitar las carpetas usadas en la compilación con GNU GCC
Se utiliza una ubicación limpia de TOLHOME para la compilación de TOL y de su instalador con MSVC.

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

Location:
windows/build_tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • windows/build_tools/_uptol.bat

    r06328fd r0783660  
    5353  Goto NEXT_OPTS
    5454)
     55If "%1"=="/dist" (
     56  Set _dodist=1
     57  Set _dotests=1
     58  Goto NEXT_OPTS
     59)
    5560If "%1"=="/tests" (
    5661  Set _dotests=1
    … …  
    6166  Goto NEXT_OPTS
    6267)
    63 If "%1"=="/dist" (
    64   Set _dodist=1
    65   Goto NEXT_OPTS
    66 )
     68
    6769Set _msg_error=Opcion invalida %1
    6870Goto ERROR
    … …  
    129131:COMPILE
    130132Rem Verifico que ejecutemos desde el SDK
    131 If Not Defined MSSdk (
     133clrver 1> nul 2> nul
     134If Not "%ERRORLEVEL%"=="0" (
    132135  Set _msg_error=Solo se puede compilar desde una consola Microsoft Platform SDK
    133136  Goto ERROR
    134137)
     138
    135139If Not Defined _mod (
    136140  Set _msg_error=Error interno! variable _mod no definida en COMPILE
    … …  
    311315If "%_dodist%"=="1" (
    312316  If "%_dotests%"=="0" (
    313     Echo "Forzando los test de tol debido a que se ha solicitado /dist"
    314     Set _dotests=1
     317    Echo "NO se estan forzando los test a pesar de haber solicitado /dist"
    315318  )
    316319)
    … …  
    371374Rem empaco la distribucion de tolbase si me lo han pedido
    372375If "%_dodist%"=="1" (
    373   If Not Exist ..\NSIS\Tolbase*.exe (
    374     Echo ..\NSIS\Tolbase*.exe no existe
     376  If Not Exist ..\NSIS\tol*.exe (
     377    Echo ..\NSIS\tol*.exe no existe
    375378    If Not "%_pnsis%"=="1" (
    376379      Echo Habilitando /pnsis para poder hacer /dist
    … …  
    382385If "%_pnsis%"=="1" (
    383386
    384   Echo Generando el archivo de creación del instalador de tolbase ...
     387  Echo Generando el archivo de creación del instalador de TOL ...
    385388  ..\ActiveTOL\bin\tol -v ..\NSIS\Tolbase.nsi.generate.tol
    386389  If Not Exist ..\NSIS\Tolbase.nsi (
    … …  
    388391    Goto ERROR
    389392  )
    390   If Exist ..\NSIS\Tolbase*.exe (
    391     Del /Q ..\NSIS\Tolbase*.exe
    392   )
    393   Echo Creando instalador de tolbase ...
     393  If Exist ..\NSIS\tol*.exe (
     394    Del /Q ..\NSIS\tol*.exe
     395  )
     396  Echo Creando instalador de TOL ...
    394397  makensis /V2 /X"SetCompressor /FINAL /SOLID lzma" ..\NSIS\Tolbase.nsi
    395   If Exist ..\NSIS\Tolbase*.exe (
    396     Echo El instalador de Tolbase ha sido creado en "%_cwd%\..\NSIS"
     398  If Exist ..\NSIS\tol*.exe (
     399    Echo El instalador de TOL ha sido creado en "%_cwd%\..\NSIS"
    397400  ) Else (
    398401    Set _msg_error=No se ha encontrado el resultado de ejecutar makensis
    … …  
    405408Echo status es %test_status%
    406409If "%_dodist%"=="1" (
    407   If Exist ..\NSIS\Tolbase*.exe (
    408     For %%f In (..\NSIS\Tolbase*.exe) Do (
     410  If Exist ..\NSIS\tol*.exe (
     411    For %%f In (..\NSIS\tol-msvc-v*-win32.exe) Do (
    409412      Echo encontrado %%~nxf
    410413      Set _fbin=%%~nxf
    … …  
    417420    REM ..\ActiveTOL\bin\tol -v -c"Text WriteFile(\"last_official_tol_release_win.txt\",Version);"
    418421    REM pscp last_official_tol_release_win.txt toldevel@tolp.localbayes.es:.
    419     Echo copiando Tolbase hacia www.tol-project.org
    420     pscp Tolbase*.exe toldevel@tolp.localbayes.es:/var/www/packages/win32/.
     422    Echo copiando el instalador hacia www.tol-project.org
     423    pscp tol*.exe toldevel@tolp.localbayes.es:/var/www/packages/win32/.
    421424    If "%_branchid%"=="REMtrunkREM" (
    422       Echo copiando tolbase-%_versionNumber%-setup.exe como tolbase-cvstrunk-setup.exe en www.tol-project.org
    423       plink tdt@cvs.tol-project.org "cp /home/bayes/pub/bin/win/tolbase-%_versionNumber%-setup.exe /home/bayes/pub/bin/win/tolbase-cvstrunk-setup.exe"
     425      Echo copiando tol-msvc-v%_versionNumber%-win32.exe como tolbase-cvstrunk-setup.exe en www.tol-project.org
     426      plink tdt@cvs.tol-project.org "cp /home/bayes/pub/bin/win/tol-msvc-v%_versionNumber%-win32.exe /home/bayes/pub/bin/win/tolbase-cvstrunk-setup.exe"
    424427    )
    425428    REM Echo Moviendo el empaquetado a la carpeta de almacenamiento historico
    … …  
    432435    Echo.>>%_fbody%
    433436  ) Else (
    434     Echo No se puede enviar Tolbase hacia www.tol-project.exe pues no existe en NSIS
     437    Echo No se puede enviar el instalador hacia www.tol-project.exe pues no existe en NSIS
    435438    Set _msg_error=Utilice /pnsis para construirlo
    436439    Goto ERROR
  • windows/build_tools/build_tol_sdk/build_tol_sdk.tol

    r06328fd r0783660  
    2121Real PlainHeader(Text sourcePath, Text sdkIncPath)
    2222{
    23   WriteLn("PlainHeader "+sourcePath);
    24   Set dir = GetDir(sourcePath);
    25   Set head = Select(dir[1],Real(Text s)
    26   {
    27     Or(TextEndAt(s,".h"),TextEndAt(s,".hpp"))
    28   });
    29   Set EvalSet(head,Real(Text file)
    30   {
    31     OSFilCopy(sourcePath+"/"+file,sdkIncPath+"/"+file)
    32   });
    33   Set sub = Select(dir[2],Real(Text s)
    34   {
    35     And(!TextBeginWith(s,"."),!TextBeginWith(s,"win"))
    36   });
    37   Set EvalSet(sub,Real(Text s)
    38   {
    39     PlainHeader(sourcePath+"/"+s, sdkIncPath)
    40   });
    41   True
     23  Case(TextMatch(sourcePath, "*CodeLite*"), {
     24    False
     25  }, TextMatch(sourcePath, "*BUILD_CMAKE*"), {
     26    False
     27  }, True, {
     28    WriteLn("PlainHeader "+sourcePath);
     29    Set dir = GetDir(sourcePath);
     30    Set head = Select(dir[1],Real(Text s)
     31    {
     32      Or(TextEndAt(s,".h"),TextEndAt(s,".hpp"))
     33    });
     34    Set EvalSet(head,Real(Text file)
     35    {
     36      OSFilCopy(sourcePath+"/"+file,sdkIncPath+"/"+file)
     37    });
     38    Set sub = Select(dir[2],Real(Text s)
     39    {
     40      And(!TextBeginWith(s,"."),!TextBeginWith(s,"win"))
     41    });
     42    Set EvalSet(sub,Real(Text s)
     43    {
     44      PlainHeader(sourcePath+"/"+s, sdkIncPath)
     45    });
     46    True
     47  })
    4248};
    4349 
  • windows/build_tools/uptol.bat

    r06328fd r0783660  
    99
    1010SetLocal enableextensions enabledelayedexpansion
    11 
    1211
    1312If not "%1"=="/no_update" (
    … …  
    3938If Defined VS90COMNTOOLS (
    4039  Echo Reconocido el entorno de desarrollo VS90
    41   Set VSCOMNTOOLS=%VS90COMNTOOLS%
     40  Set VSCOMNTOOLS=!VS90COMNTOOLS!
    4241  Set winSrc=win-VC9
    4342) Else If Defined VS80COMNTOOLS (
    4443  Echo Reconocido el entorno de desarrollo VS80
    45   Set VSCOMNTOOLS=%VS80COMNTOOLS%
     44  Set VSCOMNTOOLS=!VS80COMNTOOLS!
    4645  Set winSrc=win-VC8
    4746) Else (
    … …  
    5049)
    5150
     51Rem Se utiliza una ubicación 'limpia' de TOLHOME
     52Set TOLHOME=!CD!\..\building_tolhome\
     53
    5254CALL _uptol.bat %*
    5355
    54 ..\ActiveTOL_Patch.exe -y
    55 
    5656:END
Note: See TracChangeset for help on using the changeset viewer.