Skip to content

Commit 8c33334

Browse files
authored
Merge pull request #281 from fdcastel/new-build-system
[2/3] Add CMake build system; remove obsolete build configurations
2 parents 4e00280 + 441a134 commit 8c33334

182 files changed

Lines changed: 640 additions & 62477 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/linux.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Linux
22

33
on:
44
push:
5+
branches: [ "master", "new-build-system", "new-build-system-no-pr" ]
6+
pull_request:
57
branches: [ "master" ]
68

79
permissions:
@@ -18,16 +20,17 @@ jobs:
1820
- name: Install UnixODBC package
1921
run: sudo apt-get install -y unixodbc unixodbc-dev
2022

21-
- name: Go to build folder & make
22-
working-directory: ${{env.GITHUB_WORKSPACE}}
23-
run: |
24-
cd Builds/Gcc.lin
25-
cp makefile.linux makefile
26-
make
27-
23+
- name: Configure CMake
24+
run: cmake -B build -DCMAKE_BUILD_TYPE=Release
25+
26+
- name: Build
27+
run: cmake --build build --config Release
28+
29+
- name: Run tests (no database — all tests skip)
30+
run: ctest --test-dir build --output-on-failure
31+
2832
- uses: actions/upload-artifact@v4
2933
with:
30-
name: linux_libs
34+
name: linux_x64_libs
3135
path: |
32-
./Builds/Gcc.lin/Release_*
33-
!./Builds/Gcc.lin/Release_*/obj
36+
./build/libOdbcFb.so

.github/workflows/msbuild.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ name: MSBuild
77

88
on:
99
push:
10+
branches: [ "master", "new-build-system", "new-build-system-no-pr" ]
11+
pull_request:
1012
branches: [ "master" ]
1113

1214
env:
@@ -43,6 +45,10 @@ jobs:
4345
working-directory: ${{env.GITHUB_WORKSPACE}}
4446
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
4547

48+
- name: Fetch Firebird headers (required by .vcxproj include paths)
49+
working-directory: ${{env.GITHUB_WORKSPACE}}
50+
run: cmake -B build -DBUILD_TESTING=OFF
51+
4652
- name: Stub
4753
working-directory: ${{env.GITHUB_WORKSPACE}}
4854
run: |

.github/workflows/rpi_arm64.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: RaspberryPI
22

33
on:
44
push:
5+
branches: [ "master", "new-build-system", "new-build-system-no-pr" ]
6+
pull_request:
57
branches: [ "master" ]
68

79
permissions:
@@ -19,17 +21,17 @@ jobs:
1921
base_image: raspios_lite_arm64:latest
2022
copy_repository_path: /opt/fb_odbc
2123
copy_artifact_path: |
22-
Builds/Gcc.lin/Release_*
24+
build/libOdbcFb.so
2325
commands: |
24-
sudo apt-get install -y unixodbc unixodbc-dev
25-
cd /opt/fb_odbc/Builds/Gcc.lin
26-
cp makefile.linux makefile
27-
make
26+
sudo apt-get update
27+
sudo apt-get install -y cmake unixodbc unixodbc-dev
28+
cd /opt/fb_odbc
29+
cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
30+
cmake --build build --config Release
2831
2932
- uses: actions/upload-artifact@v4
3033
with:
3134
name: linux_arm64_libs
3235
path: |
33-
Release_*
34-
!Release_*/obj
36+
libOdbcFb.so
3537

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,33 @@ Install/Win32/install_image/
1111
build_*.log
1212
OdbcJdbcSetup_*.iss
1313
.vs/*
14+
15+
# CMake
16+
build/
17+
build-*/
18+
Build/
19+
out/
20+
cmake-build-*/
21+
CMakeCache.txt
22+
CMakeFiles/
23+
cmake_install.cmake
24+
CTestTestfile.cmake
25+
_deps/
26+
install_manifest.txt
27+
Testing/
28+
tests/Testing/
29+
30+
# Build artifacts
31+
*.o
32+
*.obj
33+
*.dll
34+
*.lib
35+
*.exe
36+
*.pdb
37+
*.ilk
38+
*.exp
39+
40+
# IDE
41+
.idea/
42+
.vscode/
43+
CMakeUserPresets.json

Builds/Bcc55.win/HowToCompileGuide-BCC55.txt

Lines changed: 0 additions & 109 deletions
This file was deleted.

Builds/Bcc55.win/build.bat

Lines changed: 0 additions & 15 deletions
This file was deleted.

Builds/Bcc55.win/build98.bat

Lines changed: 0 additions & 1 deletion
This file was deleted.

Builds/Bcc55.win/buildNT.bat

Lines changed: 0 additions & 1 deletion
This file was deleted.

Builds/Bcc55.win/makefile.bcc55

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)