1LOCAL_PATH := $(call my-dir) 2 3host_common_SRC_FILES := \ 4 GLDispatch.cpp \ 5 GLutils.cpp \ 6 GLEScontext.cpp \ 7 GLESvalidate.cpp \ 8 GLESpointer.cpp \ 9 GLESbuffer.cpp \ 10 DummyGLfuncs.cpp \ 11 RangeManip.cpp \ 12 TextureUtils.cpp \ 13 PaletteTexture.cpp \ 14 etc1.cpp \ 15 objectNameManager.cpp \ 16 FramebufferData.cpp 17 18host_GL_COMMON_LINKER_FLAGS := 19host_common_LDLIBS := 20host_common_LDFLAGS := 21 22ifeq ($(HOST_OS),linux) 23# host_common_LDFLAGS += -Wl,--whole-archive 24 host_common_LDLIBS += -lGL -ldl 25 host_common_LDFLAGS += -Wl,-Bsymbolic 26endif 27 28ifeq ($(HOST_OS),windows) 29 host_common_LDLIBS += -lopengl32 -lgdi32 30 host_common_LDFLAGS += -Wl,--add-stdcall-alias 31endif 32 33 34### EGL host implementation ######################## 35 36$(call emugl-begin-host-static-library,libGLcommon) 37 38$(call emugl-import,libOpenglOsUtils) 39translator_path := $(LOCAL_PATH)/.. 40LOCAL_SRC_FILES := $(host_common_SRC_FILES) 41$(call emugl-export,LDLIBS,$(host_common_LDLIBS)) 42$(call emugl-export,LDFLAGS,$(host_common_LDFLAGS)) 43$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/../include $(EMUGL_PATH)/shared) 44$(call emugl-export,STATIC_LIBRARIES, libemugl_common) 45 46$(call emugl-end-module) 47 48 49### EGL host implementation, 64-bit ################ 50ifdef EMUGL_BUILD_64BITS 51 $(call emugl-begin-host64-static-library,lib64GLcommon) 52 53 $(call emugl-import,lib64OpenglOsUtils) 54 translator_path := $(LOCAL_PATH)/.. 55 LOCAL_SRC_FILES := $(host_common_SRC_FILES) 56 LOCAL_CFLAGS += -fPIC 57 $(call emugl-export,LDLIBS,$(host_common_LDLIBS)) 58 $(call emugl-export,LDFLAGS,$(host_common_LDFLAGS)) 59 $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/../include $(EMUGL_PATH)/shared) 60 $(call emugl-export,STATIC_LIBRARIES, lib64emugl_common) 61 62 $(call emugl-end-module) 63endif