This will make the *.entries files the the authoritative place to define additional GL function prototypes. All generated header files are now placed inside the build directory so that nobody will ever try to touch them again.
25 lines
792 B
CMake
25 lines
792 B
CMake
set(GENERATED_SOURCES
|
|
gles1_dec.cpp
|
|
gles1_opcodes.h
|
|
gles1_server_context.cpp)
|
|
|
|
add_custom_command(
|
|
OUTPUT ${GENERATED_SOURCES}
|
|
POST_BUILD
|
|
COMMAND ${CMAKE_BINARY_DIR}/external/android-emugl/host/tools/emugen/emugen
|
|
-D ${CMAKE_CURRENT_BINARY_DIR} gles1
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
DEPENDS emugen)
|
|
|
|
set(SOURCES
|
|
GLESv1Decoder.cpp)
|
|
|
|
if ("${cmake_build_type_lower}" STREQUAL "trace")
|
|
set(OPENGL_DEBUG "-DOPENGL_DEBUG_PRINTOUT -DCHECK_GL_ERROR")
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OPENGL_DEBUG}")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OPENGL_DEBUG}")
|
|
endif()
|
|
|
|
add_library(GLESv1_dec STATIC ${SOURCES} ${GENERATED_SOURCES})
|
|
add_dependencies(GLESv1_dec GLHeaders)
|
|
target_link_libraries(GLESv1_dec OpenglCodecCommon)
|