Skip to content

Commit ee6274b

Browse files
committed
Whitespaces cleanup.
1 parent 23ed041 commit ee6274b

16 files changed

Lines changed: 75 additions & 78 deletions

.github/workflows/actions_build.yml

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
env:
1111
CC_CMAKE_CONFIG: config/All.cmake
1212
WIN_BOOST_VERSION: "1.87.0"
13-
WIN_BOOST_DIR: "C:/local/boost_1_87_0"
14-
WIN_OPENSSL_VERSION: "3.6.0"
13+
WIN_BOOST_DIR: "C:/local/boost_1_87_0"
14+
WIN_OPENSSL_VERSION: "3.6.0"
1515

1616
jobs:
1717
build_gcc_ubuntu_24_04:
@@ -25,29 +25,29 @@ jobs:
2525
qt_ver: [5, 6]
2626
exclude:
2727
- cc_ver: 9
28-
cpp: 23
28+
cpp: 23
2929
- cc_ver: 10
30-
cpp: 23
30+
cpp: 23
3131
- cc_ver: 11
32-
cpp: 23
32+
cpp: 23
3333
- cc_ver: 12
34-
cpp: 23
34+
cpp: 23
3535
- cc_ver: 13
36-
cpp: 23
36+
cpp: 23
3737
- cc_ver: 13
38-
cpp: 23
38+
cpp: 23
3939

4040
steps:
4141
- uses: actions/checkout@v4
4242

4343
- name: Prepare Install
44-
run: sudo apt-get update --fix-missing
45-
44+
run: sudo apt-get update --fix-missing
45+
4646
- name: Install Packages
4747
run: sudo apt install libboost-all-dev qtbase5-dev qt6-base-dev libqt${{matrix.qt_ver}}serialport${{matrix.qt_ver}}-dev libssl-dev gcc-${{matrix.cc_ver}} g++-${{matrix.cc_ver}}
4848

4949
- name: Create Build Environment
50-
run: cmake -E make_directory ${{runner.workspace}}/build
50+
run: cmake -E make_directory ${{runner.workspace}}/build
5151

5252
- name: Configure CMake
5353
shell: bash
@@ -59,13 +59,13 @@ jobs:
5959
CC: gcc-${{matrix.cc_ver}}
6060
CXX: g++-${{matrix.cc_ver}}
6161

62-
- name: Build Target
62+
- name: Build Target
6363
working-directory: ${{runner.workspace}}/build
6464
shell: bash
6565
run: cmake --build . --config ${{matrix.type}}
6666
env:
67-
VERBOSE: 1
68-
67+
VERBOSE: 1
68+
6969
build_clang_ubuntu_22_04:
7070
runs-on: ubuntu-22.04
7171
strategy:
@@ -80,13 +80,13 @@ jobs:
8080
- uses: actions/checkout@v4
8181

8282
- name: Prepare Install
83-
run: sudo apt-get update --fix-missing
84-
83+
run: sudo apt-get update --fix-missing
84+
8585
- name: Install Packages
8686
run: sudo apt install libboost-all-dev qtbase5-dev qt6-base-dev libqt${{matrix.qt_ver}}serialport${{matrix.qt_ver}}-dev libssl-dev clang-${{matrix.cc_ver}}
8787

8888
- name: Create Build Environment
89-
run: cmake -E make_directory ${{runner.workspace}}/build
89+
run: cmake -E make_directory ${{runner.workspace}}/build
9090

9191
- name: Configure CMake
9292
shell: bash
@@ -98,12 +98,12 @@ jobs:
9898
CC: clang-${{matrix.cc_ver}}
9999
CXX: clang++-${{matrix.cc_ver}}
100100

101-
- name: Build Target
101+
- name: Build Target
102102
working-directory: ${{runner.workspace}}/build
103103
shell: bash
104104
run: cmake --build . --config ${{matrix.type}}
105105
env:
106-
VERBOSE: 1
106+
VERBOSE: 1
107107

108108
build_clang_ubuntu_24_04:
109109
runs-on: ubuntu-24.04
@@ -116,29 +116,29 @@ jobs:
116116
qt_ver: [5, 6]
117117
exclude:
118118
- cc_ver: 14
119-
cpp: 20
119+
cpp: 20
120120
- cc_ver: 14
121-
cpp: 23
121+
cpp: 23
122122
- cc_ver: 15
123-
cpp: 20
123+
cpp: 20
124124
- cc_ver: 15
125-
cpp: 23
125+
cpp: 23
126126
- cc_ver: 16
127127
cpp: 23
128128
- cc_ver: 17
129-
cpp: 23
129+
cpp: 23
130130

