summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-04-14 15:41:40 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-04-14 16:07:32 -0700
commit847fb931c290f1d9a5779352f065955b617ec1fe (patch)
tree96c60786b98d90b17c604c417bea6d157b5a2cc0
parent192a966e60347615fca58b74e47ea2ff01b4dca5 (diff)
ector: make it possible to build the library alone.
-rw-r--r--configure.ac1
-rw-r--r--src/lib/ector/Makefile.am157
2 files changed, 158 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5357eb703c..a2a424a573 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5489,6 +5489,7 @@ src/lib/emile/Makefile
5489src/lib/eet/Makefile 5489src/lib/eet/Makefile
5490src/lib/eo/Makefile 5490src/lib/eo/Makefile
5491src/lib/efl/Makefile 5491src/lib/efl/Makefile
5492src/lib/ector/Makefile
5492src/lib/ecore/Makefile 5493src/lib/ecore/Makefile
5493src/lib/edje/Makefile 5494src/lib/edje/Makefile
5494src/benchmarks/eina/Makefile 5495src/benchmarks/eina/Makefile
diff --git a/src/lib/ector/Makefile.am b/src/lib/ector/Makefile.am
new file mode 100644
index 0000000000..683debd50e
--- /dev/null
+++ b/src/lib/ector/Makefile.am
@@ -0,0 +1,157 @@
1EOLIAN_FLAGS = -I$(srcdir)
2
3include ../../Makefile_Eolian_Subbuild_Helper.am
4
5### Library
6ector_eolian_files_generic = \
7 ector_generic_surface.eo \
8 ector_generic_buffer.eo \
9 ector_renderer_generic_base.eo \
10 ector_renderer_generic_shape.eo \
11 ector_renderer_generic_buffer.eo \
12 ector_renderer_generic_gradient.eo \
13 ector_renderer_generic_gradient_radial.eo \
14 ector_renderer_generic_gradient_linear.eo
15ector_eolian_generic_h = $(ector_eolian_files_generic:%.eo=%.eo.h)
16
17# Handle cairo backend
18ector_eolian_files_cairo = \
19 cairo/ector_cairo_surface.eo \
20 cairo/ector_cairo_software_surface.eo \
21 cairo/ector_renderer_cairo_base.eo \
22 cairo/ector_renderer_cairo_shape.eo \
23 cairo/ector_renderer_cairo_gradient_linear.eo \
24 cairo/ector_renderer_cairo_gradient_radial.eo
25ector_eolian_cairo_h = $(ector_eolian_files_cairo:%.eo=%.eo.h)
26
27# Handle default software backend
28ector_eolian_files_software = \
29 software/ector_software_surface.eo \
30 software/ector_software_buffer.eo \
31 software/ector_software_buffer_base.eo \
32 software/ector_renderer_software_base.eo \
33 software/ector_renderer_software_shape.eo \
34 software/ector_renderer_software_buffer.eo \
35 software/ector_renderer_software_gradient_radial.eo \
36 software/ector_renderer_software_gradient_linear.eo
37ector_eolian_software_h = $(ector_eolian_files_software:%.eo=%.eo.h)
38
39# Handle gl backend
40ector_eolian_files_gl = \
41 gl/ector_gl_surface.eo \
42 gl/ector_gl_buffer.eo \
43 gl/ector_gl_buffer_base.eo \
44 gl/ector_renderer_gl_base.eo \
45 gl/ector_renderer_gl_shape.eo \
46 gl/ector_renderer_gl_gradient_radial.eo \
47 gl/ector_renderer_gl_gradient_linear.eo
48ector_eolian_gl_h = $(ector_eolian_files_gl:%.eo=%.eo.h)
49
50ector_eolian_type_files = ector_types.eot
51
52ector_eolian_files = $(ector_eolian_files_generic) \
53 $(ector_eolian_files_cairo) \
54 $(ector_eolian_files_software) \
55 $(ector_eolian_files_gl)
56
57ector_eolian_c = $(ector_eolian_files:%.eo=%.eo.c)
58ector_eolian_h = $(ector_eolian_files:%.eo=%.eo.h) \
59 $(ector_eolian_type_files:%.eot=%.eot.h)
60
61BUILT_SOURCES = \
62 $(ector_eolian_c) \
63 $(ector_eolian_h)
64
65CLEANFILES = \
66 $(ector_eolian_c) \
67 $(ector_eolian_h)
68
69ectoreolianfilesdir = $(datadir)/eolian/include/ector-@VMAJ@
70ectoreolianfiles_DATA = $(ector_eolian_files) $(ector_eolian_type_files)
71
72lib_LTLIBRARIES = libector.la
73
74# And the generic implementation
75
76libector_la_SOURCES = \
77ector_main.c \
78ector_gl_internal.h \
79ector_generic_buffer.c \
80ector_renderer_generic_shape.c \
81ector_renderer_generic_base.c \
82ector_renderer_generic_buffer.c \
83ector_renderer_generic_gradient.c \
84ector_renderer_generic_gradient_radial.c \
85ector_renderer_generic_gradient_linear.c
86
87# And now the cairo backend
88libector_la_SOURCES += \
89cairo/ector_renderer_cairo_gradient_linear.c \
90cairo/ector_renderer_cairo_gradient_radial.c \
91cairo/ector_renderer_cairo_shape.c \
92cairo/ector_renderer_cairo_base.c \
93cairo/ector_cairo_software_surface.c \
94cairo/ector_cairo_surface.c
95
96# SW draw static lib
97draw_sources = \
98../../static_libs/draw/draw_main_sse2.c \
99../../static_libs/draw/draw_main.c \
100../../static_libs/draw/draw_main_neon.c \
101$(NULL)
102
103# And the default software backend
104libector_la_SOURCES += \
105software/ector_renderer_software_gradient_linear.c \
106software/ector_renderer_software_gradient_radial.c \
107software/ector_renderer_software_shape.c \
108software/ector_renderer_software_buffer.c \
109software/ector_software_gradient.c \
110software/ector_software_rasterizer.c \
111software/ector_software_surface.c \
112software/ector_software_buffer.c \
113../../static_libs/freetype/sw_ft_math.c \
114../../static_libs/freetype/sw_ft_raster.c \
115../../static_libs/freetype/sw_ft_stroker.c \
116$(draw_sources)
117
118# And now the gl backend
119libector_la_SOURCES += \
120gl/ector_renderer_gl_gradient_linear.c \
121gl/ector_renderer_gl_gradient_radial.c \
122gl/ector_renderer_gl_shape.c \
123gl/ector_renderer_gl_base.c \
124gl/ector_gl_buffer.c \
125gl/ector_gl_buffer_base.c \
126gl/ector_gl_surface.c \
127gl/ector_gl_private.h \
128gl/shader/ector_gl_shaders.x \
129gl/ector_gl_shader.c
130
131ECTOR_GL_SHADERS_GEN = \
132gl/shader/gen_shaders.sh \
133gl/shader/fragment.glsl \
134gl/shader/vertex.glsl \
135gl/shader/include.glsl
136
137gl/shader/ector_gl_shaders.x: $(ECTOR_GL_SHADERS_GEN)
138 @echo " SHADERS $@"
139 @bash $(srcdir)/gl/shader/gen_shaders.sh
140
141libector_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
142-I$(top_builddir)/src/lib/ector \
143-I$(top_builddir)/src/lib/ector/cairo \
144-I$(top_builddir)/src/lib/ector/software \
145-I$(top_builddir)/src/lib/ector/gl \
146-I$(top_srcdir)/src/static_libs/freetype \
147-I$(top_srcdir)/src/static_libs/draw \
148@ECTOR_CFLAGS@ \
149-DPACKAGE_BIN_DIR=\"$(bindir)\" \
150-DPACKAGE_LIB_DIR=\"$(libdir)\" \
151-DPACKAGE_DATA_DIR=\"$(datadir)/ector\" \
152@VALGRIND_CFLAGS@ \
153@SSE3_CFLAGS@
154
155libector_la_LIBADD = @ECTOR_SUBBUILD_LIBS@
156libector_la_DEPENDENCIES = @ECTOR_SUBBUILD_INTERNAL_LIBS@
157libector_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@