aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/opengl/host/libs/Translator/GLcommon/Android.mk
blob: fdbedad7a2189b94f46730687851c81603a92d49 (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
LOCAL_PATH := $(call my-dir)

host_common_SRC_FILES :=     \
     GLDispatch.cpp          \
     GLutils.cpp             \
     GLEScontext.cpp         \
     GLESvalidate.cpp        \
     GLESpointer.cpp         \
     GLESbuffer.cpp          \
     DummyGLfuncs.cpp        \
     RangeManip.cpp          \
     TextureUtils.cpp        \
     PaletteTexture.cpp      \
     etc1.cpp                \
     objectNameManager.cpp   \
     FramebufferData.cpp

host_GL_COMMON_LINKER_FLAGS :=
host_common_LDLIBS :=
host_common_LDFLAGS :=

ifeq ($(HOST_OS),linux)
#    host_common_LDFLAGS += -Wl,--whole-archive
    host_common_LDLIBS += -lGL -ldl
    host_common_LDFLAGS += -Wl,-Bsymbolic
endif

ifeq ($(HOST_OS),windows)
    host_common_LDLIBS += -lopengl32 -lgdi32
    host_common_LDFLAGS += -Wl,--add-stdcall-alias
endif


### EGL host implementation ########################

$(call emugl-begin-host-static-library,libGLcommon)

translator_path := $(LOCAL_PATH)/..
LOCAL_SRC_FILES := $(host_common_SRC_FILES)
$(call emugl-export,LDLIBS,$(host_common_LDLIBS))
$(call emugl-export,LDFLAGS,$(host_common_LDFLAGS))
$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/../include $(EMUGL_PATH)/shared)
$(call emugl-export,STATIC_LIBRARIES, libemugl_common)

$(call emugl-end-module)


### EGL host implementation, 64-bit ################
ifdef EMUGL_BUILD_64BITS
    $(call emugl-begin-host64-static-library,lib64GLcommon)

    translator_path := $(LOCAL_PATH)/..
    LOCAL_SRC_FILES := $(host_common_SRC_FILES)
    LOCAL_CFLAGS += -fPIC
    $(call emugl-export,LDLIBS,$(host_common_LDLIBS))
    $(call emugl-export,LDFLAGS,$(host_common_LDFLAGS))
    $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/../include $(EMUGL_PATH)/shared)
    $(call emugl-export,STATIC_LIBRARIES, lib64emugl_common)

    $(call emugl-end-module)
endif