am fef11912: am ba43b928: Merge "emulator opengl - directory rearrangment"

* commit 'fef11912975311ce706a25eb28f71ba78e4a8300':
  emulator opengl - directory rearrangment
This commit is contained in:
David Turner
2011-04-05 06:05:50 -07:00
committed by Android Git Automerger
23 changed files with 133 additions and 98 deletions

View File

@@ -18,7 +18,7 @@ LOCAL_SRC_FILES := \
GLDecoder.cpp
LOCAL_C_INCLUDES += \
$(emulatorOpengl)/system/OpenglCodecCommon \
$(emulatorOpengl)/shared/OpenglCodecCommon \
$(emulatorOpengl)/system/GLESv1_enc
LOCAL_STATIC_LIBRARIES := \

View 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)

View 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

View File

@@ -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_
#define _GL_DECODER_CONTEXT_DATA_H_

View File

@@ -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)

View 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)

View File

@@ -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

View File

@@ -20,7 +20,7 @@ LOCAL_ADDITIONAL_DEPENDENCIES := \
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, libGLESv1_enc) \
$(emulatorOpengl)/system/GLESv1_enc \

View File

@@ -18,7 +18,7 @@ intermediates := $(local-intermediates-dir)
LOCAL_STATIC_LIBRARIES := \
libOpenglCodecCommon \
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
GEN := $(intermediates)/ut_rendercontrol_dec.cpp $(intermediates)/ut_rendercontrol_dec.h

View File

@@ -12,7 +12,7 @@ LOCAL_MODULE_CLASS := SHARED_LIBRARIES
ut_intermediates := $(local-intermediates-dir)
LOCAL_C_INCLUDES += $(emulatorOpengl)/system/OpenglCodecCommon
LOCAL_C_INCLUDES += $(emulatorOpengl)/shared/OpenglCodecCommon
LOCAL_STATIC_LIBRARIES := \
libOpenglCodecCommon

View File

@@ -30,8 +30,7 @@ LOCAL_SRC_FILES := ut_renderer.cpp \
Renderer.cpp \
RendererContext.cpp \
RendererSurface.cpp \
X11Windowing.cpp \
TimeUtils.cpp
X11Windowing.cpp
# 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 += -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, libGLESv1_dec, HOST) \
$(emulatorOpengl)/host/libs/GLESv1_dec \