X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=Makefile;h=59a89e765a2424f9af045477054f68f6eb537df7;hp=27bca34d7ba1ae978c277b05ff4ba5a7af54a41f;hb=34f5f331bd3b643949ccbb0c3488af2823634d59;hpb=b16d7433b249c5381fa137d3ac3ef7867ae2eae4 diff --git a/Makefile b/Makefile index 27bca34..59a89e7 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,14 @@ TESTS += deconvolution_sharpen_effect_test TESTS += blur_effect_test TESTS += unsharp_mask_effect_test TESTS += diffusion_effect_test +TESTS += white_balance_effect_test +TESTS += lift_gamma_gain_effect_test +TESTS += resample_effect_test TESTS += flat_input_test +TESTS += ycbcr_input_test # Core. -LIB_OBJS=util.o widgets.o effect.o effect_chain.o +LIB_OBJS=util.o widgets.o effect.o effect_chain.o init.o # Inputs. LIB_OBJS += flat_input.o @@ -48,6 +52,7 @@ LIB_OBJS += glow_effect.o LIB_OBJS += unsharp_mask_effect.o LIB_OBJS += mix_effect.o LIB_OBJS += resize_effect.o +LIB_OBJS += resample_effect.o LIB_OBJS += deconvolution_sharpen_effect.o LIB_OBJS += sandbox_effect.o @@ -83,8 +88,16 @@ unsharp_mask_effect_test: unsharp_mask_effect_test.o $(TEST_OBJS) libmovit.a $(CXX) -o $@ $^ $(LDFLAGS) diffusion_effect_test: diffusion_effect_test.o $(TEST_OBJS) libmovit.a $(CXX) -o $@ $^ $(LDFLAGS) +white_balance_effect_test: white_balance_effect_test.o $(TEST_OBJS) libmovit.a + $(CXX) -o $@ $^ $(LDFLAGS) +lift_gamma_gain_effect_test: lift_gamma_gain_effect_test.o $(TEST_OBJS) libmovit.a + $(CXX) -o $@ $^ $(LDFLAGS) +resample_effect_test: resample_effect_test.o $(TEST_OBJS) libmovit.a + $(CXX) -o $@ $^ $(LDFLAGS) flat_input_test: flat_input_test.o $(TEST_OBJS) libmovit.a $(CXX) -o $@ $^ $(LDFLAGS) +ycbcr_input_test: ycbcr_input_test.o $(TEST_OBJS) libmovit.a + $(CXX) -o $@ $^ $(LDFLAGS) OBJS=$(DEMO_OBJS) $(LIB_OBJS) $(TEST_OBJS) $(TESTS:=.o) @@ -105,6 +118,7 @@ DEPS=$(OBJS:.o=.d) clean: $(RM) demo $(TESTS) libmovit.a $(OBJS) $(OBJS:.o=.gcno) $(OBJS:.o=.gcda) $(DEPS) step-*.dot + $(RM) -r movit.info coverage/ check: $(TESTS) FAIL=0; \ @@ -113,4 +127,10 @@ check: $(TESTS) done; \ exit $$FAIL -.PHONY: clean check all +# You need to build with COVERAGE=1 to use this target. +coverage: check + lcov -d . -c -o movit.info + lcov --remove movit.info '*_test.cpp' '*/test_util.{cpp,h}' -o movit.info + genhtml -o coverage movit.info + +.PHONY: coverage clean check all