X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=build%2Ftizen%2Fadaptor%2Fconfigure.ac;h=531ba188484afff83d4c7c0bb0ae9ab958abb4be;hb=4626edaf09dd3991141017b38fb2b9ceb8a9c9d6;hp=d4ea0a0d0c022e450f2abcd27c536e05bb7f4c00;hpb=c2661eb631bd87ee9eed1e752c7113aeda6af785;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/build/tizen/adaptor/configure.ac b/build/tizen/adaptor/configure.ac index d4ea0a0..531ba18 100644 --- a/build/tizen/adaptor/configure.ac +++ b/build/tizen/adaptor/configure.ac @@ -1,5 +1,5 @@ # -# Copyright (c) 2017 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. @@ -44,9 +44,9 @@ PKG_CHECK_MODULES(PNG, libpng) PKG_CHECK_MODULES(LIBEXIF, libexif) PKG_CHECK_MODULES(LIBDRM, libdrm) PKG_CHECK_MODULES(LIBCURL, libcurl) -PKG_CHECK_MODULES(LIBCRYPTO, libcrypto) PKG_CHECK_MODULES(HARFBUZZ, harfbuzz) PKG_CHECK_MODULES(FRIBIDI, fribidi) +PKG_CHECK_MODULES(CAIRO, cairo) PKG_CHECK_MODULES(EVAS, evas) PKG_CHECK_MODULES(TTRACE, ttrace, AC_DEFINE(ENABLE_TTRACE, 1, [ttrace available]), [ AC_MSG_NOTICE([Tizen Trace not avaiable]) ] @@ -68,10 +68,13 @@ fi AC_SUBST(DALI_ELDBUS_AVAILABLE) -if test "x$enable_cxx03_abi" = "xyes"; then -PKG_CHECK_MODULES(TPKP_CURL, tpkp-curl-deprecated, [ tpkp_curl_available=yes ], [ tpkp_curl_available=no ] ) -else PKG_CHECK_MODULES(TPKP_CURL, tpkp-curl, [ tpkp_curl_available=yes ], [ tpkp_curl_available=no ] ) + +if test "x$enable_tizen_major_version" = "x5"; then +if test "x$enable_tizen_minor_version" = "x5"; then +PKG_CHECK_MODULES(AUTOFILL, capi-ui-autofill) + DALI_ADAPTOR_CFLAGS="$DALI_ADAPTOR_CFLAGS -DCAPI_AUTOFILL_SUPPORT" +fi fi if test "x$tpkp_curl_available" = "xyes"; then @@ -111,6 +114,10 @@ if test "x$enable_debug" = "xyes"; then DALI_ADAPTOR_CFLAGS="$DALI_ADAPTOR_CFLAGS -DDEBUG_ENABLED" fi +if test "x$enable_trace" = "xyes"; then + DALI_ADAPTOR_CFLAGS="$DALI_ADAPTOR_CFLAGS -DTRACE_ENABLED" +fi + if test "x$enable_debug" = "xno" -a "x$enable_exportall" = "xno"; then DALI_ADAPTOR_CFLAGS="$DALI_ADAPTOR_CFLAGS -fvisibility=hidden -DHIDE_DALI_INTERNALS" fi @@ -128,14 +135,6 @@ if test "x$ecore_imf_1_13" = "xyes"; then DALI_ADAPTOR_CFLAGS="$DALI_ADAPTOR_CFLAGS -DECORE_IMF_1_13" fi -AC_ARG_ENABLE([gles], - [AC_HELP_STRING([--enable-gles], - [Specify the OpenGL ES version for backwards compatibility])], - [enable_gles=$enableval], - [enable_gles=20]) - -DALI_ADAPTOR_CFLAGS="$DALI_ADAPTOR_CFLAGS -DDALI_GLES_VERSION=${enable_gles}" - # Currently, dali-adaptor requires appfw on Tizen # and does not require it on Ubuntu. # So we should be able to enable/disable this option for dali-adaptor. @@ -145,13 +144,6 @@ AC_ARG_ENABLE([appfw], [enable_appfw=$enableval], [enable_appfw=no]) -# Option to allow building with Tizen SDK 2.2 -AC_ARG_WITH([tizen-2-2-compatibility], - [AC_HELP_STRING([--with-tizen-2-2-compatibility], - [Use Tizen SDK 2.2 compatibility])], - [with_tizen_2_2_compatibility=$withval], - [with_tizen_2_2_compatibility=no]) - # Tizen Profile options AC_ARG_ENABLE([profile], [AC_HELP_STRING([--enable-profile=COMMON,MOBILE,WEARABLE,TV,IVI,UBUNTU], @@ -166,6 +158,13 @@ AC_ARG_ENABLE([tizen-major-version], [enable-tizen-major-version=$enableval], [enable-tizen-major-version=0]) +# Tizen Minor version +AC_ARG_ENABLE([tizen-minor-version], + [AC_HELP_STRING([--enable-tizen-minor-version], + [Specify the Tizen Minor version for backwards compatibility])], + [enable-tizen-minor-version=$enableval], + [enable-tizen-minor-version=0]) + # Ensure valid profile selected if test "x$enable_profile" != "xCOMMON" -a "x$enable_profile" != "xMOBILE" -a "x$enable_profile" != "xWEARABLE" -a "x$enable_profile" != "xTV" -a "x$enable_profile" != "xIVI" -a "x$enable_profile" != "xUBUNTU"; then AC_MSG_ERROR([$enable_profile is an invalid profile]) @@ -176,11 +175,10 @@ AC_ARG_ENABLE(wayland, enable_wayland=yes, enable_wayland=no) -AC_ARG_ENABLE([cxx03_abi], - [AC_HELP_STRING([--enable-cxx03-abi], - [Specify abi for the build])], - [enable_cxx03_abi=$enableval], - [enable_cxx03_abi=no]) +AC_ARG_ENABLE(ecore_wayland2, + [ --enable-ecore-wayland2 Build on Ecore Wayland2], + enable_ecore_wayland2=yes, + enable_ecore_wayland2=no) AC_ARG_ENABLE([rename_so], [AC_HELP_STRING([--enable-rename-so], @@ -197,9 +195,8 @@ AM_CONDITIONAL([TV_PROFILE], [test x$enable_profile = xTV]) AM_CONDITIONAL([IVI_PROFILE], [test x$enable_profile = xIVI]) AM_CONDITIONAL([UBUNTU_PROFILE], [test x$enable_profile = xUBUNTU]) AM_CONDITIONAL([WAYLAND], [test x$enable_wayland = xyes]) +AM_CONDITIONAL([ECORE_WAYLAND2], [test x$enable_ecore_wayland2 = xyes]) AM_CONDITIONAL([USE_APPFW], [test x$enable_appfw = xyes]) -AM_CONDITIONAL([USE_APPFW_EFL_BASE], [test x$enable_tizen_major_version = x3]) -AM_CONDITIONAL([ENABLE_CXX03_ABI], [test x$enable_cxx03_abi = xyes]) AM_CONDITIONAL([ENABLE_RENAME_SO], [test x$enable_rename_so = xyes]) # Platforms with highp shader support can use vector based text @@ -207,6 +204,8 @@ AM_CONDITIONAL([ENABLE_VECTOR_BASED_TEXT_RENDERING], [test x$enable_profile = xU AM_CONDITIONAL([ENABLE_NETWORK_LOGGING], [test x$enable_networklogging = xyes]) +AM_CONDITIONAL([ENABLE_TRACE], [test x$enable_trace = xyes]) + # Platforms should either enable features or remove them, they # should not disable features. This allows the developer to override # features through the command line. @@ -224,11 +223,7 @@ if test "x$enable_profile" = "xLITE"; then PKG_CHECK_MODULES(OPENGLES20, gles20) fi -if test "x$enable_cxx03_abi" = "xyes"; then -PKG_CHECK_MODULES(DALICORE, dali-core-cxx03) -else PKG_CHECK_MODULES(DALICORE, dali-core) -fi if test "x$enable_profile" = "xWEARABLE"; then PKG_CHECK_MODULES(OPENGLES20, glesv2) @@ -253,15 +248,9 @@ if test "x$enable_profile" = "xUBUNTU"; then PKG_CHECK_MODULES(OPENGLES20, glesv2 egl) else -if test "x$enable_cxx03_abi" = "xyes"; then - DALI_ADAPTOR_CFLAGS="$DALI_ADAPTOR_CFLAGS -D_GLIBCXX_USE_CXX11_ABI=0" -fi - PKG_CHECK_MODULES(DLOG, dlog) PKG_CHECK_MODULES(TTS, tts) PKG_CHECK_MODULES(VCONF, vconf) - -if test "x$with_tizen_2_2_compatibility" = "xno"; then PKG_CHECK_MODULES(CAPI_SYSTEM_INFO, capi-system-info) PKG_CHECK_MODULES(CAPI_SYSTEM_SENSOR, capi-system-sensor, [ capi_system_sensor_support=yes ], [ capi_system_sensor_support=no ] ) @@ -269,8 +258,6 @@ if test "x$capi_system_sensor_support" = "xyes"; then DALI_ADAPTOR_CFLAGS="$DALI_ADAPTOR_CFLAGS -DCAPI_SYSTEM_SENSOR_SUPPORT" fi -fi - fi # ubuntu profile test if test "x$enable_appfw" = "xyes"; then @@ -292,12 +279,13 @@ fi # Using EFL api's for WAYLAND AND X11 to run on ecore mainloop if test "x$enable_wayland" = "xyes"; then -PKG_CHECK_MODULES(WAYLAND, [ecore-wayland egl wayland-egl wayland-client >= 1.2.0 xkbcommon libtbm], - [DALI_USE_ECORE_WAYLAND=1], - [DALI_USE_ECORE_WAYLAND=0]) -PKG_CHECK_MODULES(WAYLAND2, [ecore-wl2 egl wayland-egl wayland-client >= 1.2.0 xkbcommon libtbm], - [DALI_USE_ECORE_WAYLAND2=1], - [DALI_USE_ECORE_WAYLAND2=0]) + +if test "x$enable_ecore_wayland2" = "xyes"; then +PKG_CHECK_MODULES(WAYLAND, [ecore-wl2 egl wayland-egl wayland-egl-tizen wayland-client >= 1.2.0 xkbcommon libtbm]) +else +PKG_CHECK_MODULES(WAYLAND, [ecore-wayland egl wayland-egl wayland-client >= 1.2.0 xkbcommon libtbm]) +fi + else PKG_CHECK_MODULES(ECORE_X, [ecore-x], [DALI_USE_ECORE_X11=1], @@ -314,8 +302,6 @@ if test "x$enable_profile" != "xCOMMON"; then PKG_CHECK_MODULES(WAYLAND_EXTENSION, xdg-shell-client text-client input-method-client) fi fi -AM_CONDITIONAL([USE_ECORE_WAYLAND], [test "$DALI_USE_ECORE_WAYLAND" -eq 1]) -AM_CONDITIONAL([USE_ECORE_WAYLAND2], [test "$DALI_USE_ECORE_WAYLAND2" -eq 1]) if test x$DALI_DATA_RW_DIR != x; then dataReadWriteDir=$DALI_DATA_RW_DIR @@ -339,6 +325,13 @@ if test x$FONT_CONFIGURATION_FILE != x; then fontConfigurationFile=$FONT_CONFIGURATION_FILE fi +if test "x$enable_profile" = "xUBUNTU"; then + cachePath=$HOME +else + cachePath="/home/owner" +fi # ubuntu profile test + +AC_SUBST(cachePath) AC_SUBST(dataReadWriteDir) AC_SUBST(dataReadOnlyDir) AC_SUBST(DALI_ADAPTOR_CFLAGS) @@ -351,13 +344,12 @@ AC_SUBST(tizenPlatformConfigSupported) devincludepath=${includedir} AC_SUBST(devincludepath) -AC_CONFIG_FILES([Makefile]) - -if test "x$enable_cxx03_abi" = "xyes"; then -AC_CONFIG_FILES([dali-adaptor-cxx03.pc dali-adaptor-integration-cxx03.pc]) -else -AC_CONFIG_FILES([dali-adaptor.pc dali-adaptor-integration.pc]) -fi +AC_CONFIG_FILES([ + Makefile + dali-adaptor.pc + dali-adaptor-integration.pc + ../../../dali/internal/adaptor/common/system-cache-path.cpp:./system-cache-path.in +]) if test "x$freetype_bitmap_support" = "xyes"; then DALI_ADAPTOR_CFLAGS="$DALI_ADAPTOR_CFLAGS -DFREETYPE_BITMAP_SUPPORT" @@ -371,18 +363,17 @@ Configuration ------------- Prefix: $prefix Debug Build: $enable_debug + Trace Build: $enable_trace Compile flags: $DALI_ADAPTOR_CFLAGS Freetype bitmap support (Emoji): $freetype_bitmap_support Profile: $enable_profile Data Dir (Read/Write): $dataReadWriteDir Data Dir (Read Only): $dataReadOnlyDir - Tizen SDK 2.2 compatibility: $with_tizen_2_2_compatibility EldBus: $eldbus_available Shader Binary Cache: $enable_shaderbincache Ecore Version At Least 1.13.0 $ecore_imf_1_13 Network logging enabled: $enable_networklogging Font config file: $fontConfigurationFile Using Tizen APP FW libraries: $enable_appfw - OpenGL ES version: $enable_gles Tizen Platform Config supported $tizenPlatformConfigSupported "