blob: 5ca0a081db4ff893f4d08f93ba1919bfe37756f4 [file] [log] [blame]
keunyoungb85b2752013-03-08 12:28:03 -08001# This build script corresponds to a library containing many definitions
2# common to both the guest and the host. They relate to
3#
4LOCAL_PATH := $(call my-dir)
5
6commonSources := \
7 GLClientState.cpp \
Lingfeng Yang74e29292017-01-10 14:54:38 -08008 GLESTextureUtils.cpp \
Yahan Zhoub7f09082016-03-10 11:45:02 -08009 ChecksumCalculator.cpp \
keunyoungb85b2752013-03-08 12:28:03 -080010 GLSharedGroup.cpp \
11 glUtils.cpp \
Lingfeng Yang8e2b6e02016-10-14 11:20:45 -070012 IndexRangeCache.cpp \
keunyoungb85b2752013-03-08 12:28:03 -080013 SocketStream.cpp \
14 TcpStream.cpp \
Roman Kiryanovb6fce5b2018-09-27 16:18:58 -070015 auto_goldfish_dma_context.cpp \
Roman Kiryanovdaecd142018-11-14 14:56:27 -080016 goldfish_address_space.cpp \
keunyoungb85b2752013-03-08 12:28:03 -080017
Roman Kiryanov32a9b872018-09-26 11:23:59 -070018ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
19
20commonSources += \
21 goldfish_dma_host.cpp \
22 qemu_pipe_host.cpp \
23
24else
25
26commonSources += \
27 goldfish_dma.cpp \
28
29endif
30
keunyoungb85b2752013-03-08 12:28:03 -080031### CodecCommon guest ##############################################
Lingfeng Yang8ffdcdb2018-09-28 15:53:04 -070032$(call emugl-begin-shared-library,libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX))
keunyoungb85b2752013-03-08 12:28:03 -080033
34LOCAL_SRC_FILES := $(commonSources)
35
36LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\"
37
Lingfeng Yang3b870aa2018-09-28 19:27:43 -070038$(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog)
39
40ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
41$(call emugl-export,SHARED_LIBRARIES,android-emu-shared)
42endif
43
keunyoungb85b2752013-03-08 12:28:03 -080044$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
45$(call emugl-end-module)