All ten libraries can now be built in 64-bit named "lib64*" (*)
in addition to the original 32-bit form named "lib*".
Also, dlopen "lib64*so" in 64-bit.
(*) eg. In Ubuntu, all can be built with the following command:
make out/host/linux-x86/lib/lib64OpenglRender.so \
out/host/linux-x86/lib/lib64EGL_translator.so \
out/host/linux-x86/lib/lib64GLES_CM_translator.so \
out/host/linux-x86/lib/lib64GLES_V2_translator.so
Rules to build static libraries lib64log.a, lib64cutils.a and lib64utils.a
they depend were added in other CLs.
Change-Id: I3afb64de6dda1d55dbd1b4443d2dbc78a683b19f
84 lines
2.2 KiB
Makefile
84 lines
2.2 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
host_OS_SRCS :=
|
|
host_common_LDLIBS :=
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
host_OS_SRCS = NativeLinuxSubWindow.cpp
|
|
host_common_LDLIBS += -lX11
|
|
endif
|
|
|
|
ifeq ($(HOST_OS),darwin)
|
|
host_OS_SRCS = NativeMacSubWindow.m
|
|
host_common_LDLIBS += -Wl,-framework,AppKit
|
|
endif
|
|
|
|
ifeq ($(HOST_OS),windows)
|
|
host_OS_SRCS = NativeWindowsSubWindow.cpp
|
|
endif
|
|
|
|
host_common_SRC_FILES := \
|
|
$(host_OS_SRCS) \
|
|
render_api.cpp \
|
|
ColorBuffer.cpp \
|
|
EGLDispatch.cpp \
|
|
FBConfig.cpp \
|
|
FrameBuffer.cpp \
|
|
GLDispatch.cpp \
|
|
GL2Dispatch.cpp \
|
|
RenderContext.cpp \
|
|
WindowSurface.cpp \
|
|
RenderControl.cpp \
|
|
ThreadInfo.cpp \
|
|
RenderThread.cpp \
|
|
ReadBuffer.cpp \
|
|
RenderServer.cpp
|
|
|
|
host_common_CFLAGS :=
|
|
|
|
#For gl debbuging
|
|
#host_common_CFLAGS += -DCHECK_GL_ERROR
|
|
|
|
|
|
### host libOpenglRender #################################################
|
|
$(call emugl-begin-host-shared-library,libOpenglRender)
|
|
|
|
$(call emugl-import,libGLESv1_dec libGLESv2_dec lib_renderControl_dec libOpenglCodecCommon libOpenglOsUtils)
|
|
|
|
LOCAL_LDLIBS += $(host_common_LDLIBS)
|
|
|
|
LOCAL_SRC_FILES := $(host_common_SRC_FILES)
|
|
$(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/host/include)
|
|
$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
|
|
|
|
# use Translator's egl/gles headers
|
|
LOCAL_C_INCLUDES += $(EMUGL_PATH)/host/libs/Translator/include
|
|
|
|
LOCAL_STATIC_LIBRARIES += libutils liblog
|
|
|
|
$(call emugl-export,CFLAGS,$(host_common_CFLAGS))
|
|
|
|
$(call emugl-end-module)
|
|
|
|
|
|
### host libOpenglRender, 64-bit #########################################
|
|
$(call emugl-begin-host-shared-library,lib64OpenglRender)
|
|
|
|
$(call emugl-import,lib64GLESv1_dec lib64GLESv2_dec lib64_renderControl_dec lib64OpenglCodecCommon lib64OpenglOsUtils)
|
|
|
|
#LOCAL_LDFLAGS += -m64 # adding -m64 here doesn't work, because it somehow appear BEFORE -m32 in command-line.
|
|
LOCAL_LDLIBS += $(host_common_LDLIBS) -m64 # Put -m64 it in LOCAL_LDLIBS instead.
|
|
|
|
LOCAL_SRC_FILES := $(host_common_SRC_FILES)
|
|
$(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/host/include)
|
|
$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
|
|
|
|
# use Translator's egl/gles headers
|
|
LOCAL_C_INCLUDES += $(EMUGL_PATH)/host/libs/Translator/include
|
|
|
|
LOCAL_STATIC_LIBRARIES += lib64utils lib64log
|
|
|
|
$(call emugl-export,CFLAGS,$(host_common_CFLAGS) -m64)
|
|
|
|
$(call emugl-end-module)
|