Skip to content

Commit e11facb

Browse files
Merge pull request #10 from NikolasK-source/main
v1.0.0
2 parents bc58b82 + c466a2e commit e11facb

12 files changed

+55
-110
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[submodule "libs/cxxopts"]
22
path = libs/cxxopts
33
url = https://github.com/NikolasK-source/cxxopts.git
4+
[submodule "libs/cxxshm"]
5+
path = libs/cxxshm
6+
url = https://github.com/NikolasK-source/cxxshm.git
7+
[submodule "libs/cxxsemaphore"]
8+
path = libs/cxxsemaphore
9+
url = https://github.com/NikolasK-source/cxxsemaphore.git

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.13.4 FATAL_ERROR)
44
# ======================================================================================================================
55

66
# project
7-
project(write-shm LANGUAGES CXX VERSION 0.1.3)
7+
project(write-shm LANGUAGES CXX VERSION 1.0.0)
88

99
# settings
1010
set(Target "write-shm") # Executable name (without file extension!)

docs/index.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,19 @@ write-shm -n mem < file
4545
write-shm -n mem -r < file
4646
```
4747

48-
## Using the Flatpak package
48+
## Install
49+
50+
### Using the Arch User Repository (recommended for Arch based Linux distributions)
51+
The application is available as [write-shm](https://aur.archlinux.org/packages/write-shm) in the [Arch User Repository](https://aur.archlinux.org/).
52+
See the [Arch Wiki](https://wiki.archlinux.org/title/Arch_User_Repository) for information about how to install AUR packages.
53+
54+
55+
### Using the Modbus Collection Flatpak Package: Shared Memory Modbus
56+
[SHM-Modbus](https://nikolask-source.github.io/SHM_Modbus/) is a collection of the shared memory modbus tools.
57+
It is available as flatpak and published on flathub as ```network.koesling.shm-modbs```.
58+
59+
60+
### Using the Standalone Flatpak package
4961
The flatpak package can be installed via the .flatpak file.
5062
This can be downloaded from the GitHub [projects release page](https://github.com/NikolasK-source/write_shm/releases):
5163

@@ -62,7 +74,7 @@ To enable calling with ```write-shm``` [this script](https://gist.github.com/Nik
6274
In order to be executable everywhere, the path in which the script is placed must be in the ```PATH``` environment variable.
6375

6476

65-
## Build from Source
77+
### Build from Source
6678

6779
The following packages are required for building the application:
6880
- cmake

libs/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
# ---------------------------------------- subdirectories --------------------------------------------------------------
33
# ======================================================================================================================
44

5-
5+
add_subdirectory(cxxopts EXCLUDE_FROM_ALL)
6+
add_subdirectory(cxxsemaphore)
7+
add_subdirectory(cxxshm)
68

79
# ---------------------------------------- link libraries --------------------------------------------------------------
810
# ======================================================================================================================
9-
target_link_libraries(${Target} PRIVATE rt)
1011

11-
add_subdirectory(cxxopts EXCLUDE_FROM_ALL)
12+
target_link_libraries(${Target} PRIVATE rt)
1213
target_link_libraries(${Target} PRIVATE cxxopts)
14+
target_link_libraries(${Target} PRIVATE cxxsemaphore)
15+
target_link_libraries(${Target} PRIVATE cxxshm)

libs/cxxsemaphore

Submodule cxxsemaphore added at c5aec9e

libs/cxxshm

Submodule cxxshm added at fc145c4

network.koesling.test-write-shm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id: network.koesling.test-write-shm
22
runtime: org.freedesktop.Platform
3-
runtime-version: '21.08'
3+
runtime-version: '23.08'
44
sdk: org.freedesktop.Sdk
55
command: write-shm
66
finish-args:

network.koesling.write-shm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id: network.koesling.write-shm
22
runtime: org.freedesktop.Platform
3-
runtime-version: '21.08'
3+
runtime-version: '23.08'
44
sdk: org.freedesktop.Sdk
55
command: write-shm
66
finish-args:

src/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
# ======================================================================================================================
33

44
target_sources(${Target} PRIVATE main.cpp)
5-
target_sources(${Target} PRIVATE SHM.cpp)
65
target_sources(${Target} PRIVATE license.cpp)
76

87
# ---------------------------------------- header files (*.jpp, *.h, ...) ----------------------------------------------
98
# ======================================================================================================================
109

11-
target_sources(${Target} PRIVATE SHM.hpp)
1210
target_sources(${Target} PRIVATE license.hpp)
1311

1412
# ---------------------------------------- subdirectories --------------------------------------------------------------

src/SHM.cpp

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

0 commit comments

Comments
 (0)