summaryrefslogtreecommitdiff
path: root/src/Makefile_Ector.am
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-18 08:12:44 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-18 08:12:53 +0200
commit4f8e15c16c4f68b6fae8708b177ce672daefc59c (patch)
tree8c1bf8d808e0939bbd83291855961512ee42e70c /src/Makefile_Ector.am
parente8c69667b01e2795c1e4ead0536652f935ffa674 (diff)
Revert "autotools: REMOVAL!"
This reverts commit e8c69667b01e2795c1e4ead0536652f935ffa674. git push on a wrong branch, sorry. This will land today, but not now.
Diffstat (limited to 'src/Makefile_Ector.am')
-rw-r--r--src/Makefile_Ector.am219
1 files changed, 219 insertions, 0 deletions
diff --git a/src/Makefile_Ector.am b/src/Makefile_Ector.am
new file mode 100644
index 0000000..52a6047
--- /dev/null
+++ b/src/Makefile_Ector.am
@@ -0,0 +1,219 @@
1
2### Library
3ector_eolian_files_generic = \
4 lib/ector/ector_surface.eo \
5 lib/ector/ector_buffer.eo \
6 lib/ector/ector_renderer.eo \
7 lib/ector/ector_renderer_shape.eo \
8 lib/ector/ector_renderer_gradient.eo \
9 lib/ector/ector_renderer_gradient_radial.eo \
10 lib/ector/ector_renderer_gradient_linear.eo
11ector_eolian_generic_h = $(ector_eolian_files_generic:%.eo=%.eo.h)
12
13# Handle cairo backend
14ector_eolian_files_cairo = \
15 lib/ector/cairo/ector_cairo_surface.eo \
16 lib/ector/cairo/ector_cairo_software_surface.eo \
17 lib/ector/cairo/ector_renderer_cairo.eo \
18 lib/ector/cairo/ector_renderer_cairo_shape.eo \
19 lib/ector/cairo/ector_renderer_cairo_gradient_linear.eo \
20 lib/ector/cairo/ector_renderer_cairo_gradient_radial.eo
21ector_eolian_cairo_h = $(ector_eolian_files_cairo:%.eo=%.eo.h)
22
23# Handle default software backend
24ector_eolian_files_software = \
25 lib/ector/software/ector_software_surface.eo \
26 lib/ector/software/ector_software_buffer.eo \
27 lib/ector/software/ector_software_buffer_base.eo \
28 lib/ector/software/ector_renderer_software.eo \
29 lib/ector/software/ector_renderer_software_shape.eo \
30 lib/ector/software/ector_renderer_software_gradient_radial.eo \
31 lib/ector/software/ector_renderer_software_gradient_linear.eo
32ector_eolian_software_h = $(ector_eolian_files_software:%.eo=%.eo.h)
33
34# Handle gl backend
35ector_eolian_files_gl = \
36 lib/ector/gl/ector_gl_surface.eo \
37 lib/ector/gl/ector_gl_buffer.eo \
38 lib/ector/gl/ector_renderer_gl.eo \
39 lib/ector/gl/ector_renderer_gl_shape.eo \
40 lib/ector/gl/ector_renderer_gl_gradient_radial.eo \
41 lib/ector/gl/ector_renderer_gl_gradient_linear.eo
42ector_eolian_gl_h = $(ector_eolian_files_gl:%.eo=%.eo.h)
43
44ector_eolian_type_files = \
45 lib/ector/ector_types.eot
46
47ector_eolian_files = \
48 $(ector_eolian_files_generic) \
49 $(ector_eolian_files_cairo) \
50 $(ector_eolian_files_software) \
51 $(ector_eolian_files_gl)
52
53ector_eolian_c = $(ector_eolian_files:%.eo=%.eo.c)
54ector_eolian_h = $(ector_eolian_files:%.eo=%.eo.h) \
55 $(ector_eolian_type_files:%.eot=%.eot.h)
56
57BUILT_SOURCES += \
58 $(ector_eolian_c) \
59 $(ector_eolian_h)
60
61if INSTALL_EO_FILES
62ectoreolianfilesdir = $(datadir)/eolian/include/ector-@VMAJ@
63ectoreolianfiles_DATA = $(ector_eolian_files) $(ector_eolian_type_files)
64endif
65
66EXTRA_DIST2 += $(ector_eolian_files) $(ector_eolian_type_files) \
67lib/ector/Ector.h \
68lib/ector/ector_util.h \
69lib/ector/ector_surface.h \
70lib/ector/ector_buffer.h \
71lib/ector/ector_renderer.h \
72lib/ector/cairo/Ector_Cairo.h \
73lib/ector/software/Ector_Software.h \
74lib/ector/gl/Ector_GL.h
75
76lib_LTLIBRARIES += lib/ector/libector.la
77
78# And the generic implementation
79
80lib_ector_libector_la_SOURCES = \
81lib/ector/ector_main.c \
82lib/ector/ector_gl_internal.h \
83lib/ector/ector_buffer.c \
84lib/ector/ector_renderer_shape.c \
85lib/ector/ector_renderer.c \
86lib/ector/ector_renderer_gradient.c \
87lib/ector/ector_renderer_gradient_radial.c \
88lib/ector/ector_renderer_gradient_linear.c
89
90# And now the cairo backend
91lib_ector_libector_la_SOURCES += \
92lib/ector/cairo/ector_renderer_cairo_gradient_linear.c \
93lib/ector/cairo/ector_renderer_cairo_gradient_radial.c \
94lib/ector/cairo/ector_renderer_cairo_shape.c \
95lib/ector/cairo/ector_renderer_cairo.c \
96lib/ector/cairo/ector_cairo_software_surface.c \
97lib/ector/cairo/ector_cairo_surface.c
98
99# SW draw static lib
100lib_ector_libector_la_SOURCES += \
101static_libs/draw/draw_main_sse2.c \
102static_libs/draw/draw_main.c \
103static_libs/draw/draw_main_neon.c \
104static_libs/rg_etc/rg_etc1.c \
105static_libs/rg_etc/rg_etc2.c \
106static_libs/rg_etc/rg_etc1.h \
107static_libs/rg_etc/etc2_encoder.c
108
109# Triangulator static lib
110triangulator_sources = \
111static_libs/triangulator/triangulator_stroker.c \
112static_libs/triangulator/triangulator_stroker.h \
113static_libs/triangulator/triangulator_simple.c \
114static_libs/triangulator/triangulator_simple.h \
115$(NULL)
116
117# And the default software backend
118lib_ector_libector_la_SOURCES += \
119lib/ector/software/ector_renderer_software_gradient_linear.c \
120lib/ector/software/ector_renderer_software_gradient_radial.c \
121lib/ector/software/ector_renderer_software_shape.c \
122lib/ector/software/ector_software_gradient.c \
123lib/ector/software/ector_software_gradient_sse3.c \
124lib/ector/software/ector_software_gradient.h \
125lib/ector/software/ector_software_rasterizer.c \
126lib/ector/software/ector_software_surface.c \
127lib/ector/software/ector_software_buffer.c \
128static_libs/freetype/sw_ft_math.c \
129static_libs/freetype/sw_ft_raster.c \
130static_libs/freetype/sw_ft_stroker.c \
131$(triangulator_sources)
132
133# And now the gl backend
134lib_ector_libector_la_SOURCES += \
135lib/ector/gl/ector_renderer_gl_gradient_linear.c \
136lib/ector/gl/ector_renderer_gl_gradient_radial.c \
137lib/ector/gl/ector_renderer_gl_shape.c \
138lib/ector/gl/ector_renderer_gl.c \
139lib/ector/gl/ector_gl_buffer.c \
140lib/ector/gl/ector_gl_surface.c \
141lib/ector/gl/ector_gl_private.h \
142lib/ector/gl/shader/ector_gl_shaders.x \
143lib/ector/gl/ector_gl_shader.c
144
145ECTOR_GL_SHADERS_GEN = \
146lib/ector/gl/shader/gen_shaders.sh \
147lib/ector/gl/shader/fragment.glsl \
148lib/ector/gl/shader/vertex.glsl \
149lib/ector/gl/shader/include.glsl
150
151lib/ector/gl/shader/ector_gl_shaders.x: $(ECTOR_GL_SHADERS_GEN)
152 @echo " SHADERS $@"
153 @sh $(srcdir)/lib/ector/gl/shader/gen_shaders.sh
154
155lib_ector_libector_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
156-I$(top_builddir)/src/lib \
157-I$(top_builddir)/src/lib/ector \
158-I$(top_builddir)/src/lib/ector/cairo \
159-I$(top_builddir)/src/lib/ector/software \
160-I$(top_builddir)/src/lib/ector/gl \
161-I$(top_srcdir)/src/static_libs/freetype \
162-I$(top_srcdir)/src/static_libs/draw \
163-I$(top_srcdir)/src/static_libs/triangulator \
164-DEFL_BUILD \
165@ECTOR_CFLAGS@ \
166-DPACKAGE_BIN_DIR=\"$(bindir)\" \
167-DPACKAGE_LIB_DIR=\"$(libdir)\" \
168-DPACKAGE_DATA_DIR=\"$(datadir)/ector\" \
169-DEFL_BETA_API_SUPPORT=1 \
170@VALGRIND_CFLAGS@ \
171@SSE3_CFLAGS@
172
173lib_ector_libector_la_LIBADD = @ECTOR_LIBS@
174lib_ector_libector_la_DEPENDENCIES = @ECTOR_INTERNAL_LIBS@
175lib_ector_libector_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
176
177### Unit tests
178
179if EFL_ENABLE_TESTS
180
181check_PROGRAMS += tests/ector/suite/ector_suite tests/ector/cxx_compile_test/cxx_compile_test
182TESTS += tests/ector/suite/ector_suite
183
184tests_ector_suite_ector_suite_SOURCES = \
185tests/ector/suite/ector_suite.c \
186tests/ector/suite/ector_suite.h \
187tests/ector/suite/ector_test_init.c
188
189tests_ector_cxx_compile_test_cxx_compile_test_SOURCES = tests/ector/cxx_compile_test/cxx_compile_test.cxx
190tests_ector_cxx_compile_test_cxx_compile_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl @ECTOR_CFLAGS@
191tests_ector_cxx_compile_test_cxx_compile_test_LDADD = @USE_ECTOR_LIBS@
192tests_ector_cxx_compile_test_cxx_compile_test_DEPENDENCIES = @USE_ECTOR_INTERNAL_LIBS@
193
194
195tests_ector_suite_ector_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
196-I$(top_srcdir)/src/tests/ector \
197-DTESTS_WD=\"`pwd`\" \
198-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/ector/suite\" \
199-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)/\" \
200-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/ector\" \
201@CHECK_CFLAGS@ \
202@ECTOR_CFLAGS@
203tests_ector_suite_ector_suite_LDADD = @CHECK_LIBS@ @USE_ECTOR_LIBS@
204tests_ector_suite_ector_suite_DEPENDENCIES = @USE_ECTOR_INTERNAL_LIBS@
205
206endif
207
208EXTRA_DIST2 += \
209lib/ector/ector_private.h \
210lib/ector/cairo/ector_cairo_private.h \
211lib/ector/software/ector_software_private.h \
212static_libs/freetype/sw_ft_math.h \
213static_libs/freetype/sw_ft_raster.h \
214static_libs/freetype/sw_ft_stroker.h \
215static_libs/freetype/sw_ft_types.h \
216static_libs/draw/draw.h \
217static_libs/draw/draw_private.h \
218$(ECTOR_GL_SHADERS_GEN)
219