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