43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
host_common_SRC_FILES := \
|
|
GLDispatch.cpp \
|
|
GLutils.cpp \
|
|
GLEScontext.cpp \
|
|
GLESvalidate.cpp \
|
|
GLESpointer.cpp \
|
|
GLESbuffer.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 ($(BUILD_TARGET_OS),linux)
|
|
# host_common_LDFLAGS += -Wl,--whole-archive
|
|
host_common_LDLIBS += -ldl
|
|
host_common_LDFLAGS += -Wl,-Bsymbolic
|
|
endif
|
|
|
|
ifeq ($(BUILD_TARGET_OS),windows)
|
|
host_common_LDLIBS += -lgdi32
|
|
host_common_LDFLAGS += -Wl,--add-stdcall-alias
|
|
endif
|
|
|
|
### EGL host implementation ########################
|
|
|
|
$(call emugl-begin-host-static-library,libGLcommon)
|
|
|
|
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)
|
|
|