
Before now it lived in source/blender/gpu for convenience. Only a few files in the gpu module use Gawain directly. Tested on Mac, time to push and test on Windows. Todo: some CMake magic to make it easy to #include "gawain/some_header.h" from any C or H file. Main problem here is the many editors that include GPU_immediate.h which includes Gawain's immediate.h -- is there a way to avoid changing every editor's CMakeLists?
35 lines
633 B
CMake
35 lines
633 B
CMake
|
|
set(INC gawain)
|
|
|
|
set(INC_SYS ${GLEW_INCLUDE_PATH})
|
|
|
|
set(SRC
|
|
src/attrib_binding.c
|
|
src/batch.c
|
|
src/element.c
|
|
src/buffer_id.cpp
|
|
src/immediate.c
|
|
src/imm_util.c
|
|
src/primitive.c
|
|
src/shader_interface.c
|
|
src/vertex_buffer.c
|
|
src/vertex_format.c
|
|
|
|
gawain/attrib_binding.h
|
|
gawain/batch.h
|
|
gawain/buffer_id.h
|
|
gawain/common.h
|
|
gawain/element.h
|
|
gawain/immediate.h
|
|
gawain/imm_util.h
|
|
gawain/primitive.h
|
|
gawain/shader_interface.h
|
|
gawain/vertex_buffer.h
|
|
gawain/vertex_format.h
|
|
)
|
|
|
|
# remove this when we switch to core profile
|
|
add_definitions(-DWITH_GL_PROFILE_COMPAT)
|
|
|
|
blender_add_lib(bf_intern_gawain "${SRC}" "${INC}" "${INC_SYS}")
|