Revert "[Tizen] Replace aul_rsm with screen_connector_provider and enable for only...
[platform/core/uifw/dali-adaptor.git] / build / tizen / Makefile.am
index b3262ed..3210dfa 100644 (file)
@@ -1,26 +1,20 @@
 #
 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
 #
-# Licensed under the Flora License, Version 1.0 (the License);
+# Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at
 #
-#     http://floralicense.org/license/
+# http://www.apache.org/licenses/LICENSE-2.0
 #
 # Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an AS IS BASIS,
+# distributed under the License is distributed on an "AS IS" BASIS,
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
 
-SUBDIRS = common dali-adaptor dali-application dali-evas dali-native-buffer plugins
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = dali.pc \
-                 dali-application.pc \
-                 dali-evas.pc \
-                 dali-native-buffer.pc
+SUBDIRS = ${subdirs}
 
 MAINTAINERCLEANFILES = \
     aclocal.m4 \
@@ -41,21 +35,23 @@ CLEANFILES = \
 COVERAGE_DIR=.cov
 COVERAGE_OUTPUT_DIR=doc/coverage
 
-cov_data:
+# From lcov version 1.10 onwards, branch coverage is off by default and earlier versions do not support the rc option
+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`
+
+rename_cov_data:
        @test -z $(COVERAGE_DIR) || mkdir -p $(COVERAGE_DIR)
        @rm -f $(COVERAGE_DIR)/*
-       @cp dali-adaptor/.libs/*.gcda dali-adaptor/.libs/*.gcno  $(COVERAGE_DIR)
+       @-cp adaptor/.libs/*.gcda adaptor/.libs/*.gcno  $(COVERAGE_DIR)
        @for i in `find $(COVERAGE_DIR) -name "libdali_adaptor_la-*.gcda" -o -name "libdali_adaptor_la-*.gcno"` ;\
                do mv $$i `echo $$i | sed s/libdali_adaptor_la-//` ; echo $$i ; done
-       @cp common/.libs/*.gcda common/.libs/*.gcno  $(COVERAGE_DIR)
-       @for i in `find $(COVERAGE_DIR) -name "libdali_adaptor_common_la-*.gcda" -o -name "libdali_adaptor_common_la-*.gcno"` ;\
-               do mv $$i `echo $$i | sed s/libdali_adaptor_common_la-//` ; echo $$i ; done
-       @cd $(COVERAGE_DIR) ; lcov --base-directory . --directory . -c -o dali.info
-       @cd $(COVERAGE_DIR) ; lcov --remove dali.info "*boost*" "dali-env/*" "/usr/include/*" -o dali.info
+
+cov_data: rename_cov_data
+       @cd $(COVERAGE_DIR) ; lcov $(LCOV_OPTS) --base-directory . --directory . -c -o dali.info
+       @cd $(COVERAGE_DIR) ; lcov $(LCOV_OPTS) --remove dali.info "*/dali-env/*" "/usr/include/*" -o dali.info
        @test -z $(COVERAGE_OUTPUT_DIR) || mkdir -p $(COVERAGE_OUTPUT_DIR)
 
 coverage: cov_data
-       @genhtml -o $(COVERAGE_OUTPUT_DIR) $(COVERAGE_DIR)/dali.info
+       @genhtml $(LCOV_OPTS) -o $(COVERAGE_OUTPUT_DIR) $(COVERAGE_DIR)/dali.info
 
 reset_coverage:
        @lcov -z --directory `pwd`