1 LOCAL_PATH := $(call my-dir) 2 3 host_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 18 host_GL_COMMON_LINKER_FLAGS := 19 host_common_LDLIBS := 20 host_common_LDFLAGS := 21 22 ifeq ($(HOST_OS),linux) 23 # host_common_LDFLAGS += -Wl,--whole-archive 24 host_common_LDLIBS += -lGL -ldl 25 host_common_LDFLAGS += -Wl,-Bsymbolic 26 endif 27 28 ifeq ($(HOST_OS),windows) 29 host_common_LDLIBS += -lopengl32 -lgdi32 30 host_common_LDFLAGS += -Wl,--add-stdcall-alias 31 endif 32 33 34 ### EGL host implementation ######################## 35 36 $(call emugl-begin-host-static-library,libGLcommon) 37 38 $(call emugl-import,libOpenglOsUtils) 39 translator_path := $(LOCAL_PATH)/.. 40 LOCAL_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, libcutils libutils liblog) 45 46 $(call emugl-end-module) 47 48 49 ### EGL host implementation, 64-bit ################ 50 51 $(call emugl-begin-host-static-library,lib64GLcommon) 52 53 $(call emugl-import,lib64OpenglOsUtils) 54 translator_path := $(LOCAL_PATH)/.. 55 LOCAL_SRC_FILES := $(host_common_SRC_FILES) 56 $(call emugl-export,LDLIBS,$(host_common_LDLIBS)) 57 $(call emugl-export,LDFLAGS,$(host_common_LDFLAGS)) 58 $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/../include $(EMUGL_PATH)/shared) 59 $(call emugl-export,STATIC_LIBRARIES, lib64cutils lib64utils lib64log) 60 61 $(call emugl-end-module) 62