From: Adeel Kazmi Date: Tue, 27 Aug 2019 13:43:08 +0000 (+0100) Subject: Updated some documentation following cmake change X-Git-Tag: dali_1.4.35~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40744e023a41b2f40ddbf48126b0c3df12c0724d;p=platform%2Fcore%2Fuifw%2Fdali-core.git Updated some documentation following cmake change Change-Id: Ie192bcbfd8337748483bfaba66a8b1b869aa5b7d --- diff --git a/automated-tests/README.md b/automated-tests/README.md index 454a43145..cfb515f0e 100644 --- a/automated-tests/README.md +++ b/automated-tests/README.md @@ -46,12 +46,9 @@ Building dali core: export CC=gcc export CXX=g++ git clean -fxd . # Only do this in the build folder - autoreconf --install - CXXFLAGS='-g -O0 --coverage' LDFLAGS='--coverage' ./configure --prefix=$DESKTOP_PREFIX --enable-debug + CXXFLAGS='-g -O0 --coverage' LDFLAGS='--coverage' cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX -DCMAKE_BUILD_TYPE=Debug make -j8 install -Repeat for dali-adaptor and toolkit. - Note, you __must__ use a local build and not a distributed build, and you __must__ also build with debug enabled to allow *DALI_ASSERT_DEBUG* to trigger on wrong behaviour ( Which should always be a test case failure! ) Building the tests diff --git a/build/scripts/dali_env b/build/scripts/dali_env index 86a15394b..b6b3eb54e 100755 --- a/build/scripts/dali_env +++ b/build/scripts/dali_env @@ -1,6 +1,6 @@ #!/usr/bin/perl -# Copyright (c) 2018 Samsung Electronics Co., Ltd. +# Copyright (c) 2019 Samsung Electronics Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -191,8 +191,10 @@ sub create_setenv # You can then source this script by using # \$ . setenv # -# Use DESKTOP_PREFIX when running configure in dali/build/tizen: +# Use DESKTOP_PREFIX when running configure or cmake in dali/build/tizen: # \$ CXXFLAGS="-g -O0" ./configure --prefix=\$DESKTOP_PREFIX +# _OR_ +# \$ CXXFLAGS="-g -O0" cmake -DCMAKE_INSTALL_PREFIX=\$DESKTOP_PREFIX export DESKTOP_PREFIX=$install_path export PATH=$install_path/bin:\$PATH diff --git a/build/tizen/CMakeLists.txt b/build/tizen/CMakeLists.txt index acece1ee0..4fa954676 100644 --- a/build/tizen/CMakeLists.txt +++ b/build/tizen/CMakeLists.txt @@ -27,7 +27,7 @@ OPTION(ENABLE_TRACE "Enable Trace" OFF) IF(CMAKE_BUILD_TYPE MATCHES Debug) MESSAGE( STATUS "CMAKE_BUILD_TYPE: " Debug ) - SET(ENABLE_DEBUG ON) + SET( ENABLE_DEBUG ON ) ELSE() MESSAGE( STATUS "CMAKE_BUILD_TYPE: " Release ) ENDIF() @@ -39,14 +39,15 @@ IF("${ARCH}" STREQUAL "arm") ADD_DEFINITIONS("-DTARGET") ENDIF("${ARCH}" STREQUAL "arm") -IF( NOT ${ENABLE_EXPORTALL} AND NOT ${ENABLE_DEBUG} ) - ADD_DEFINITIONS( "-fvisibility=hidden -DHIDE_DALI_INTERNALS" ) -ENDIF( NOT ${ENABLE_EXPORTALL} AND NOT ${ENABLE_DEBUG} ) - IF( ENABLE_DEBUG ) ADD_DEFINITIONS( "-DDEBUG_ENABLED" ) + SET( ENABLE_EXPORTALL ON ) ENDIF( ENABLE_DEBUG ) +IF( NOT ${ENABLE_EXPORTALL} ) + ADD_DEFINITIONS( "-fvisibility=hidden -DHIDE_DALI_INTERNALS" ) +ENDIF( NOT ${ENABLE_EXPORTALL} ) + IF( ENABLE_BACKTRACE OR ENABLE_LOCK_BACKTRACE ) ADD_DEFINITIONS( "-DBACKTRACE_ENABLED" ) ENDIF( ENABLE_BACKTRACE OR ENABLE_LOCK_BACKTRACE ) @@ -248,6 +249,7 @@ MESSAGE( STATUS "Prefix: " ${PREFIX} ) MESSAGE( STATUS "Lib Dir: " ${LIB_DIR} ) MESSAGE( STATUS "Include Dir: " ${INCLUDE_DIR} ) MESSAGE( STATUS "Debug build: " ${ENABLE_DEBUG} ) +MESSAGE( STATUS "Export all symbols: " ${ENABLE_EXPORTALL} ) MESSAGE( STATUS "Backtrace: " ${ENABLE_BACKTRACE} ) MESSAGE( STATUS "Scoped Lock backtrace: " ${ENABLE_LOCK_BACKTRACE} ) MESSAGE( STATUS "Coverage: " ${ENABLE_COVERAGE} ) diff --git a/dali/public-api/common/dali-common.h b/dali/public-api/common/dali-common.h index 32711ec4f..ba252e8c0 100755 --- a/dali/public-api/common/dali-common.h +++ b/dali/public-api/common/dali-common.h @@ -23,9 +23,9 @@ /* * Definitions for shared library support. * - * If a library is configured with --enable-exportall or --enable-debug + * If a library is built with -DENABLE_EXPORTALL=ON or -DENABLE_DEBUG=ON * then HIDE_DALI_INTERNALS is not defined, and nothing is hidden. - * If it is configured without these options (the default), then HIDE_INTERNALS + * If it is built without these options (the default), then HIDE_INTERNALS * is defined when building the library, visibility is automatically hidden, and the explicit * defines below come into use. * When building a library that uses DALI, HIDE_DALI_INTERNALS.