src/coregl_export_egl.c
src/coregl_export_gl.c
src/modules/coregl_module.c
- src/modules/tracepath/coregl_tracepath.c
- src/modules/tracepath/coregl_tracepath_egl.c
- src/modules/tracepath/coregl_tracepath_gl.c
+ src/modules/coregl_tracepath.c
+ src/modules/coregl_tracepath_egl.c
+ src/modules/coregl_tracepath_gl.c
- src/modules/fastpath/coregl_fastpath.c
- src/modules/fastpath/coregl_fastpath_egl.c
- src/modules/fastpath/coregl_fastpath_gl.c
+ src/modules/coregl_fastpath.c
+ src/modules/coregl_fastpath_egl.c
+ src/modules/coregl_fastpath_gl.c
- src/modules/appopt/coregl_appopt.c
- src/modules/appopt/coregl_appopt_egl.c
- src/modules/appopt/coregl_appopt_gl.c
+ src/modules/coregl_appopt.c
+ src/modules/coregl_appopt_egl.c
+ src/modules/coregl_appopt_gl.c
)
#################################################################
# Build egl Library
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) RET_TYPE (*_orig_appopt_##FUNC_NAME) PARAM_LIST = NULL;
#define _COREGL_EXT_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST)
-# include "../../headers/sym.h"
+# include "../headers/sym.h"
#undef _COREGL_EXT_SYMBOL
#undef _COREGL_SYMBOL
{
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) COREGL_INIT_ORIGINAL(_orig_appopt_, FUNC_NAME);
#define _COREGL_EXT_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST)
-# include "../../headers/sym_egl.h"
+# include "../headers/sym_egl.h"
#undef _COREGL_EXT_SYMBOL
#undef _COREGL_SYMBOL
}
{
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) COREGL_INIT_ORIGINAL(_orig_appopt_, FUNC_NAME);
#define _COREGL_EXT_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST)
-# include "../../headers/sym_gl1.h"
-# include "../../headers/sym_gl2.h"
-# include "../../headers/sym_gl_common.h"
+# include "../headers/sym_gl1.h"
+# include "../headers/sym_gl2.h"
+# include "../headers/sym_gl_common.h"
#undef _COREGL_EXT_SYMBOL
#undef _COREGL_SYMBOL
}
-
-#undef A_ORD
-
#ifndef COREGL_APPOPT_H
#define COREGL_APPOPT_H
-#include "../coregl_module.h"
+#include "./coregl_module.h"
#ifndef COREGL_USE_MODULE_APPOPT
#error "COREGL_USE_MODULE_APPOPT must defined!!!"
#define MY_MODULE_ID COREGL_MODULE_APPOPT
#define MY_MODULE_TSTATE Appopt_ThreadState
-#include "../../coregl_internal.h"
-#include "../../coregl_export.h"
+#include "../coregl_internal.h"
+#include "../coregl_export.h"
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) extern RET_TYPE (*_orig_appopt_##FUNC_NAME) PARAM_LIST;
-# include "../../headers/sym.h"
+# include "../headers/sym.h"
#undef _COREGL_SYMBOL
// Symbol definition for appopt
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) extern RET_TYPE (appopt_##FUNC_NAME) PARAM_LIST;
-# include "../../headers/sym.h"
+# include "../headers/sym.h"
#undef _COREGL_SYMBOL
typedef struct _Appopt_ThreadState {
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) RET_TYPE (*_orig_fastpath_##FUNC_NAME) PARAM_LIST = NULL;
-# include "../../headers/sym_gl1.h"
-# include "../../headers/sym_gl2.h"
-# include "../../headers/sym_gl_common.h"
-# include "../../headers/sym_egl.h"
+# include "../headers/sym_gl1.h"
+# include "../headers/sym_gl2.h"
+# include "../headers/sym_gl_common.h"
+# include "../headers/sym_egl.h"
#undef _COREGL_SYMBOL
Fastpath_Opt_Flag fp_opt = FP_UNKNOWN_PATH;
fastpath_apply_overrides_egl(int enable)
{
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) COREGL_INIT_ORIGINAL(_orig_fastpath_, FUNC_NAME);
-# include "../../headers/sym_egl.h"
+# include "../headers/sym_egl.h"
#undef _COREGL_SYMBOL
COREGL_OVERRIDE(fastpath_, eglGetProcAddress);
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) \
if(api_gl_version <= driver_gl_version) COREGL_INIT_ORIGINAL(_orig_fastpath_, FUNC_NAME);
-# include "../../headers/sym_gl1.h"
-# include "../../headers/sym_gl2.h"
-# include "../../headers/sym_gl_common.h"
+# include "../headers/sym_gl1.h"
+# include "../headers/sym_gl2.h"
+# include "../headers/sym_gl_common.h"
#undef _COREGL_SYMBOL
#undef _COREGL_START_API
#undef _COREGL_END_API
#ifndef COREGL_FASTPATH_H
#define COREGL_FASTPATH_H
-#include "../coregl_module.h"
+#include "./coregl_module.h"
#ifndef COREGL_USE_MODULE_FASTPATH
#error "COREGL_USE_MODULE_FASTPATH must defined!!!"
#define MY_MODULE_ID COREGL_MODULE_FASTPATH
#define MY_MODULE_TSTATE Fastpath_ThreadState
-#include "../../coregl_internal.h"
-#include "../../coregl_export.h"
+#include "../coregl_internal.h"
+#include "../coregl_export.h"
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) extern RET_TYPE (*_orig_fastpath_##FUNC_NAME) PARAM_LIST;
-# include "../../headers/sym_gl1.h"
-# include "../../headers/sym_gl2.h"
-# include "../../headers/sym_gl_common.h"
-# include "../../headers/sym_egl.h"
+# include "../headers/sym_gl1.h"
+# include "../headers/sym_gl2.h"
+# include "../headers/sym_gl_common.h"
+# include "../headers/sym_egl.h"
#undef _COREGL_SYMBOL
// Symbol definition for fastpath
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) extern RET_TYPE (fastpath_##FUNC_NAME) PARAM_LIST;
-# include "../../headers/sym_gl1.h"
-# include "../../headers/sym_gl2.h"
-# include "../../headers/sym_gl_common.h"
-# include "../../headers/sym_egl.h"
+# include "../headers/sym_gl1.h"
+# include "../headers/sym_gl2.h"
+# include "../headers/sym_gl_common.h"
+# include "../headers/sym_egl.h"
#undef _COREGL_SYMBOL
#define COREGL_FASTPATH_TRACE_ALL
#include <unistd.h>
#include <signal.h>
#include <assert.h>
-#include "../../../include_KHR/EGL/eglext.h"
+#include "../../include_KHR/EGL/eglext.h"
#ifdef COREGL_FASTPATH_TRACE_CONTEXT_INFO
goto finish; \
}
-#include "../../headers/sym_egl.h"
-#include "../../headers/sym_gl1.h"
-#include "../../headers/sym_gl2.h"
-#include "../../headers/sym_gl_common.h"
+#include "../headers/sym_egl.h"
+#include "../headers/sym_gl1.h"
+#include "../headers/sym_gl2.h"
+#include "../headers/sym_gl_common.h"
#undef _COREGL_SYMBOL
#undef _COREGL_EXT_SYMBOL_ALIAS
goto finish; \
}
-#include "../../headers/sym_egl.h"
-#include "../../headers/sym_gl1.h"
-#include "../../headers/sym_gl2.h"
-#include "../../headers/sym_gl_common.h"
+#include "../headers/sym_egl.h"
+#include "../headers/sym_gl1.h"
+#include "../headers/sym_gl2.h"
+#include "../headers/sym_gl_common.h"
#undef _COREGL_EXT_SYMBOL_FASTPATH_PASS
#undef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK
gl_extension_count++; \
}
-# include "../../headers/sym_gl1.h"
-# include "../../headers/sym_gl2.h"
-# include "../../headers/sym_gl_common.h"
+# include "../headers/sym_gl1.h"
+# include "../headers/sym_gl2.h"
+# include "../headers/sym_gl_common.h"
#undef _COREGL_FASTPATH_SUPPORTED_EXTENSION
#undef _COREGL_SYMBOL
#include "../coregl_internal.h"
// TRACEPATH module
-#include "tracepath/coregl_tracepath.h"
+#include "coregl_tracepath.h"
#undef MY_MODULE_ID
#undef MY_MODULE_TSTATE
// FASTPATH module
-#include "fastpath/coregl_fastpath.h"
+#include "coregl_fastpath.h"
#undef MY_MODULE_ID
#undef MY_MODULE_TSTATE
// APIOPT module
-#include "appopt/coregl_appopt.h"
+#include "coregl_appopt.h"
#undef MY_MODULE_ID
#undef MY_MODULE_TSTATE
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) RET_TYPE (*_orig_tracepath_##FUNC_NAME) PARAM_LIST = NULL;
-# include "../../headers/sym_gl1.h"
-# include "../../headers/sym_gl2.h"
-# include "../../headers/sym_gl_common.h"
-# include "../../headers/sym_egl.h"
+# include "../headers/sym_gl1.h"
+# include "../headers/sym_gl2.h"
+# include "../headers/sym_gl_common.h"
+# include "../headers/sym_egl.h"
#undef _COREGL_SYMBOL
#define TIMEVAL_INIT { 0, 0 }
tracepath_apply_overrides_egl(int enable)
{
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) COREGL_INIT_ORIGINAL(_orig_tracepath_, FUNC_NAME);
-# include "../../headers/sym_egl.h"
+# include "../headers/sym_egl.h"
#undef _COREGL_SYMBOL
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) COREGL_OVERRIDE(tracepath_, FUNC_NAME);
-# include "../../headers/sym_egl.h"
+# include "../headers/sym_egl.h"
#undef _COREGL_SYMBOL
}
#define _COREGL_END_API(version) api_gl_version = COREGL_GLAPI_2;
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) \
if(api_gl_version <= driver_gl_version) COREGL_INIT_ORIGINAL(_orig_tracepath_, FUNC_NAME);
-# include "../../headers/sym_gl1.h"
-# include "../../headers/sym_gl2.h"
-# include "../../headers/sym_gl_common.h"
+# include "../headers/sym_gl1.h"
+# include "../headers/sym_gl2.h"
+# include "../headers/sym_gl_common.h"
#undef _COREGL_SYMBOL
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) \
if(api_gl_version <= driver_gl_version) COREGL_OVERRIDE(tracepath_, FUNC_NAME);
-# include "../../headers/sym_gl1.h"
-# include "../../headers/sym_gl2.h"
-# include "../../headers/sym_gl_common.h"
+# include "../headers/sym_gl1.h"
+# include "../headers/sym_gl2.h"
+# include "../headers/sym_gl_common.h"
#undef _COREGL_SYMBOL
#undef _COREGL_START_API
#undef _COREGL_END_API
} \
TRACE(" \E[40;37;1m)\E[0m\n"); \
}
-# include "../fastpath/coregl_fastpath_state.h"
+# include "./coregl_fastpath_state.h"
#undef GLUE_STATE
TRACE("\E[0;40;34m===================================================================================================================\E[0m\n");
#ifndef COREGL_TRACEPATH_H
#define COREGL_TRACEPATH_H
-#include "../coregl_module.h"
+#include "./coregl_module.h"
#ifndef COREGL_USE_MODULE_TRACEPATH
#error "COREGL_USE_MODULE_TRACEPATH must defined!!!"
#define MY_MODULE_ID COREGL_MODULE_TRACEPATH
#define MY_MODULE_TSTATE Tracepath_ThreadState
-#include "../../coregl_internal.h"
-#include "../../coregl_export.h"
+#include "../coregl_internal.h"
+#include "../coregl_export.h"
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) extern RET_TYPE (*_orig_tracepath_##FUNC_NAME) PARAM_LIST;
-# include "../../headers/sym_egl.h"
-# include "../../headers/sym_gl1.h"
-# include "../../headers/sym_gl2.h"
-# include "../../headers/sym_gl_common.h"
+# include "../headers/sym_egl.h"
+# include "../headers/sym_gl1.h"
+# include "../headers/sym_gl2.h"
+# include "../headers/sym_gl_common.h"
#undef _COREGL_SYMBOL
// Symbol definition for tracepath
#define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) extern RET_TYPE (tracepath_##FUNC_NAME) PARAM_LIST;
-# include "../../headers/sym_egl.h"
-# include "../../headers/sym_gl1.h"
-# include "../../headers/sym_gl2.h"
-# include "../../headers/sym_gl_common.h"
+# include "../headers/sym_egl.h"
+# include "../headers/sym_gl1.h"
+# include "../headers/sym_gl2.h"
+# include "../headers/sym_gl_common.h"
#undef _COREGL_SYMBOL
#define MAX_TRACE_NAME_LENGTH 256
goto finish; \
}
-#include "../../headers/sym_egl.h"
-#include "../../headers/sym_gl1.h"
-#include "../../headers/sym_gl2.h"
+#include "../headers/sym_egl.h"
+#include "../headers/sym_gl1.h"
+#include "../headers/sym_gl2.h"
#undef _COREGL_SYMBOL
#undef _COREGL_EXT_SYMBOL_ALIAS