131131
steps:
132132
- uses: actions/checkout@v4
133133

134134
- name: Prepare Install
135-
run: sudo apt-get update --fix-missing
136-
135+
run: sudo apt-get update --fix-missing
136+
137137
- name: Install Packages
138138
run: sudo apt install libboost-all-dev qtbase5-dev qt6-base-dev libqt${{matrix.qt_ver}}serialport${{matrix.qt_ver}}-dev libssl-dev clang-${{matrix.cc_ver}}
139139

140140
- name: Create Build Environment
141-
run: cmake -E make_directory ${{runner.workspace}}/build
141+
run: cmake -E make_directory ${{runner.workspace}}/build
142142

143143
- name: Configure CMake
144144
shell: bash
@@ -150,13 +150,13 @@ jobs:
150150
CC: clang-${{matrix.cc_ver}}
151151
CXX: clang++-${{matrix.cc_ver}}
152152

153-
- name: Build Target
153+
- name: Build Target
154154
working-directory: ${{runner.workspace}}/build
155155
shell: bash
156156
run: cmake --build . --config ${{matrix.type}}
157157
env:
158-
VERBOSE: 1
159-
158+
VERBOSE: 1
159+
160160
build_msvc_2022:
161161
runs-on: windows-2022
162162
strategy:
@@ -171,19 +171,19 @@ jobs:
171171
- uses: actions/checkout@v4
172172

173173
- name: Create Build Environment
174-
run: cmake -E make_directory ${{runner.workspace}}/build
174+
run: cmake -E make_directory ${{runner.workspace}}/build
175175

176176
- name: Install Boost
177177
shell: cmd
178178
run: |
179-
choco install boost-msvc-14.3 --version=${{env.WIN_BOOST_VERSION}}
180-
echo BOOST_DIR=${{env.WIN_BOOST_DIR}}/lib64-msvc-14.3/cmake >>%GITHUB_ENV%
179+
choco install boost-msvc-14.3 --version=${{env.WIN_BOOST_VERSION}}
180+
echo BOOST_DIR=${{env.WIN_BOOST_DIR}}/lib64-msvc-14.3/cmake >>%GITHUB_ENV%
181181
182182
- name: Install OpenSSL
183183
if: matrix.arch == 'x64'
184184
shell: cmd
185185
run: |
186-
choco install openssl --version=${{env.WIN_OPENSSL_VERSION}}
186+
choco install openssl --version=${{env.WIN_OPENSSL_VERSION}}
187187
188188
- name: Install Curl
189189
shell: cmd
@@ -210,14 +210,13 @@ jobs:
210210
env:
211211
QT_VER: ${{matrix.qt_ver == '5' && '5.15.3' || '6.2.2'}}
212212

213-
- name: Build Target
213+
- name: Build Target
214214
working-directory: ${{runner.workspace}}/build
215215
shell: cmd
216216
run: cmake --build . --config ${{matrix.type}}
217217
env:
218-
VERBOSE: 1
218+
VERBOSE: 1
219219

220-
221220
build_msvc_2025:
222221
runs-on: windows-2025
223222
strategy:
@@ -232,19 +231,19 @@ jobs:
232231
- uses: actions/checkout@v4
233232

234233
- name: Create Build Environment
235-
run: cmake -E make_directory ${{runner.workspace}}/build
234+
run: cmake -E make_directory ${{runner.workspace}}/build
236235

237236
- name: Install Boost
238237
shell: cmd
239238
run: |
240-
choco install boost-msvc-14.3 --version=${{env.WIN_BOOST_VERSION}}
241-
echo BOOST_DIR=${{env.WIN_BOOST_DIR}}/lib64-msvc-14.3/cmake >>%GITHUB_ENV%
239+
choco install boost-msvc-14.3 --version=${{env.WIN_BOOST_VERSION}}
240+
echo BOOST_DIR=${{env.WIN_BOOST_DIR}}/lib64-msvc-14.3/cmake >>%GITHUB_ENV%
242241
243242
- name: Install OpenSSL
244243
if: matrix.arch == 'x64'
245244
shell: cmd
246245
run: |
247-
choco install openssl --version=${{env.WIN_OPENSSL_VERSION}}
246+
choco install openssl --version=${{env.WIN_OPENSSL_VERSION}}
248247
249248
- name: Install Curl
250249
shell: cmd
@@ -271,9 +270,9 @@ jobs:
271270
env:
272271
QT_VER: ${{matrix.qt_ver == '5' && '5.15.3' || '6.2.2'}}
273272

