Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

droplet is a cloud variable server in C #148

Closed
wants to merge 17 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
droplet: move LWS defines into CMakeLists
GarboMuffin committed Jul 11, 2024
commit 444905eaf5b8e87505196608fc60c6c6a8a0d257
3 changes: 3 additions & 0 deletions droplet/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.13)

project(droplet LANGUAGES C)

set(LWS_WITH_SSL OFF CACHE BOOL "")
set(LWS_WITH_MINIMAL_EXAMPLES OFF CACHE BOOL "")
set(LWS_WITH_SHARED OFF CACHE BOOL "")
add_subdirectory(libwebsockets)

# we want -fhardened but we are using too old GCC
8 changes: 6 additions & 2 deletions droplet/README.md
Original file line number Diff line number Diff line change
@@ -2,10 +2,14 @@

A cloud variable server in C.

Development:

```bash
rm -rf build && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=DEBUG -DLWS_WITH_SSL=0 -DLWS_WITH_SHARED=0 -DLWS_WITH_MINIMAL_EXAMPLES=0 .. && make -j4
rm -rf build && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=DEBUG .. && make -j4
```

Production:

```bash
-DCMAKE_BUILD_TYPE=RELEASE
rm -rf build && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=RELEASE .. && make -j4
```