(CommandLineOptions) Ensure DALi takes out any handled options.
[platform/core/uifw/dali-adaptor.git] / build / tizen / 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 = common dali-adaptor dali-application dali-evas dali-native-buffer plugins
18
19 pkgconfigdir = $(libdir)/pkgconfig
20 pkgconfig_DATA = dali.pc \
21                  dali-application.pc \
22                  dali-evas.pc \
23                  dali-native-buffer.pc
24
25 MAINTAINERCLEANFILES = \
26     aclocal.m4 \
27     autom4te.cache \
28     config.guess \
29     config.sub \
30     configure \
31     depcomp \
32     install-sh \
33     ltmain.sh \
34     missing \
35     `find "$(srcdir)" -type f -name Makefile.in -print` \
36     `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
37
38 CLEANFILES = \
39         `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
40
41 COVERAGE_DIR=.cov
42 COVERAGE_OUTPUT_DIR=doc/coverage
43
44 cov_data:
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)
56
57 coverage: cov_data
58         @genhtml -o $(COVERAGE_OUTPUT_DIR) $(COVERAGE_DIR)/dali.info
59
60 reset_coverage:
61         @lcov -z --directory `pwd`