aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/opengl/shared/emugl/common/Android.mk
blob: 6aaa0d95eee44bb6e57a16418c0e3f06b38e5d28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# This build script corresponds to a library containing many definitions
# common to both the guest and the host. They relate to
#
LOCAL_PATH := $(call my-dir)

### emugl_common host library ###########################################

commonSources := \
        id_to_object_map.cpp \
        lazy_instance.cpp \
        pod_vector.cpp \
        shared_library.cpp \
        smart_ptr.cpp \
        sockets.cpp \
        thread_store.cpp \

host_commonSources := $(commonSources)

host_commonLdLibs := -lstdc++

ifneq (windows,$(HOST_OS))
    host_commonSources += thread_pthread.cpp
    host_commonLdLibs += -ldl -lpthread
else
    host_commonSources += thread_win32.cpp
endif

$(call emugl-begin-host-static-library,libemugl_common)
LOCAL_SRC_FILES := $(host_commonSources)
$(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/shared)
$(call emugl-export,LDLIBS,$(host_commonLdLibs))
$(call emugl-end-module)

$(call emugl-begin-host64-static-library,lib64emugl_common)
LOCAL_SRC_FILES := $(host_commonSources)
$(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/shared)
$(call emugl-export,LDLIBS,$(host_commonLdLibs))
$(call emugl-end-module)


### emugl_common_unittests ##############################################

host_commonSources := \
    id_to_object_map_unittest.cpp \
    lazy_instance_unittest.cpp \
    pod_vector_unittest.cpp \
    mutex_unittest.cpp \
    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)
$(call emugl-import,libemugl_common libemugl_gtest)
$(call emugl-end-module)

$(call emugl-begin-host64-executable,emugl64_common_host_unittests)
LOCAL_SRC_FILES := $(host_commonSources)
$(call emugl-import,lib64emugl_common lib64emugl_gtest)
$(call emugl-end-module)


$(call emugl-begin-host-shared-library,libemugl_test_shared_library)
LOCAL_SRC_FILES := testing/test_shared_library.cpp
$(call emugl-end-module)

$(call emugl-begin-host64-shared-library,lib64emugl_test_shared_library)
LOCAL_SRC_FILES := testing/test_shared_library.cpp
$(call emugl-end-module)