Skip to content

Commit

Permalink
Upgrade to FPC 3.2.0, add FPCVersion to our version string. Closes #66.
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed Jul 5, 2020
1 parent b07c546 commit bbb6be5
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ matrix:
os: linux
sudo: required
env:
- DOCKER_IMAGE=pmeira/manylinux_wheel_cmake_fpc
- DOCKER_IMAGE=pmeira/manylinux_wheel_cmake_fpc320
- KLUSOLVE_URL=https://github.com/dss-extensions/klusolve/releases/download/1.1.0a2/klusolve_1.1.0a2_linux_x64.tar.gz
services:
- docker
Expand All @@ -23,7 +23,7 @@ matrix:
os: linux
sudo: required
env:
- DOCKER_IMAGE=pmeira/manylinux_wheel_cmake_fpc_i686
- DOCKER_IMAGE=pmeira/manylinux_wheel_cmake_fpc320_i686
- KLUSOLVE_URL=https://github.com/dss-extensions/klusolve/releases/download/1.1.0a2/klusolve_1.1.0a2_linux_x86.tar.gz
services:
- docker
Expand All @@ -42,9 +42,9 @@ matrix:
- KLUSOLVE_URL=https://github.com/dss-extensions/klusolve/releases/download/1.1.0a2/klusolve_1.1.0a2_darwin_x64.tar.gz
before_install:
- |
wget https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/3.0.4/fpc-3.0.4a.intel-macosx.dmg/download -Ofpc.dmg -q
wget https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/3.2.0/fpc-3.2.0.intel-macosx.dmg/download -Ofpc.dmg -q
sudo hdiutil attach fpc.dmg
sudo installer -package /Volumes/fpc-3.0.4a.intel-macosx/fpc-3.0.4a.intel-macosx.pkg -target /
sudo installer -package /Volumes/fpc-3.2.0.intel-macosx/fpc-3.2.0-intel-macosx.pkg -target /
install: true
script:
- wget "${KLUSOLVE_URL}" -Oklusolve.tar.gz -q
Expand Down
2 changes: 2 additions & 0 deletions Version7/Source/Common/DSSGlobals.pas
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,8 @@ function GetOutputDirectory:String;
{$IFDEF DSS_CAPI_MVMULT}
+ ' MVMULT'
{$ENDIF}
+ ' [FPC ' + {$include %FPCVersion%} + ']'

;
END;
{$ELSE}
Expand Down
10 changes: 7 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@ build_script:
- cmd: >-
"c:\Program Files\Git\bin\bash" -c "bash ./make_metadata.sh"
appveyor downloadfile https://sourceforge.net/projects/dss-capi/files/FPC/FPC-win32-win64-3.0.4.7z/download -FileName FPC-win32-win64-3.0.4.7z
appveyor downloadfile https://sourceforge.net/projects/freepascal/files/Win32/3.2.0/fpc-3.2.0.i386-win32.exe/download -FileName fpc-3.2.0.i386-win32.exe
appveyor downloadfile https://sourceforge.net/projects/freepascal/files/Win32/3.2.0/fpc-3.2.0.i386-win32.cross.x86_64-win64.exe/download -FileName fpc-3.2.0.i386-win32.cross.x86_64-win64.exe
appveyor downloadfile https://github.com/dss-extensions/klusolve/releases/download/1.1.0a2/klusolve_1.1.0a2_win_x86-msvc2017.zip -FileName klusolve_x86.zip
appveyor downloadfile https://github.com/dss-extensions/klusolve/releases/download/1.1.0a2/klusolve_1.1.0a2_win_x64-gcc8.1.zip -FileName klusolve_x64.zip
7z x -oC:\ FPC-win32-win64-3.0.4.7z
fpc-3.2.0.i386-win32.exe /VERYSILENT
fpc-3.2.0.i386-win32.cross.x86_64-win64.exe /VERYSILENT
7z x -y -oC:\dss_capi\ klusolve_x86.zip
7z x -y -oC:\dss_capi\ klusolve_x64.zip
xcopy /E c:\dss_capi\klusolve\lib c:\dss_capi\lib
set PATH=%PATH%;C:\FPC\3.0.4\bin\i386-win32
set PATH=%PATH%;C:\FPC\3.2.0\bin\i386-win32
set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
Expand Down
4 changes: 2 additions & 2 deletions build_win_x64.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

where /q fpc
if errorlevel 1 (
if exist c:\lazarus\fpc\3.0.4\bin\x86_64-win64\fpc.exe (
set "PATH=%PATH%;c:\lazarus\fpc\3.0.4\bin\x86_64-win64"
if exist c:\lazarus\fpc\3.2.0\bin\x86_64-win64\fpc.exe (
set "PATH=%PATH%;c:\lazarus\fpc\3.2.0\bin\x86_64-win64"
) else (
echo ERROR: Please put fpc.exe in your executable search path and try again.
exit /B 1
Expand Down
4 changes: 2 additions & 2 deletions build_win_x86.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

where /q fpc
if errorlevel 1 (
if exist c:\lazarus\fpc\3.0.4\bin\i386-win32\fpc.exe (
set "PATH=%PATH%;c:\lazarus\fpc\3.0.4\bin\i386-win32"
if exist c:\lazarus\fpc\3.2.0\bin\i386-win32\fpc.exe (
set "PATH=%PATH%;c:\lazarus\fpc\3.2.0\bin\i386-win32"
) else (
echo ERROR: Please put fpc.exe in your executable search path and try again.
exit /B 1
Expand Down
1 change: 1 addition & 0 deletions src/v7/darwin-x64.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
-k-Llib/darwin_x64
-FElib/darwin_x64
-Scghi
-CF64
-Cg
-O3
-l
Expand Down
1 change: 1 addition & 0 deletions src/v7/linux-x64.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-Fllib/linux_x64
-FElib/linux_x64
-Scghi
-CF64
-Cg
-O3
-l
Expand Down
1 change: 1 addition & 0 deletions src/v7/linux-x86.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-Fllib/linux_x86
-FElib/linux_x86
-Scghi
-CF64
-Cg
-O3
-l
Expand Down
1 change: 1 addition & 0 deletions src/v7/windows-x64.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-Fllib/win_x64
-FElib/win_x64
-Scghi
-CF64
-Ct
-O3
-l
Expand Down
1 change: 1 addition & 0 deletions src/v7/windows-x86.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-Fllib/win_x86
-FElib/win_x86
-Scghi
-CF64
-Ct
-O3
-l
Expand Down

0 comments on commit bbb6be5

Please sign in to comment.