Adding new test harness
[platform/core/uifw/dali-toolkit.git] / build / slp / Makefile.am
1 #
2 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 #
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
7 #
8 #     http://floralicense.org/license/
9 #
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.
15 #
16
17 SUBDIRS = dali-toolkit
18
19 pkgconfigdir = $(libdir)/pkgconfig
20 pkgconfig_DATA = dali-toolkit.pc
21
22 MAINTAINERCLEANFILES = \
23     aclocal.m4 \
24     autom4te.cache \
25     config.guess \
26     config.sub \
27     configure \
28     depcomp \
29     install-sh \
30     ltmain.sh \
31     missing \
32     `find "$(srcdir)" -type f -name Makefile.in -print` \
33     `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
34
35 CLEANFILES = \
36         `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
37
38 COVERAGE_DIR=.cov
39 COVERAGE_OUTPUT_DIR=doc/coverage
40
41 cov_data:
42         @test -z $(COVERAGE_DIR) || mkdir -p $(COVERAGE_DIR)
43         @rm -f $(COVERAGE_DIR)/*
44         @cp dali-toolkit/.libs/*.gcda dali-toolkit/.libs/*.gcno  $(COVERAGE_DIR)
45         @for i in `find $(COVERAGE_DIR) -name "libdali_toolkit_la-*.gcda" -o -name "libdali_toolkit_la-*.gcno"` ;\
46                 do mv $$i `echo $$i | sed s/libdali_toolkit_la-//` ; echo $$i ; done
47         @cd $(COVERAGE_DIR) ; lcov --base-directory . --directory . -c -o dali.info
48         @cd $(COVERAGE_DIR) ; lcov --remove dali.info "*boost*" "/usr/include/*" "*/dali-env/*" -o dali.info
49         @test -z $(COVERAGE_OUTPUT_DIR) || mkdir -p $(COVERAGE_OUTPUT_DIR)
50
51 coverage: cov_data
52         @genhtml -o $(COVERAGE_OUTPUT_DIR) $(COVERAGE_DIR)/dali.info
53
54 reset_coverage:
55         @lcov -z --directory `pwd`