diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2016-07-04 16:02:29 -0400 |
---|---|---|
committer | Arun Raghavan <arun@arunraghavan.net> | 2016-07-14 12:57:43 +0900 |
commit | bf6b9de143edfe45ec6f40845510bdb655f866aa (patch) | |
tree | 7c9b21a6d8ee46348333b5afb643818665d04514 /webrtc | |
parent | 12ac8441f75bab2a256278926fe32450a311af1b (diff) | |
download | webrtc-audio-processing-bf6b9de143edfe45ec6f40845510bdb655f866aa.tar.gz |
build: Properly select the right system wrappers
This is needed for windows build to be usable.
https://bugs.freedesktop.org/show_bug.cgi?id=96754
Diffstat (limited to 'webrtc')
-rw-r--r-- | webrtc/system_wrappers/Makefile.am | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/webrtc/system_wrappers/Makefile.am b/webrtc/system_wrappers/Makefile.am index 6c9f4ee..8215013 100644 --- a/webrtc/system_wrappers/Makefile.am +++ b/webrtc/system_wrappers/Makefile.am @@ -42,13 +42,21 @@ libsystem_wrappers_la_SOURCES = include/aligned_malloc.h \ source/trace_impl.h \ source/trace_posix.h \ source/trace_win.h -# This assumes that we want the POSIX implementation -- should eventually be -# converted to a conditional to include Windows support +if HAVE_POSIX libsystem_wrappers_la_SOURCES += source/critical_section_posix.cc \ source/event_timer_posix.cc \ source/rw_lock_posix.cc \ source/thread_posix.cc \ source/trace_posix.cc +endif +if HAVE_WIN +libsystem_wrappers_la_SOURCES += source/critical_section_win.cc \ + source/event_timer_win.cc \ + source/rw_lock_win.cc \ + source/rw_lock_generic.cc \ + source/thread_win.cc \ + source/trace_win.cc +endif libsystem_wrappers_la_CXXFLAGS = $(AM_CXXFLAGS) $(COMMON_CXXFLAGS) EXTRA_DIST = BUILD.gn \ |