blob: ba9f93a1137d1cbf10c33d0d26e088d64a3d9447 [file] [log] [blame]
David 'Digit' Turner8422a112011-06-22 10:29:39 +02001# 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# Include common definitions used by all the modules included later
22# in this build file. This contains the definition of all useful
23# emugl-xxxx functions.
24#
25include $(EMUGL_PATH)/common.mk
26
27# IMPORTANT: ORDER IS CRUCIAL HERE
28#
29# For the import/export feature to work properly, you must include
30# modules below in correct order. That is, if module B depends on
31# module A, then it must be included after module A below.
32#
33# This ensures that anything exported by module A will be correctly
34# be imported by module B when it is declared.
35#
36# Note that the build system will complain if you try to import a
37# module that hasn't been declared yet anyway.
38#
39
40# First, build the emugen host source-generation tool
41#
42# It will be used by other modules to generate wire protocol encode/decoder
43# source files (see all emugl-gen-decoder/encoder in common.mk)
44#
45include $(EMUGL_PATH)/host/tools/emugen/Android.mk
46include $(EMUGL_PATH)/shared/OpenglOsUtils/Android.mk
47include $(EMUGL_PATH)/shared/OpenglCodecCommon/Android.mk
48
49# System static libraries
50include $(EMUGL_PATH)/system/GLESv1_enc/Android.mk
51include $(EMUGL_PATH)/system/GLESv2_enc/Android.mk
52include $(EMUGL_PATH)/system/renderControl_enc/Android.mk
53include $(EMUGL_PATH)/system/OpenglSystemCommon/Android.mk
54include $(EMUGL_PATH)/tests/ut_rendercontrol_enc/Android.mk
55
56# System shared libraries
57include $(EMUGL_PATH)/system/GLESv1/Android.mk
58include $(EMUGL_PATH)/system/egl/Android.mk
59include $(EMUGL_PATH)/tests/gles_android_wrapper/Android.mk
60
61include $(EMUGL_PATH)/system/gralloc/Android.mk
62
63# Host static libraries
64include $(EMUGL_PATH)/host/libs/GLESv1_dec/Android.mk
65include $(EMUGL_PATH)/host/libs/GLESv2_dec/Android.mk
66include $(EMUGL_PATH)/host/libs/renderControl_dec/Android.mk
67include $(EMUGL_PATH)/tests/ut_rendercontrol_dec/Android.mk
68include $(EMUGL_PATH)/host/libs/Translator/GLcommon/Android.mk
69include $(EMUGL_PATH)/host/libs/Translator/GLES_CM/Android.mk
70include $(EMUGL_PATH)/host/libs/Translator/GLES_V2/Android.mk
71include $(EMUGL_PATH)/host/libs/Translator/EGL/Android.mk
72
73# Host shared libraries
74include $(EMUGL_PATH)/host/libs/libOpenglRender/Android.mk
75
76# Host executables
77include $(EMUGL_PATH)/host/renderer/Android.mk
78
79# Host unit-test for the renderer. this one uses its own small
80# EGL host wrapper.
81include $(EMUGL_PATH)/tests/EGL_host_wrapper/Android.mk
82include $(EMUGL_PATH)/tests/emulator_test_renderer/Android.mk
83include $(EMUGL_PATH)/tests/ut_renderer/Android.mk
84
85include $(EMUGL_PATH)/tests/translator_tests/MacCommon/Android.mk
86include $(EMUGL_PATH)/tests/translator_tests/GLES_CM/Android.mk
87include $(EMUGL_PATH)/tests/translator_tests/GLES_V2/Android.mk
88
89endif # BUILD_EMULATOR_OPENGL == true