X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=Makefile.in;h=b021ded07dfeb9581cc249d4fc12299d2abd7417;hp=408e3dbf09e33bf2d67003ed794ceab178368227;hb=HEAD;hpb=1547d2758dbf397602f9805e23620c1d0211f33d diff --git a/Makefile.in b/Makefile.in index 408e3db..1e3be0d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -6,15 +6,14 @@ GTEST_DIR ?= /usr/src/gtest # strive towards having a rock-stable ABI, but at least the soversion will increase # whenever it breaks, so that you will not have silent failures, and distribution package # management can run its course. -movit_ltversion = 8:2:0 -movit_version = 1.6.2 +movit_ltversion = 8:5:0 +movit_version = 1.7.1 prefix = @prefix@ exec_prefix = @exec_prefix@ includedir = @includedir@ libdir = @libdir@ datarootdir = @datarootdir@ -datadir = @datadir@ top_builddir = @top_builddir@ with_demo_app = @with_demo_app@ with_benchmark = @with_benchmark@ @@ -90,7 +89,7 @@ EFFECTS = $(TESTED_EFFECTS) $(UNTESTED_EFFECTS) # Unit tests. TESTS=effect_chain_test fp16_test $(TESTED_INPUTS:=_test) $(TESTED_EFFECTS:=_test) -LIB_OBJS=effect_util.o util.o effect.o effect_chain.o init.o resource_pool.o ycbcr.o $(INPUTS:=.o) $(EFFECTS:=.o) +LIB_OBJS=effect_util.o util.o effect.o effect_chain.o init.o resource_pool.o ycbcr.o bundled_shaders.o $(INPUTS:=.o) $(EFFECTS:=.o) # Default target: all: libmovit.la $(TESTS) @@ -112,8 +111,8 @@ gtest_sdl_main.o: gtest_sdl_main.cpp $(TESTS): %: %.o $(TEST_OBJS) libmovit.la $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $^ $(TEST_LDLIBS) -OWN_OBJS=$(DEMO_OBJS) $(LIB_OBJS) $(OWN_TEST_OBJS) $(TESTS:=.o) -OBJS=$(DEMO_OBJS) $(LIB_OBJS) $(TEST_OBJS) $(TESTS:=.o) +OWN_OBJS=$(DEMO_OBJS) $(LIB_OBJS) $(OWN_TEST_OBJS) $(TESTS:=.o) make_bundled_shaders.o +OBJS=$(DEMO_OBJS) $(LIB_OBJS) $(TEST_OBJS) $(TESTS:=.o) make_bundled_shaders.o # A small demo program. demo: libmovit.la $(DEMO_OBJS) @@ -135,7 +134,8 @@ DEPS=$(OBJS:.o=.d) $(OBJS:.o=.ld) clean: $(LIBTOOL) --mode=clean $(RM) demo $(TESTS) libmovit.la $(OBJS) $(OBJS:.o=.lo) - $(RM) $(OBJS:.o=.gcno) $(OBJS:.o=.gcda) $(DEPS) step*.dot chain*.frag + $(LIBTOOL) --mode=clean $(RM) $(MAKE_BUNDLE_OBJS) $(MAKE_BUNDLE_OBJS:.o=.lo) make_bundled_shaders bundled_shaders.cpp + $(RM) $(OBJS:.o=.gcno) $(OBJS:.o=.gcda) $(MAKE_BUNDLE_OBJS:.o=.gcno) $(MAKE_BUNDLE_OBJS:.o=.gcda) $(DEPS) step*.dot chain*.frag $(RM) -r movit.info coverage/ .libs/ distclean: clean @@ -180,18 +180,23 @@ MISSING_SHADERS = diffusion_effect.frag glow_effect.frag unsharp_mask_effect.fra MISSING_SHADERS += fft_convolution_effect.frag fft_input.frag SHADERS := $(filter-out $(MISSING_SHADERS),$(SHADERS)) +# A program to compile all the shaders into one bundle that we can link into the library. +MAKE_BUNDLE_OBJS=make_bundled_shaders.o util.o init.o resource_pool.o +make_bundled_shaders: $(MAKE_BUNDLE_OBJS) + $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o make_bundled_shaders $(MAKE_BUNDLE_OBJS) -lepoxy +bundled_shaders.cpp: make_bundled_shaders $(SHADERS) + ./make_bundled_shaders $(SHADERS) > $@ + install: libmovit.la $(MKDIR) -p $(DESTDIR)$(libdir)/ $(LIBTOOL) --mode=install $(INSTALL) -m 0644 libmovit.la $(DESTDIR)$(libdir)/ $(MKDIR) -p $(DESTDIR)$(includedir)/movit/ $(INSTALL) -m 0644 $(HDRS) $(DESTDIR)$(includedir)/movit/ - $(MKDIR) -p $(DESTDIR)$(datadir)/movit/ - $(INSTALL) -m 0644 $(SHADERS) $(DESTDIR)$(datadir)/movit/ $(MKDIR) -p $(DESTDIR)$(libdir)/pkgconfig/ $(INSTALL) -m 644 movit.pc $(DESTDIR)$(libdir)/pkgconfig/ DISTDIR=movit-$(movit_version) -OTHER_DIST_FILES=add.frag autogen.sh blue.frag configure.ac d65.h identity.frag invert_effect.frag Makefile.in mipmap_needing_effect.frag downscale2x.frag downscale2x.comp mirror.comp identity.comp movit.pc.in README NEWS test_util.h widgets.h +OTHER_DIST_FILES=add.frag autogen.sh blue.frag configure.ac d65.h identity.frag invert_effect.frag Makefile.in mipmap_needing_effect.frag downscale2x.frag downscale2x.comp mirror.comp identity.comp movit.pc.in README NEWS test_util.h widgets.h bundled_shaders.h dist: $(MKDIR) $(DISTDIR)