You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+28
Original file line number
Diff line number
Diff line change
@@ -84,3 +84,31 @@ PLANNED ENHANCEMENTS:
84
84
----------------------
85
85
- Add full sprintf_s() support
86
86
- Add full sscanf_s() support
87
+
88
+
89
+
# Compile and create Debian package (Ubuntu)
90
+
On Ubuntu (probably also works on other Linux distributions), use the following commands to compile a library and create a Debian package for distribution.
91
+
```
92
+
cmake -S . -B build
93
+
cd build
94
+
make -j
95
+
cpack
96
+
```
97
+
98
+
The generated package can be installed and removed using the following commands:
99
+
```
100
+
sudo dpkg -i libsafestring_<version>_amd64.deb
101
+
102
+
sudo dpkg --purge libsafestring
103
+
```
104
+
105
+
When compiling other projects against the safestring library installed via the Debian package, in the source files:
106
+
```
107
+
#include <safe_lib.h>
108
+
#include <other relevant safestringlib headers>
109
+
```
110
+
111
+
In the CMakeLists.txt, add:
112
+
```
113
+
target_link_libraries(<target name> safestring_shared <other possible library dependencies>)
0 commit comments