godot/platform/server/SCsub
Pedro J. Estébanez 9a3a2b03b8 Drop old semaphore implementation
- Removed platform-specific implementations.
- Now all semaphores are in-object, unless they need to be conditionally created.
- Similarly to `Mutex`, provided a dummy implementation for when `NO_THREADS` is defined.
- Similarly to `Mutex`, methods are made `const` for easy use in such contexts.
- Language bindings updated: `wait()` and `post()` are now `void`.
- Language bindings updated: `try_wait()` added.

Bonus:
- Rewritten the `#ifdef` in `mutex.h` to meet the code style.
2020-03-03 13:20:42 +01:00

17 lines
333 B
Python

#!/usr/bin/env python
import sys
Import('env')
common_server = [\
"os_server.cpp",\
]
if sys.platform == "darwin":
common_server.append("#platform/osx/crash_handler_osx.mm")
else:
common_server.append("#platform/x11/crash_handler_x11.cpp")
prog = env.add_program('#bin/godot_server', ['godot_server.cpp'] + common_server)