diff options
Diffstat (limited to 'distrib/android-emugl/shared/OpenglCodecCommon/Android.mk')
-rw-r--r-- | distrib/android-emugl/shared/OpenglCodecCommon/Android.mk | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/distrib/android-emugl/shared/OpenglCodecCommon/Android.mk b/distrib/android-emugl/shared/OpenglCodecCommon/Android.mk new file mode 100644 index 000000000..ff680ebb4 --- /dev/null +++ b/distrib/android-emugl/shared/OpenglCodecCommon/Android.mk @@ -0,0 +1,44 @@ +# This build script corresponds to a library containing many definitions +# common to both the guest and the host. They relate to +# +LOCAL_PATH := $(call my-dir) + +commonSources := \ + GLClientState.cpp \ + GLSharedGroup.cpp \ + glUtils.cpp \ + SocketStream.cpp \ + TcpStream.cpp \ + TimeUtils.cpp + +host_commonSources := $(commonSources) + +host_commonLdLibs := -lstdc++ + +ifeq ($(HOST_OS),windows) + host_commonSources += Win32PipeStream.cpp + host_commonLdLibs += -lws2_32 -lpsapi +else + host_commonSources += UnixStream.cpp +endif + + +### OpenglCodecCommon host ############################################## +$(call emugl-begin-host-static-library,libOpenglCodecCommon) + +LOCAL_SRC_FILES := $(host_commonSources) +$(call emugl-import, libemugl_common) +$(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/host/include/libOpenglRender $(LOCAL_PATH)) +$(call emugl-export,LDLIBS,$(host_commonLdLibs)) +$(call emugl-end-module) + + +### OpenglCodecCommon host, 64-bit ######################################### +$(call emugl-begin-host64-static-library,lib64OpenglCodecCommon) + +LOCAL_SRC_FILES := $(host_commonSources) +$(call emugl-import, lib64emugl_common) +$(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/host/include/libOpenglRender $(LOCAL_PATH)) +$(call emugl-export,LDLIBS,$(host_commonLdLibs)) +$(call emugl-end-module) + |