emulator opengl - directory rearrangment
Move system/OpenglCodecCommon into shared/OpenglCodecCommon so it's code can be shared among more components of the project. Move tests/ut_renderer/TimeUtils.* into a the common area Annotate ErrLog.h and GLDecoderContextData.h with the project license statement Change-Id: Ieea42e95edd5ad89fda4cfa40356a012304ee976
This commit is contained in:
@@ -18,7 +18,7 @@ LOCAL_SRC_FILES := \
|
|||||||
GLDecoder.cpp
|
GLDecoder.cpp
|
||||||
|
|
||||||
LOCAL_C_INCLUDES += \
|
LOCAL_C_INCLUDES += \
|
||||||
$(emulatorOpengl)/system/OpenglCodecCommon \
|
$(emulatorOpengl)/shared/OpenglCodecCommon \
|
||||||
$(emulatorOpengl)/system/GLESv1_enc
|
$(emulatorOpengl)/system/GLESv1_enc
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
|
|||||||
38
tools/emulator/opengl/shared/OpenglCodecCommon/Android.mk
Normal file
38
tools/emulator/opengl/shared/OpenglCodecCommon/Android.mk
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
emulatorOpengl := $(LOCAL_PATH)/../..
|
||||||
|
|
||||||
|
### OpenglCodecCommon ##############################################
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
OpenglCodecCommon := \
|
||||||
|
GLClientState.cpp \
|
||||||
|
glUtils.cpp \
|
||||||
|
TcpStream.cpp \
|
||||||
|
TimeUtils.cpp
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES := $(OpenglCodecCommon)
|
||||||
|
|
||||||
|
LOCAL_C_INCLUDES += $(emulatorOpengl)/host/include/libOpenGLRender
|
||||||
|
|
||||||
|
LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\"
|
||||||
|
LOCAL_MODULE_TAGS := debug
|
||||||
|
LOCAL_MODULE := libOpenglCodecCommon
|
||||||
|
|
||||||
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
||||||
|
### OpenglCodecCommon host ##############################################
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES := $(OpenglCodecCommon)
|
||||||
|
|
||||||
|
LOCAL_C_INCLUDES += $(emulatorOpengl)/host/include/libOpenGLRender
|
||||||
|
|
||||||
|
LOCAL_MODULE_TAGS := debug
|
||||||
|
LOCAL_MODULE := libOpenglCodecCommon
|
||||||
|
LOCAL_PRELINK_MODULE := false
|
||||||
|
|
||||||
|
# XXX - enable the next line for host debugging - JR
|
||||||
|
# LOCAL_CFLAGS := -O0 -g
|
||||||
|
include $(BUILD_HOST_STATIC_LIBRARY)
|
||||||
29
tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h
Normal file
29
tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
#ifndef _ERROR_LOG_H_
|
||||||
|
#define _ERROR_LOG_H_
|
||||||
|
|
||||||
|
#if (HAVE_ANDROID_OS == 1)
|
||||||
|
# include <cutils/log.h>
|
||||||
|
# define ERR(...) LOGE(__VA_ARGS__)
|
||||||
|
# define DBG(...) LOGD(__VA_ARGS__)
|
||||||
|
#else
|
||||||
|
# include <stdio.h>
|
||||||
|
# define ERR(...) fprintf(stderr, __VA_ARGS__)
|
||||||
|
# define DBG(...) fprintf(stderr, __VA_ARGS__)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -1,3 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
#ifndef _GL_DECODER_CONTEXT_DATA_H_
|
#ifndef _GL_DECODER_CONTEXT_DATA_H_
|
||||||
#define _GL_DECODER_CONTEXT_DATA_H_
|
#define _GL_DECODER_CONTEXT_DATA_H_
|
||||||
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
|
|
||||||
### OpenglCodecCommon ##############################################
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
OpenglCodecCommon := \
|
|
||||||
OpenglCodecCommon/GLClientState.cpp \
|
|
||||||
OpenglCodecCommon/glUtils.cpp \
|
|
||||||
OpenglCodecCommon/TcpStream.cpp
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(OpenglCodecCommon)
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\"
|
|
||||||
LOCAL_MODULE_TAGS := debug
|
|
||||||
LOCAL_MODULE := libOpenglCodecCommon
|
|
||||||
|
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
|
||||||
|
|
||||||
### OpenglCodecCommon host ##############################################
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(OpenglCodecCommon)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := debug
|
|
||||||
LOCAL_MODULE := libOpenglCodecCommon
|
|
||||||
LOCAL_PRELINK_MODULE := false
|
|
||||||
|
|
||||||
# XXX - enable the next line for host debugging - JR
|
|
||||||
# LOCAL_CFLAGS := -O0 -g
|
|
||||||
include $(BUILD_HOST_STATIC_LIBRARY)
|
|
||||||
|
|
||||||
|
|
||||||
### GLESv1_enc Encoder ###########################################
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
|
||||||
GLESv1_enc/GLEncoder.cpp \
|
|
||||||
GLESv1_enc/GLEncoderUtils.cpp
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := debug
|
|
||||||
LOCAL_MODULE := libGLESv1_enc
|
|
||||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
|
||||||
|
|
||||||
glesv1_intermediates := $(local-intermediates-dir)
|
|
||||||
|
|
||||||
LOCAL_PRELINK_MODULE := false
|
|
||||||
LOCAL_CFLAGS += -DLOG_TAG=\"egl_GLESv1_enc\"
|
|
||||||
LOCAL_C_INCLUDES += \
|
|
||||||
$(LOCAL_PATH)/OpenglCodecCommon \
|
|
||||||
$(LOCAL_PATH)/GLESv1_enc $(glesv1_intermediates)
|
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
|
||||||
libOpenglCodecCommon
|
|
||||||
LOCAL_SHARED_LIBRARIES := libcutils
|
|
||||||
|
|
||||||
EMUGEN := $(HOST_OUT_EXECUTABLES)/emugen
|
|
||||||
|
|
||||||
GEN_GL := \
|
|
||||||
$(glesv1_intermediates)/gl_entry.cpp \
|
|
||||||
$(glesv1_intermediates)/gl_enc.cpp \
|
|
||||||
$(glesv1_intermediates)/gl_enc.h
|
|
||||||
|
|
||||||
$(GEN_GL) : PRIVATE_PATH := $(LOCAL_PATH)
|
|
||||||
$(GEN_GL) : PRIVATE_CUSTOM_TOOL := \
|
|
||||||
$(EMUGEN) -E $(glesv1_intermediates) -i $(PRIVATE_PATH)/GLESv1_enc gl
|
|
||||||
$(GEN_GL) : $(EMUGEN) \
|
|
||||||
$(LOCAL_PATH)/GLESv1_enc/gl.attrib \
|
|
||||||
$(LOCAL_PATH)/GLESv1_enc/gl.in \
|
|
||||||
$(LOCAL_PATH)/GLESv1_enc/gl.types
|
|
||||||
$(transform-generated-source)
|
|
||||||
|
|
||||||
LOCAL_GENERATED_SOURCES += $(GEN_GL)
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
|
||||||
|
|
||||||
45
tools/emulator/opengl/system/GLESv1_enc/Android.mk
Normal file
45
tools/emulator/opengl/system/GLESv1_enc/Android.mk
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
emulatorOpengl := $(LOCAL_PATH)/../..
|
||||||
|
|
||||||
|
### GLESv1_enc Encoder ###########################################
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES := \
|
||||||
|
GLEncoder.cpp \
|
||||||
|
GLEncoderUtils.cpp
|
||||||
|
|
||||||
|
LOCAL_MODULE_TAGS := debug
|
||||||
|
LOCAL_MODULE := libGLESv1_enc
|
||||||
|
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||||
|
|
||||||
|
glesv1_intermediates := $(local-intermediates-dir)
|
||||||
|
|
||||||
|
LOCAL_PRELINK_MODULE := false
|
||||||
|
LOCAL_CFLAGS += -DLOG_TAG=\"egl_GLESv1_enc\"
|
||||||
|
LOCAL_C_INCLUDES += \
|
||||||
|
$(emulatorOpengl)/shared/OpenglCodecCommon \
|
||||||
|
$(glesv1_intermediates)
|
||||||
|
|
||||||
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
|
libOpenglCodecCommon
|
||||||
|
LOCAL_SHARED_LIBRARIES := libcutils
|
||||||
|
|
||||||
|
EMUGEN := $(HOST_OUT_EXECUTABLES)/emugen
|
||||||
|
|
||||||
|
GEN_GL := \
|
||||||
|
$(glesv1_intermediates)/gl_entry.cpp \
|
||||||
|
$(glesv1_intermediates)/gl_enc.cpp \
|
||||||
|
$(glesv1_intermediates)/gl_enc.h
|
||||||
|
|
||||||
|
$(GEN_GL) : PRIVATE_PATH := $(LOCAL_PATH)
|
||||||
|
$(GEN_GL) : PRIVATE_CUSTOM_TOOL := \
|
||||||
|
$(EMUGEN) -E $(glesv1_intermediates) -i $(PRIVATE_PATH) gl
|
||||||
|
$(GEN_GL) : $(EMUGEN) \
|
||||||
|
$(LOCAL_PATH)/gl.attrib \
|
||||||
|
$(LOCAL_PATH)/gl.in \
|
||||||
|
$(LOCAL_PATH)//gl.types
|
||||||
|
$(transform-generated-source)
|
||||||
|
|
||||||
|
LOCAL_GENERATED_SOURCES += $(GEN_GL)
|
||||||
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#ifndef _ERROR_LOG_H_
|
|
||||||
#define _ERROR_LOG_H_
|
|
||||||
|
|
||||||
#if (HAVE_ANDROID_OS == 1)
|
|
||||||
# include <cutils/log.h>
|
|
||||||
# define ERR(...) LOGE(__VA_ARGS__)
|
|
||||||
# define DBG(...) LOGD(__VA_ARGS__)
|
|
||||||
#else
|
|
||||||
# include <stdio.h>
|
|
||||||
# define ERR(...) fprintf(stderr, __VA_ARGS__)
|
|
||||||
# define DBG(...) fprintf(stderr, __VA_ARGS__)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -20,7 +20,7 @@ LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|||||||
|
|
||||||
emulatorOpengl := $(LOCAL_PATH)/../..
|
emulatorOpengl := $(LOCAL_PATH)/../..
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := $(emulatorOpengl)/system/OpenglCodecCommon \
|
LOCAL_C_INCLUDES := $(emulatorOpengl)/shared/OpenglCodecCommon \
|
||||||
$(call intermediates-dir-for, SHARED_LIBRARIES, libut_rendercontrol_enc) \
|
$(call intermediates-dir-for, SHARED_LIBRARIES, libut_rendercontrol_enc) \
|
||||||
$(call intermediates-dir-for, SHARED_LIBRARIES, libGLESv1_enc) \
|
$(call intermediates-dir-for, SHARED_LIBRARIES, libGLESv1_enc) \
|
||||||
$(emulatorOpengl)/system/GLESv1_enc \
|
$(emulatorOpengl)/system/GLESv1_enc \
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ intermediates := $(local-intermediates-dir)
|
|||||||
LOCAL_STATIC_LIBRARIES := \
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
libOpenglCodecCommon \
|
libOpenglCodecCommon \
|
||||||
liblog
|
liblog
|
||||||
LOCAL_C_INCLUDES += $(emulatorOpengl)/system/OpenglCodecCommon $(emulatorOpengl)/tests/ut_rendercontrol_enc
|
LOCAL_C_INCLUDES += $(emulatorOpengl)/shared/OpenglCodecCommon $(emulatorOpengl)/tests/ut_rendercontrol_enc
|
||||||
|
|
||||||
#we use only *_dec.h as a sentinel for the other generated headers
|
#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 := $(intermediates)/ut_rendercontrol_dec.cpp $(intermediates)/ut_rendercontrol_dec.h
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
|||||||
|
|
||||||
ut_intermediates := $(local-intermediates-dir)
|
ut_intermediates := $(local-intermediates-dir)
|
||||||
|
|
||||||
LOCAL_C_INCLUDES += $(emulatorOpengl)/system/OpenglCodecCommon
|
LOCAL_C_INCLUDES += $(emulatorOpengl)/shared/OpenglCodecCommon
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
libOpenglCodecCommon
|
libOpenglCodecCommon
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ LOCAL_SRC_FILES := ut_renderer.cpp \
|
|||||||
Renderer.cpp \
|
Renderer.cpp \
|
||||||
RendererContext.cpp \
|
RendererContext.cpp \
|
||||||
RendererSurface.cpp \
|
RendererSurface.cpp \
|
||||||
X11Windowing.cpp \
|
X11Windowing.cpp
|
||||||
TimeUtils.cpp
|
|
||||||
|
|
||||||
# define PVR_WAR to support imgtec PVR opengl-ES implementation
|
# define PVR_WAR to support imgtec PVR opengl-ES implementation
|
||||||
#
|
#
|
||||||
@@ -43,7 +42,7 @@ LOCAL_SRC_FILES := ut_renderer.cpp \
|
|||||||
LOCAL_CFLAGS := -DPVR_WAR
|
LOCAL_CFLAGS := -DPVR_WAR
|
||||||
#LOCAL_CFLAGS += -g -O0
|
#LOCAL_CFLAGS += -g -O0
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := $(emulatorOpengl)/system/OpenglCodecCommon \
|
LOCAL_C_INCLUDES := $(emulatorOpengl)/shared/OpenglCodecCommon \
|
||||||
$(call intermediates-dir-for, SHARED_LIBRARIES, libut_rendercontrol_dec, HOST) \
|
$(call intermediates-dir-for, SHARED_LIBRARIES, libut_rendercontrol_dec, HOST) \
|
||||||
$(call intermediates-dir-for, SHARED_LIBRARIES, libGLESv1_dec, HOST) \
|
$(call intermediates-dir-for, SHARED_LIBRARIES, libGLESv1_dec, HOST) \
|
||||||
$(emulatorOpengl)/host/libs/GLESv1_dec \
|
$(emulatorOpengl)/host/libs/GLESv1_dec \
|
||||||
|
|||||||
Reference in New Issue
Block a user