aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/opengl/shared/emugl/common/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'emulator/opengl/shared/emugl/common/Android.mk')
-rw-r--r--emulator/opengl/shared/emugl/common/Android.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/emulator/opengl/shared/emugl/common/Android.mk b/emulator/opengl/shared/emugl/common/Android.mk
index e75f887..fb9ab57 100644
--- a/emulator/opengl/shared/emugl/common/Android.mk
+++ b/emulator/opengl/shared/emugl/common/Android.mk
@@ -17,8 +17,12 @@ commonSources := \
host_commonSources := $(commonSources)
host_commonLdLibs := -lstdc++
+
ifneq (windows,$(HOST_OS))
- host_commonLdLibs += -ldl
+ host_commonSources += thread_pthread.cpp
+ host_commonLdLibs += -ldl -lpthread
+else
+ host_commonSources += thread_win32.cpp
endif
$(call emugl-begin-host-static-library,libemugl_common)
@@ -47,6 +51,7 @@ host_commonSources := \
shared_library_unittest.cpp \
smart_ptr_unittest.cpp \
thread_store_unittest.cpp \
+ thread_unittest.cpp \
$(call emugl-begin-host-executable,emugl_common_host_unittests)
LOCAL_SRC_FILES := $(host_commonSources)