Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « gawain « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7ebd3ee7622d751eab60e8e91bbe3081da3e87e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# WITH_OPENGL limits the visibility of the opengl headers to just gawain and bg_gpu,
# to more easily highlight codepadths in other libraries that need to be refactored,
# bf_intern_gawain is allowed to have opengl regardless of this option.

if(NOT WITH_OPENGL)
	add_definitions(-DWITH_OPENGL)
endif()

set(INC
	gawain
)

set(INC_SYS
	${GLEW_INCLUDE_PATH}
)

set(SRC
	src/gwn_attr_binding.c
	src/gwn_batch.c
	src/gwn_element.c
	src/gwn_buffer_id.cpp
	src/gwn_immediate.c
	src/gwn_imm_util.c
	src/gwn_primitive.c
	src/gwn_shader_interface.c
	src/gwn_vertex_array_id.cpp
	src/gwn_vertex_buffer.c
	src/gwn_vertex_format.c

	gawain/gwn_attr_binding.h
	gawain/gwn_attr_binding_private.h
	gawain/gwn_batch.h
	gawain/gwn_batch_private.h
	gawain/gwn_buffer_id.h
	gawain/gwn_common.h
	gawain/gwn_element.h
	gawain/gwn_imm_util.h
	gawain/gwn_immediate.h
	gawain/gwn_primitive.h
	gawain/gwn_primitive_private.h
	gawain/gwn_shader_interface.h
	gawain/gwn_vertex_array_id.h
	gawain/gwn_vertex_buffer.h
	gawain/gwn_vertex_format.h
	gawain/gwn_vertex_format_private.h
)

add_definitions(${GL_DEFINITIONS})

blender_add_lib(bf_intern_gawain "${SRC}" "${INC}" "${INC_SYS}")