am 3f22fdc0: Merge "Android emulator opengl - unit testing render control api"
* commit '3f22fdc0faeb35ad6b7476f87938e7b2554a2255': Android emulator opengl - unit testing render control api
This commit is contained in:
34
tools/emulator/opengl/tests/ut_rendercontrol_dec/Android.mk
Normal file
34
tools/emulator/opengl/tests/ut_rendercontrol_dec/Android.mk
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
### ut_rendercontrol Decoder ###########################################
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
emulatorOpengl := $(LOCAL_PATH)/../..
|
||||
EMUGEN := $(HOST_OUT_EXECUTABLES)/emugen
|
||||
|
||||
LOCAL_IS_HOST_MODULE := true
|
||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||
LOCAL_MODULE_TAGS := debug
|
||||
LOCAL_MODULE := libut_rendercontrol_dec
|
||||
LOCAL_SRC_FILES :=
|
||||
#LOCAL_CFLAGS += -DDEBUG_PRINTOUT -O0 -g
|
||||
intermediates := $(local-intermediates-dir)
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libOpenglCodecCommon \
|
||||
liblog
|
||||
LOCAL_C_INCLUDES += $(emulatorOpengl)/system/OpenglCodecCommon $(emulatorOpengl)/tests/ut_rendercontrol_enc
|
||||
|
||||
#we use only *_dec.h as a sentinel for the other generated headers
|
||||
GEN := $(intermediates)/ut_rendercontrol_dec.cpp $(intermediates)/ut_rendercontrol_dec.h
|
||||
$(GEN): PRIVATE_PATH := $(LOCAL_PATH)
|
||||
$(GEN): PRIVATE_CUSTOM_TOOL := $(EMUGEN) -D $(intermediates) -i $(emulatorOpengl)/tests/ut_rendercontrol_enc ut_rendercontrol
|
||||
$(GEN): $(EMUGEN) \
|
||||
$(emulatorOpengl)/tests/ut_rendercontrol_enc/ut_rendercontrol.attrib \
|
||||
$(emulatorOpengl)/tests/ut_rendercontrol_enc/ut_rendercontrol.in \
|
||||
$(emulatorOpengl)/tests/ut_rendercontrol_enc/ut_rendercontrol.types
|
||||
$(transform-generated-source)
|
||||
|
||||
LOCAL_GENERATED_SOURCES += $(GEN)
|
||||
include $(BUILD_HOST_SHARED_LIBRARY)
|
||||
36
tools/emulator/opengl/tests/ut_rendercontrol_enc/Android.mk
Normal file
36
tools/emulator/opengl/tests/ut_rendercontrol_enc/Android.mk
Normal file
@@ -0,0 +1,36 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
emulatorOpengl := $(LOCAL_PATH)/../..
|
||||
#### ut_rendercontrol ####
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES :=
|
||||
LOCAL_MODULE_TAGS := debug
|
||||
LOCAL_MODULE := libut_rendercontrol_enc
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||
|
||||
ut_intermediates := $(local-intermediates-dir)
|
||||
|
||||
LOCAL_C_INCLUDES += $(emulatorOpengl)/system/OpenglCodecCommon
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libOpenglCodecCommon
|
||||
LOCAL_SHARED_LIBRARIES := libcutils
|
||||
|
||||
UT_GEN := \
|
||||
$(ut_intermediates)/ut_rendercontrol_enc.cpp \
|
||||
$(ut_intermediates)/ut_rendercontrol_enc.h
|
||||
|
||||
$(UT_GEN) : PRIVATE_PATH = $(LOCAL_PATH)
|
||||
$(UT_GEN) : PRIVATE_CUSTOM_TOOL := \
|
||||
$(EMUGEN) -i $(PRIVATE_PATH) -E $(ut_intermediates) ut_rendercontrol
|
||||
$(UT_GEN) : $(EMUGEN) \
|
||||
$(LOCAL_PATH)/ut_rendercontrol.in \
|
||||
$(LOCAL_PATH)/ut_rendercontrol.attrib \
|
||||
$(LOCAL_PATH)/ut_rendercontrol.types
|
||||
$(transform-generated-source)
|
||||
|
||||
LOCAL_GENERATED_SOURCES += $(UT_GEN)
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
GLOBAL
|
||||
base_opcode 10000
|
||||
encoder_headers <stdint.h>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
GL_ENTRY(int, createContext, uint32_t pid, uint32_t handle, uint32_t shareCtx)
|
||||
GL_ENTRY(int, createSurface, uint32_t pid, uint32_t handle)
|
||||
GL_ENTRY(int, makeCurrentContext, uint32_t pid, uint32_t drawSurface, uint32_t readSurface, uint32_t ctxHandle)
|
||||
GL_ENTRY(void, swapBuffers, uint32_t pid, uint32_t surface)
|
||||
GL_ENTRY(int, destroyContext, uint32_t pid, uint32_t handle)
|
||||
GL_ENTRY(int, destroySurface, uint32_t pid, uint32_t handle)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
uint32_t 32 0x%08x
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (C) 2011 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
Reference in New Issue
Block a user