Merge "Make radio buttons work with size negotiation, bug fixes." into tizen
[platform/core/uifw/dali-toolkit.git] / build / tizen / Makefile.am
1 #
2 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 #
4 # Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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 docs
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 # From lcov version 1.10 onwards, branch coverage is off by default and earlier versions do not support the rc option
42 LCOV_OPTS=`if [ \`printf "\\\`lcov --version | cut -d' ' -f4\\\`\n1.10\n" | sort -V | head -n 1\` = 1.10 ] ; then echo "--rc lcov_branch_coverage=1" ; fi`
43
44 cov_data:
45         @test -z $(COVERAGE_DIR) || mkdir -p $(COVERAGE_DIR)
46         @rm -f $(COVERAGE_DIR)/*
47         @cp dali-toolkit/.libs/*.gcda dali-toolkit/.libs/*.gcno  $(COVERAGE_DIR)
48         @for i in `find $(COVERAGE_DIR) -name "libdali_toolkit_la-*.gcda" -o -name "libdali_toolkit_la-*.gcno"` ;\
49                 do mv $$i `echo $$i | sed s/libdali_toolkit_la-//` ; echo $$i ; done
50         @cd $(COVERAGE_DIR) ; lcov $(LCOV_OPTS) --base-directory . --directory . -c -o dali.info
51         @cd $(COVERAGE_DIR) ; lcov $(LCOV_OPTS) --remove dali.info "*boost*" "/usr/include/*" "*/dali-env/*" -o dali.info
52         @test -z $(COVERAGE_OUTPUT_DIR) || mkdir -p $(COVERAGE_OUTPUT_DIR)
53
54 coverage: cov_data
55         @genhtml $(LCOV_OPTS) -o $(COVERAGE_OUTPUT_DIR) $(COVERAGE_DIR)/dali.info
56
57 reset_coverage:
58         @lcov -z --directory `pwd`