Support to build against ubuntu environment.
[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 = common dali-application
18
19 if ! LITE_PROFILE
20 if ! WEARABLE_PROFILE
21 if ! UBUNTU_PROFILE
22 SUBDIRS += plugins
23 endif
24 endif
25 endif
26
27 pkgconfigdir = $(libdir)/pkgconfig
28 pkgconfig_DATA = dali.pc \
29                  dali-application.pc
30
31 MAINTAINERCLEANFILES = \
32     aclocal.m4 \
33     autom4te.cache \
34     config.guess \
35     config.sub \
36     configure \
37     depcomp \
38     install-sh \
39     ltmain.sh \
40     missing \
41     `find "$(srcdir)" -type f -name Makefile.in -print` \
42     `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
43
44 CLEANFILES = \
45         `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
46
47 COVERAGE_DIR=.cov
48 COVERAGE_OUTPUT_DIR=doc/coverage
49
50 cov_data:
51         @test -z $(COVERAGE_DIR) || mkdir -p $(COVERAGE_DIR)
52         @rm -f $(COVERAGE_DIR)/*
53         @-cp common/.libs/*.gcda common/.libs/*.gcno  $(COVERAGE_DIR)
54         @for i in `find $(COVERAGE_DIR) -name "libdali_adaptor_common_la-*.gcda" -o -name "libdali_adaptor_common_la-*.gcno"` ;\
55                 do mv $$i `echo $$i | sed s/libdali_adaptor_common_la-//` ; echo $$i ; done
56         @cd $(COVERAGE_DIR) ; lcov --base-directory . --directory . -c -o dali.info
57         @cd $(COVERAGE_DIR) ; lcov --remove dali.info "*boost*" "dali-env/*" "/usr/include/*" -o dali.info
58         @test -z $(COVERAGE_OUTPUT_DIR) || mkdir -p $(COVERAGE_OUTPUT_DIR)
59
60 coverage: cov_data
61         @genhtml -o $(COVERAGE_OUTPUT_DIR) $(COVERAGE_DIR)/dali.info
62
63 reset_coverage:
64         @lcov -z --directory `pwd`