2 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 # Licensed under the Flora License, Version 1.0 (the License);
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://floralicense.org/license/
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an AS IS BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 SUBDIRS = common dali-adaptor dali-application dali-evas dali-native-buffer plugins
19 pkgconfigdir = $(libdir)/pkgconfig
20 pkgconfig_DATA = dali.pc \
25 MAINTAINERCLEANFILES = \
35 `find "$(srcdir)" -type f -name Makefile.in -print` \
36 `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
39 `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
42 COVERAGE_OUTPUT_DIR=doc/coverage
45 @test -z $(COVERAGE_DIR) || mkdir -p $(COVERAGE_DIR)
46 @rm -f $(COVERAGE_DIR)/*
47 @cp dali-adaptor/.libs/*.gcda dali-adaptor/.libs/*.gcno $(COVERAGE_DIR)
48 @for i in `find $(COVERAGE_DIR) -name "libdali_adaptor_la-*.gcda" -o -name "libdali_adaptor_la-*.gcno"` ;\
49 do mv $$i `echo $$i | sed s/libdali_adaptor_la-//` ; echo $$i ; done
50 @cp common/.libs/*.gcda common/.libs/*.gcno $(COVERAGE_DIR)
51 @for i in `find $(COVERAGE_DIR) -name "libdali_adaptor_common_la-*.gcda" -o -name "libdali_adaptor_common_la-*.gcno"` ;\
52 do mv $$i `echo $$i | sed s/libdali_adaptor_common_la-//` ; echo $$i ; done
53 @cd $(COVERAGE_DIR) ; lcov --base-directory . --directory . -c -o dali.info
54 @cd $(COVERAGE_DIR) ; lcov --remove dali.info "*boost*" "dali-env/*" "/usr/include/*" -o dali.info
55 @test -z $(COVERAGE_OUTPUT_DIR) || mkdir -p $(COVERAGE_OUTPUT_DIR)
58 @genhtml -o $(COVERAGE_OUTPUT_DIR) $(COVERAGE_DIR)/dali.info
61 @lcov -z --directory `pwd`