[dali_1.0.2] Merge branch 'tizen'
[platform/core/uifw/dali-core.git] / build / tizen / Makefile.am
1 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
2
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6
7 # http://www.apache.org/licenses/LICENSE-2.0
8
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15
16 SUBDIRS = dali-core
17
18 pkgconfigdir = $(libdir)/pkgconfig
19 pkgconfig_DATA = dali-core.pc
20
21 MAINTAINERCLEANFILES = \
22     aclocal.m4 \
23     autom4te.cache \
24     config.guess \
25     config.sub \
26     configure \
27     depcomp \
28     install-sh \
29     ltmain.sh \
30     missing \
31     `find "$(srcdir)" -type f -name Makefile.in -print` \
32     `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
33
34 CLEANFILES = \
35     `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
36
37 COVERAGE_DIR=.cov
38 COVERAGE_OUTPUT_DIR=doc/coverage
39
40 cov_data:
41         @test -z $(COVERAGE_DIR) || mkdir -p $(COVERAGE_DIR)
42         @rm -f $(COVERAGE_DIR)/*
43         @cp dali-core/.libs/*.gcda dali-core/.libs/*.gcno $(COVERAGE_DIR)
44         @for i in `find $(COVERAGE_DIR) -name "libdali_core_la-*.gcda" -o -name "libdali_core_la-*.gcno"` ;\
45                 do mv $$i `echo $$i | sed s/libdali_core_la-//` ; echo $$i ; done
46         @for i in `find $(COVERAGE_DIR) -name "libdali_la-*.gcda" -o -name "libdali_la-*.gcno"` ;\
47                 do mv $$i `echo $$i | sed s/libdali_la-//` ; done
48         @cd $(COVERAGE_DIR) ; lcov --base-directory . --directory . -c -o dali.info
49         @cd $(COVERAGE_DIR) ; lcov --remove dali.info "*boost*" "*/dali-env/*" "/usr/include/*" -o dali.info
50         @test -z $(COVERAGE_OUTPUT_DIR) || mkdir -p $(COVERAGE_OUTPUT_DIR)
51
52 coverage: cov_data
53         @genhtml -o $(COVERAGE_OUTPUT_DIR) $(COVERAGE_DIR)/dali.info
54
55 reset_coverage:
56         @lcov -z --directory `pwd`