274-
- name: Build Target
273+
- name: Build Target
275274
working-directory: ${{runner.workspace}}/build
276275
shell: cmd
277276
run: cmake --build . --config ${{matrix.type}}
278277
env:
279-
VERBOSE: 1
278+
VERBOSE: 1

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ option (BUILD_SHARED_LIBS "Build as shared libraries (applicable to selected pro
4343

4444
if ("${OPT_EXTERNALS_DIR}" STREQUAL "")
4545
set (OPT_EXTERNALS_DIR "${PROJECT_SOURCE_DIR}/externals")
46-
endif ()
46+
endif ()
4747

4848
include(ExternalProject)
4949
include(${CMAKE_CURRENT_SOURCE_DIR}/Funcs.cmake)
@@ -76,5 +76,5 @@ cc_add_project (cc.mqttsn_client_filter.cc_tools_plugin)
7676

7777
if (WIN32 AND OPT_CC_TOOLS_QT)
7878
add_custom_target ("deploy_qt"
79-
COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/cc_tools_qt --target deploy_qt)
79+
COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/cc_tools_qt --target deploy_qt)
8080
endif ()

DefaultConfig.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ set (boost_params)
120120

121121
macro (add_boost_param name)
122122
if (DEFINED ${name})
123-
list (APPEND boost_params -D${name}=${${name}})
123+
list (APPEND boost_params -D${name}=${${name}})
124124
endif ()
125125
endmacro ()
126126

127127
if (OPT_ALLOW_BOOST)
128128
find_package (Boost QUIET)
129-
129+
130130
if (TARGET Boost::boost)
131131
set (boost_enabled ON)
132132
add_boost_param(BOOST_ROOT)
@@ -159,7 +159,7 @@ set (openssl_enabled OFF)
159159

160160
if (OPT_ALLOW_OPENSSL)
161161
find_package (OpenSSL QUIET)
162-
162+
163163
if (TARGET OpenSSL::SSL)
164164
set (openssl_enabled ON)
165165
endif ()

Funcs.cmake

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ function (cc_add_project name)
1212
set (git_repo_var "${cap_name}_GIT_REPOSITORY")
1313
if ("${${git_repo_var}}" STREQUAL "")
1414
set (${git_repo_var} "https://github.com/commschamp/${name}.git")
15-
endif ()
15+
endif ()
1616

1717
if (NOT "${${git_repo_var}}" STREQUAL "_")
1818
set (git_repo_param GIT_REPOSITORY ${${git_repo_var}})
19-
endif ()
19+
endif ()
2020

2121
set (git_tag_param)
2222
set (git_tag_var "${cap_name}_GIT_TAG")
2323
if ("${${git_tag_var}}" STREQUAL "")
2424
set (${git_tag_var} "${${cap_name}_DEFAULT_TAG}")
25-
endif ()
25+
endif ()
2626

2727
if (NOT "${git_repo_param}" STREQUAL "")
2828
set (git_tag_param GIT_TAG ${${git_tag_var}})
29-
endif ()
29+
endif ()
3030

3131
set (dep_param)
3232
set (dep_var "${cap_name}_DEPENDS")
3333
if (NOT "${${dep_var}}" STREQUAL "")
3434
set (dep_param DEPENDS ${${dep_var}})
35-
endif ()
35+
endif ()
3636

3737
set (exclude_from_all TRUE)
3838
set (opt_var "OPT_${cap_name}")
@@ -61,10 +61,10 @@ function (cc_add_project name)
6161
-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}
6262
${${cap_name}_DEFAULT_CMAKE_ARGS}
6363
${${cap_name}_CMAKE_ARGS}
64-
LIST_SEPARATOR |
64+
LIST_SEPARATOR |
6565
${dep_param}
6666
EXCLUDE_FROM_ALL ${exclude_from_all}
67-
)
67+
)
6868

6969
endfunction ()
7070

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,21 +107,21 @@ cmake -DCMAKE_POLICY_DEFAULT_CMP0167=NEW -DCMAKE_PREFIX_PATH=/path/to/boost/cmak
107107

