diff options
Diffstat (limited to 'emulator/opengl/shared/emugl/common/Android.mk')
-rw-r--r-- | emulator/opengl/shared/emugl/common/Android.mk | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/emulator/opengl/shared/emugl/common/Android.mk b/emulator/opengl/shared/emugl/common/Android.mk new file mode 100644 index 0000000..58dd6da --- /dev/null +++ b/emulator/opengl/shared/emugl/common/Android.mk @@ -0,0 +1,54 @@ +# 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) + +### emugl_common host library ########################################### + +commonSources := \ + id_to_object_map.cpp \ + lazy_instance.cpp \ + pod_vector.cpp \ + smart_ptr.cpp \ + sockets.cpp \ + thread_store.cpp \ + +host_commonSources := $(commonSources) + +$(call emugl-begin-host-static-library,libemugl_common) +LOCAL_SRC_FILES := $(host_commonSources) +$(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/shared) +$(call emugl-export,LDLIBS,-lstdc++) +$(call emugl-end-module) + +ifdef EMUGL_BUILD_64BITS + $(call emugl-begin-host64-static-library,lib64emugl_common) + LOCAL_SRC_FILES := $(host_commonSources) + $(call emugl-export,CFLAGS,-m64 -fPIC) + $(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/shared) + $(call emugl-export,LDLIBS,-lstdc++) + $(call emugl-end-module) +endif + + +### emugl_common_unittests ############################################## + +host_commonSources := \ + id_to_object_map_unittest.cpp \ + lazy_instance_unittest.cpp \ + pod_vector_unittest.cpp \ + mutex_unittest.cpp \ + smart_ptr_unittest.cpp \ + thread_store_unittest.cpp \ + +$(call emugl-begin-host-executable,emugl_common_host_unittests) +LOCAL_SRC_FILES := $(host_commonSources) +$(call emugl-import,libemugl_common libemugl_gtest) +$(call emugl-end-module) + +ifdef EMUGL_BUILD_64BITS + $(call emugl-begin-host64-executable,emugl64_common_host_unittests) + LOCAL_SRC_FILES := $(host_commonSources) + $(call emugl-import,lib64emugl_common lib64emugl_gtest) + $(call emugl-end-module) +endif |