1# This is the top-level build file for the Android HW OpenGL ES emulation 2# in Android. 3# 4# You must define BUILD_EMULATOR_OPENGL to 'true' in your environment to 5# build the following files. 6# 7# Also define BUILD_EMULATOR_OPENGL_DRIVER to 'true' to build the gralloc 8# stuff as well. 9# 10ifeq (true,$(BUILD_EMULATOR_OPENGL)) 11 12# Top-level for all modules 13EMUGL_PATH := $(call my-dir) 14 15# Directory containing common headers used by several modules 16# This is always set to a module's LOCAL_C_INCLUDES 17# See the definition of emugl-begin-module in common.mk 18# 19EMUGL_COMMON_INCLUDES := $(EMUGL_PATH)/host/include/libOpenglRender 20 21# common cflags used by several modules 22# This is always set to a module's LOCAL_CFLAGS 23# See the definition of emugl-begin-module in common.mk 24# 25EMUGL_COMMON_CFLAGS := -DWITH_GLES2 26 27# Uncomment the following line if you want to enable debug traces 28# in the GLES emulation libraries. 29# EMUGL_COMMON_CFLAGS += -DEMUGL_DEBUG=1 30 31# Include common definitions used by all the modules included later 32# in this build file. This contains the definition of all useful 33# emugl-xxxx functions. 34# 35include $(EMUGL_PATH)/common.mk 36 37# IMPORTANT: ORDER IS CRUCIAL HERE 38# 39# For the import/export feature to work properly, you must include 40# modules below in correct order. That is, if module B depends on 41# module A, then it must be included after module A below. 42# 43# This ensures that anything exported by module A will be correctly 44# be imported by module B when it is declared. 45# 46# Note that the build system will complain if you try to import a 47# module that hasn't been declared yet anyway. 48# 49 50# First, build the emugen host source-generation tool 51# 52# It will be used by other modules to generate wire protocol encode/decoder 53# source files (see all emugl-gen-decoder/encoder in common.mk) 54# 55include $(EMUGL_PATH)/host/tools/emugen/Android.mk 56include $(EMUGL_PATH)/shared/OpenglOsUtils/Android.mk 57include $(EMUGL_PATH)/shared/OpenglCodecCommon/Android.mk 58 59# System static libraries 60include $(EMUGL_PATH)/system/GLESv1_enc/Android.mk 61include $(EMUGL_PATH)/system/GLESv2_enc/Android.mk 62include $(EMUGL_PATH)/system/renderControl_enc/Android.mk 63include $(EMUGL_PATH)/system/OpenglSystemCommon/Android.mk 64 65# System shared libraries 66include $(EMUGL_PATH)/system/GLESv1/Android.mk 67include $(EMUGL_PATH)/system/GLESv2/Android.mk 68 69include $(EMUGL_PATH)/system/gralloc/Android.mk 70include $(EMUGL_PATH)/system/egl/Android.mk 71 72# Host static libraries 73include $(EMUGL_PATH)/host/libs/GLESv1_dec/Android.mk 74include $(EMUGL_PATH)/host/libs/GLESv2_dec/Android.mk 75include $(EMUGL_PATH)/host/libs/renderControl_dec/Android.mk 76include $(EMUGL_PATH)/tests/ut_rendercontrol_dec/Android.mk 77include $(EMUGL_PATH)/host/libs/Translator/GLcommon/Android.mk 78include $(EMUGL_PATH)/host/libs/Translator/GLES_CM/Android.mk 79include $(EMUGL_PATH)/host/libs/Translator/GLES_V2/Android.mk 80include $(EMUGL_PATH)/host/libs/Translator/EGL/Android.mk 81 82# Host shared libraries 83include $(EMUGL_PATH)/host/libs/libOpenglRender/Android.mk 84 85# Host executables 86include $(EMUGL_PATH)/host/renderer/Android.mk 87 88# Host unit-test for the renderer. 89 90include $(EMUGL_PATH)/tests/translator_tests/MacCommon/Android.mk 91include $(EMUGL_PATH)/tests/translator_tests/GLES_CM/Android.mk 92include $(EMUGL_PATH)/tests/translator_tests/GLES_V2/Android.mk 93 94endif # BUILD_EMULATOR_OPENGL == true 95