108108
The provided [Dockerfile](docker/Dockerfile) can be used to build any configuration. When no extra build arguments
109109
are provided all [CommsChampion Ecosystem](https://commschamp.github.io/) applications will end up
110-
in the final image.
110+
in the final image.
111111

112-
All the artifacts will reside in the `/cc` directory (the binary executables will be in `/cc/bin`) and the
112+
All the artifacts will reside in the `/cc` directory (the binary executables will be in `/cc/bin`) and the
113113
[cc.sh](docker/cc.sh) script will be a default entrypoint. There is a user defined and all the applications
114114
are executed with the selected user permissions. The expected usage of the entrypoint is:
115115
```
116116
/cc.sh <cmd> <cmd_options...>
117-
```
117+
```
118118
The `<cmd>` is the name of the binary from the `/cc/bin`. When no arguments are provided then the script
119119
will list all the available commands. Every binary in the `/cc/bin` is expected to have `-h` command line
120120
options for help.
121121

122122
Below are the build configuration arguments, default value of which that can be changed with `--build-arg`.
123123

124-
- **CONFIG** (=config/AllDocker.cmake) - Path to the configuration to be used with the
124+
- **CONFIG** (=config/AllDocker.cmake) - Path to the configuration to be used with the
125125
[CMAKE_PROJECT_INCLUDE](https://cmake.org/cmake/help/latest/variable/CMAKE_PROJECT_INCLUDE.html) cmake parameter.
126126
- **HAS_GUI_APPS** (=true) - Flag to install relevant Qt libraries for the GUI applications.
127127
- **HAS_BOOST_APPS** (=true) - Flag to install relevant Boost libraries for command line applications.
@@ -192,18 +192,18 @@ docker build --progress=plain \
192192

193193
# AppImage Support
194194

195-
The provided [script/appimage_create.sh](script/appimage_create.sh) script can be used to create
195+
The provided [script/appimage_create.sh](script/appimage_create.sh) script can be used to create
196196
an AppImage binary when the relevant configuration has already been built.
197197
```
198198
./script/appimage_create.sh /path/to/install /path/to/AppDir
199199
```
200-
Please open the script's code and note the requirement for the `~/bin/linuxdeploy-<arch>.AppImage`
200+
Please open the script's code and note the requirement for the `~/bin/linuxdeploy-<arch>.AppImage`
201201
(and `linuxdeploy-plugin-qt-<arch>.AppImage` alongside it when Qt based applications are included).
202202
The default path to the `linuxdeploy` can be changed using `LINUXDEPLOY` environment variable.
203203
```
204204
LINUXDEPLOY=/some/othe/path/to/linuxdeploy ./script/appimage_create.sh /path/to/install /path/to/AppDir
205205
```
206-
The provided [script/appimage_build.sh](script/appimage_build.sh) script can be used to
206+
The provided [script/appimage_build.sh](script/appimage_build.sh) script can be used to
207207
both build and create an AppImage binary.
208208
```
209209
./script/appimage_build.sh
@@ -212,13 +212,13 @@ Please open the script's code to see the environment variables that can be used
212212
configuration. Note an ability to select the build configuration using the `PROJ_INCLUDE` environment
213213
variable.
214214

215-
The [AppRun](appimage/AppRun) script will be the entrypoint. The expected usage is similar to the
215+
The [AppRun](appimage/AppRun) script will be the entrypoint. The expected usage is similar to the
216216
[docker](#docker-support) one
217217
```
218218
/path/to/cc-<arch>.AppImage <cmd> [<options>...]
219219
```
220220

221-
When executed without providing `<cmd>` as an argument the script will list all the available commands.
221+
When executed without providing `<cmd>` as an argument the script will list all the available commands.
222222
Use `-h` option to get help for the selected command.
223223
```
224224
/path/to/cc-<arch>.AppImage cc_mqtt5_client_sub -h

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ WORKDIR /cc/build
2323
# Build the target
2424
RUN cmake .. -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release -DCMAKE_PROJECT_INCLUDE=${CONFIG}
2525

26-
RUN cmake --build /cc/build --parallel $(nproc)
26+
RUN cmake --build /cc/build --parallel $(nproc)
2727

2828
RUN rm -rf /cc/build/install/include /cc/build/install/bin/*.sh /cc/build/install/lib/*.a
2929

@@ -37,7 +37,7 @@ ARG HAS_BOOST_APPS=true
3737
ARG HAS_CODE_GENERATORS=true
3838

3939
# Install packages
40-
RUN apt update
40+
RUN apt update
4141
RUN if [ "${HAS_GUI_APPS}" = "true" ]; then apt install -y libqt5gui5 libqt5widgets5 libqt5serialport5 qt5dxcb-plugin; fi
4242
RUN if [ "${HAS_BOOST_APPS}" = "true" ]; then apt install -y libssl3 libboost-program-options1.74.0 libboost-system1.74.0; fi
4343
RUN if [ "${HAS_CODE_GENERATORS}" = "true" ]; then apt install -y libxml2; fi

0 commit comments

Comments
 (0)