Skip to content

Commit

Permalink
[Network/WS/HAL/Native] Websocket configuration can now be override t…
Browse files Browse the repository at this point in the history
…hrough environment variable
  • Loading branch information
K0rdan authored and nicolas-rabault committed Jan 22, 2024
1 parent 93b4821 commit fcf885b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions network/ws_network/HAL/NATIVE/hal_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@
env.Append(CPPDEFINES=["_POSIX_C_SOURCE=200000L"])
env.Append(LIBS=["ws2_32"])
click.secho("\t* mongoose 7.8 lib ready.", fg="green")

# Websocket configurations override
if os.environ.get("WS_NETWORK_BROKER_ADDR"):
env.Append(CPPDEFINES=[("WS_NETWORK_BROKER_ADDR","\\\""+os.environ["WS_NETWORK_BROKER_ADDR"]+"\\\"")])
if os.environ.get(""):
env.Append(CPPDEFINES=[("PIPE_WS_SERVER_ADDR","\\\""+os.environ["PIPE_WS_SERVER_ADDR"]+"\\\"")])

0 comments on commit fcf885b

Please sign in to comment.