Support dual ABI
[platform/core/uifw/dali-adaptor.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 = ${subdirs}
18
19 MAINTAINERCLEANFILES = \
20     aclocal.m4 \
21     autom4te.cache \
22     config.guess \
23     config.sub \
24     configure \
25     depcomp \
26     install-sh \
27     ltmain.sh \
28     missing \
29     `find "$(srcdir)" -type f -name Makefile.in -print` \
30     `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
31
32 CLEANFILES = \
33         `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
34
35 COVERAGE_DIR=.cov
36 COVERAGE_OUTPUT_DIR=doc/coverage
37
38 # From lcov version 1.10 onwards, branch coverage is off by default and earlier versions do not support the rc option
39 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`
40
41 rename_cov_data:
42         @test -z $(COVERAGE_DIR) || mkdir -p $(COVERAGE_DIR)
43         @rm -f $(COVERAGE_DIR)/*
44         @-cp adaptor/.libs/*.gcda adaptor/.libs/*.gcno  $(COVERAGE_DIR)
45         @for i in `find $(COVERAGE_DIR) -name "libdali_adaptor*_la-*.gcda" -o -name "libdali_adaptor*_la-*.gcno"` ;\
46                 do mv $$i `echo $$i | sed s/libdali_adaptor*_la-//` ; echo $$i ; done
47
48 cov_data: rename_cov_data
49         @cd $(COVERAGE_DIR) ; lcov $(LCOV_OPTS) --base-directory . --directory . -c -o dali.info
50         @cd $(COVERAGE_DIR) ; lcov $(LCOV_OPTS) --remove dali.info "*/dali-env/*" "/usr/include/*" -o dali.info
51         @test -z $(COVERAGE_OUTPUT_DIR) || mkdir -p $(COVERAGE_OUTPUT_DIR)
52
53 coverage: cov_data
54         @genhtml $(LCOV_OPTS) -o $(COVERAGE_OUTPUT_DIR) $(COVERAGE_DIR)/dali.info
55
56 reset_coverage:
57         @lcov -z --directory `pwd`