From 4b825f7f5f7bb8cae0dc14b20dfe9e0b876a0756 Mon Sep 17 00:00:00 2001 From: Youngsoo Choi Date: Wed, 15 Oct 2014 20:28:32 +0900 Subject: [PATCH] [M39] Fix tv build break 1) The character '\' is missed in 'build/build_tv.sh'. 2) The sensor library-level issue on tizen v2.1 and v2.2.1. Error log is like below. >> /usr/include/sensor/sensor.h:76:26: fatal error: >> sensor_accel.h: No such file or directory The '#include ' is defined in 'sensor.h' that is provided by platform rpm repository, and the 'sensor_accel.h' is located in '/usr/include/sensor/'. To use '#include ' in 'sensor.h' file, the path '/usr/include/sensor' needs to be defined in following pc file. >> ./usr/lib/pkgconfig/capi-system-sensor.pc However, on tizen v2.1 and v2.2.1, the header path '/usr/include/sensor' is not included in pc file like below. >> includedir=/usr/include/system On the other hand, on tizen v2.3, it is properly included like below. >> includedir=/usr/include/sensor Therefore, the header path '/usr/include/sensor' needs to be defined in gyp file for tizen v2.1 and v2.2.1. Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5676 Change-Id: Ie372f8e685eb7c829319b735ef41d4de2824b2e7 Signed-off-by: Youngsoo Choi --- tizen_src/build/build_tv.sh | 2 +- tizen_src/impl/chromium-efl-deps.gyp | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tizen_src/build/build_tv.sh b/tizen_src/build/build_tv.sh index 262df0d..3ad90bd 100755 --- a/tizen_src/build/build_tv.sh +++ b/tizen_src/build/build_tv.sh @@ -21,7 +21,7 @@ if [ "$USE_GLOBAL_GBS_CONF" == "" ]; then fi gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental \ - --extra-packs python-base-x86-arm,python-x86-arm,python-xml-x86-arm + --extra-packs python-base-x86-arm,python-x86-arm,python-xml-x86-arm \ --define "${TIZEN_VERSION}" "$@" ${SCRIPTDIR}/apply_patches.sh -r diff --git a/tizen_src/impl/chromium-efl-deps.gyp b/tizen_src/impl/chromium-efl-deps.gyp index 93ccb7a..96e28ad 100644 --- a/tizen_src/impl/chromium-efl-deps.gyp +++ b/tizen_src/impl/chromium-efl-deps.gyp @@ -139,6 +139,15 @@ ], }, }], + # FIXME_youngsoo: This should be removed when TV upgrades + # to Tizen 2.3 or higher. + ['chromium_efl_tizen_version=="2.2.1"', { + 'direct_dependent_settings': { + 'include_dirs': [ + '/usr/include/sensor', + ] + } + }], ], }, ], -- 2.7.4