keunyoung | b85b275 | 2013-03-08 12:28:03 -0800 | [diff] [blame] | 1 | # This build script corresponds to a library containing many definitions |
| 2 | # common to both the guest and the host. They relate to |
| 3 | # |
| 4 | LOCAL_PATH := $(call my-dir) |
| 5 | |
| 6 | commonSources := \ |
| 7 | GLClientState.cpp \ |
Lingfeng Yang | 74e2929 | 2017-01-10 14:54:38 -0800 | [diff] [blame] | 8 | GLESTextureUtils.cpp \ |
Yahan Zhou | b7f0908 | 2016-03-10 11:45:02 -0800 | [diff] [blame] | 9 | ChecksumCalculator.cpp \ |
keunyoung | b85b275 | 2013-03-08 12:28:03 -0800 | [diff] [blame] | 10 | GLSharedGroup.cpp \ |
| 11 | glUtils.cpp \ |
Lingfeng Yang | 8e2b6e0 | 2016-10-14 11:20:45 -0700 | [diff] [blame] | 12 | IndexRangeCache.cpp \ |
keunyoung | b85b275 | 2013-03-08 12:28:03 -0800 | [diff] [blame] | 13 | SocketStream.cpp \ |
| 14 | TcpStream.cpp \ |
Roman Kiryanov | b6fce5b | 2018-09-27 16:18:58 -0700 | [diff] [blame] | 15 | auto_goldfish_dma_context.cpp \ |
Roman Kiryanov | daecd14 | 2018-11-14 14:56:27 -0800 | [diff] [blame] | 16 | goldfish_address_space.cpp \ |
keunyoung | b85b275 | 2013-03-08 12:28:03 -0800 | [diff] [blame] | 17 | |
Roman Kiryanov | 32a9b87 | 2018-09-26 11:23:59 -0700 | [diff] [blame] | 18 | ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) |
| 19 | |
| 20 | commonSources += \ |
| 21 | goldfish_dma_host.cpp \ |
| 22 | qemu_pipe_host.cpp \ |
| 23 | |
| 24 | else |
| 25 | |
| 26 | commonSources += \ |
| 27 | goldfish_dma.cpp \ |
| 28 | |
| 29 | endif |
| 30 | |
keunyoung | b85b275 | 2013-03-08 12:28:03 -0800 | [diff] [blame] | 31 | ### CodecCommon guest ############################################## |
Lingfeng Yang | 8ffdcdb | 2018-09-28 15:53:04 -0700 | [diff] [blame] | 32 | $(call emugl-begin-shared-library,libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX)) |
keunyoung | b85b275 | 2013-03-08 12:28:03 -0800 | [diff] [blame] | 33 | |
| 34 | LOCAL_SRC_FILES := $(commonSources) |
| 35 | |
| 36 | LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\" |
| 37 | |
Lingfeng Yang | 3b870aa | 2018-09-28 19:27:43 -0700 | [diff] [blame] | 38 | $(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog) |
| 39 | |
| 40 | ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) |
| 41 | $(call emugl-export,SHARED_LIBRARIES,android-emu-shared) |
| 42 | endif |
| 43 | |
keunyoung | b85b275 | 2013-03-08 12:28:03 -0800 | [diff] [blame] | 44 | $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) |
| 45 | $(call emugl-end-module) |