summaryrefslogtreecommitdiff
path: root/src/lib/ector
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-27 10:45:20 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-27 10:56:02 -0200
commit28960d78513f95204a75e86af817efb3a343e6b0 (patch)
treecac9ed5e4f393ac5d49000bc372a8c405d19e69f /src/lib/ector
parentaea33c274a3ccf96f813411e5ccfb8279cbd6c7a (diff)
cmake: add ector.
Diffstat (limited to 'src/lib/ector')
-rw-r--r--src/lib/ector/CMakeLists.txt139
1 files changed, 139 insertions, 0 deletions
diff --git a/src/lib/ector/CMakeLists.txt b/src/lib/ector/CMakeLists.txt
new file mode 100644
index 0000000000..133909192b
--- /dev/null
+++ b/src/lib/ector/CMakeLists.txt
@@ -0,0 +1,139 @@
1set(DESCRIPTION "Enlightened retained mode drawing library")
2
3set(LIBRARIES
4 eet
5 efl
6 emile
7 m
8)
9
10set(PUBLIC_LIBRARIES
11 eina
12 eo
13)
14
15set(PUBLIC_EO_FILES
16 ector_buffer.eo
17 ector_renderer.eo
18 ector_renderer_buffer.eo
19 ector_renderer_gradient.eo
20 ector_renderer_gradient_linear.eo
21 ector_renderer_gradient_radial.eo
22 ector_renderer_shape.eo
23 ector_surface.eo
24 ector_types.eot
25
26 cairo/ector_cairo_software_surface.eo
27 cairo/ector_cairo_surface.eo
28 cairo/ector_renderer_cairo.eo
29 cairo/ector_renderer_cairo_gradient_linear.eo
30 cairo/ector_renderer_cairo_gradient_radial.eo
31 cairo/ector_renderer_cairo_shape.eo
32
33 gl/ector_gl_buffer.eo
34 gl/ector_gl_buffer_base.eo
35 gl/ector_gl_surface.eo
36 gl/ector_renderer_gl.eo
37 gl/ector_renderer_gl_gradient_linear.eo
38 gl/ector_renderer_gl_gradient_radial.eo
39 gl/ector_renderer_gl_shape.eo
40
41 software/ector_renderer_software.eo
42 software/ector_renderer_software_buffer.eo
43 software/ector_renderer_software_gradient_linear.eo
44 software/ector_renderer_software_gradient_radial.eo
45 software/ector_renderer_software_shape.eo
46 software/ector_software_buffer.eo
47 software/ector_software_buffer_base.eo
48 software/ector_software_surface.eo
49)
50
51set(PUBLIC_HEADERS
52 Ector.h
53 ector_buffer.h
54 ector_renderer.h
55 ector_surface.h
56 ector_util.h
57
58 cairo/Ector_Cairo.h
59
60 gl/Ector_GL.h
61
62 software/Ector_Software.h
63)
64
65set(SOURCES
66 ector_buffer.c
67 ector_gl_internal.h
68 ector_main.c
69 ector_renderer.c
70 ector_renderer_buffer.c
71 ector_renderer_gradient.c
72 ector_renderer_gradient_linear.c
73 ector_renderer_gradient_radial.c
74 ector_renderer_shape.c
75
76 cairo/ector_cairo_software_surface.c
77 cairo/ector_cairo_surface.c
78 cairo/ector_renderer_cairo.c
79 cairo/ector_renderer_cairo_gradient_linear.c
80 cairo/ector_renderer_cairo_gradient_radial.c
81 cairo/ector_renderer_cairo_shape.c
82
83 gl/ector_gl_buffer.c
84 gl/ector_gl_buffer_base.c
85 gl/ector_gl_private.h
86 gl/ector_gl_shader.c
87 gl/ector_gl_surface.c
88 gl/ector_renderer_gl.c
89 gl/ector_renderer_gl_gradient_linear.c
90 gl/ector_renderer_gl_gradient_radial.c
91 gl/ector_renderer_gl_shape.c
92 gl/shader/ector_gl_shaders.x
93
94 software/ector_renderer_software_buffer.c
95 software/ector_renderer_software_gradient_linear.c
96 software/ector_renderer_software_gradient_radial.c
97 software/ector_renderer_software_shape.c
98 software/ector_software_buffer.c
99 software/ector_software_gradient.c
100 software/ector_software_rasterizer.c
101 software/ector_software_surface.c
102
103 ${CMAKE_SOURCE_DIR}/src/static_libs/draw/draw_main.c
104 ${CMAKE_SOURCE_DIR}/src/static_libs/draw/draw_main_neon.c
105 ${CMAKE_SOURCE_DIR}/src/static_libs/draw/draw_main_sse2.c
106
107 ${CMAKE_SOURCE_DIR}/src/static_libs/freetype/sw_ft_math.c
108 ${CMAKE_SOURCE_DIR}/src/static_libs/freetype/sw_ft_raster.c
109 ${CMAKE_SOURCE_DIR}/src/static_libs/freetype/sw_ft_stroker.c
110
111 ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/etc2_encoder.c
112 ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/rg_etc1.c
113 ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/rg_etc1.h
114 ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/rg_etc2.c
115
116 ${CMAKE_SOURCE_DIR}/src/static_libs/triangulator/triangulator_simple.c
117 ${CMAKE_SOURCE_DIR}/src/static_libs/triangulator/triangulator_simple.h
118 ${CMAKE_SOURCE_DIR}/src/static_libs/triangulator/triangulator_stroker.c
119 ${CMAKE_SOURCE_DIR}/src/static_libs/triangulator/triangulator_stroker.h
120)
121
122set(INCLUDE_DIRECTORIES
123 ${CMAKE_SOURCE_DIR}/src/static_libs/draw
124 ${CMAKE_SOURCE_DIR}/src/static_libs/freetype
125 ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc
126 ${CMAKE_SOURCE_DIR}/src/static_libs/triangulator
127)
128
129add_custom_command(
130 OUTPUT ${EFL_LIB_SOURCE_DIR}/gl/shader/ector_gl_shaders.x
131 COMMAND /bin/sh ${EFL_LIB_SOURCE_DIR}/gl/shader/gen_shaders.sh
132 DEPENDS
133 ${EFL_LIB_SOURCE_DIR}/gl/shader/gen_shaders.sh
134 ${EFL_LIB_SOURCE_DIR}/gl/shader/fragment.glsl
135 ${EFL_LIB_SOURCE_DIR}/gl/shader/vertex.glsl
136 ${EFL_LIB_SOURCE_DIR}/gl/shader/include.glsl
137 WORKING_DIRECTORY "${EFL_LIB_SOURCE_DIR}"
138 COMMENT "SHADERS ${EFL_LIB_SOURCE_DIR}/gl/shader/ector_gl_shaders.x"
139)