Build ewk with gyp instead of cmake
authorArnaud Renevier <a.renevier@samsung.com>
Wed, 1 Oct 2014 21:22:44 +0000 (14:22 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
As of now, one executable is created for each unittest. There are about
300 of them. The gyp code to handle that would be cumbersome to write.
Also, in chromium upstream, all unittests of a specific subdirectory
create only one executable. So, we don't build the unittests for now. We
will first need to figure out what to do with them.

Also, modify spec files so that files which were previously in
chromium-ewk rpm are now included in chromium-efl

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6096

Change-Id: I14e47fb42234122ce44a4ad6c169342dea1054d4
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
30 files changed:
tizen_src/README.md
tizen_src/build/build_mobile.sh
tizen_src/build/gyp_chromiumefl.sh
tizen_src/ewk/CMakeLists.txt [deleted file]
tizen_src/ewk/README [deleted file]
tizen_src/ewk/README.md [deleted file]
tizen_src/ewk/build/S_TRUNK_OWNERS [deleted file]
tizen_src/ewk/build/build.sh [deleted file]
tizen_src/ewk/build/build_desktop.sh [deleted file]
tizen_src/ewk/build/build_mobile.sh [deleted file]
tizen_src/ewk/build/build_tv.sh [deleted file]
tizen_src/ewk/chromium-ewk.gyp [new file with mode: 0644]
tizen_src/ewk/efl_integration/CMakeLists.txt [deleted file]
tizen_src/ewk/efl_webview_app/CMakeLists.txt [deleted file]
tizen_src/ewk/efl_webview_app/efl_webview_app.sh
tizen_src/ewk/efl_webview_app/org.tizen.chromium-efl.xml [moved from tizen_src/ewk/efl_webview_app/org.tizen.chromium-ewk.xml with 82% similarity]
tizen_src/ewk/packaging/S_TRUNK_OWNERS [deleted file]
tizen_src/ewk/packaging/chromium-ewk.spec [deleted file]
tizen_src/ewk/packaging/org.tizen.chromium-ewk.manifest [deleted file]
tizen_src/ewk/unittest/CMakeLists.txt [deleted file]
tizen_src/ewk/unittest/ewk-tests.gypi [new file with mode: 0644]
tizen_src/ewk/utc_gtest_run.sh [changed mode: 0644->0755]
tizen_src/impl/chromium-efl-deps.gyp
tizen_src/impl/chromium-efl.gyp
tizen_src/impl/chromium-efl.gypi
tizen_src/impl/pkgconfig/gen_pkgconfigs.py [changed mode: 0644->0755]
tizen_src/packaging/chromium-efl.spec
tizen_src/packaging/manifest.xml [moved from tizen_src/ewk/packaging/manifest.xml with 100% similarity]
tizen_src/packaging/org.tizen.chromium-efl.manifest
tizen_src/packaging/org.tizen.chromium-ewktest.manifest [moved from tizen_src/ewk/org.tizen.chromium-ewktest.manifest with 100% similarity]

index dd7fb3b..a2fc8b6 100755 (executable)
@@ -2,17 +2,21 @@ chromium-efl
 ==========
 
 chromium-efl is a Chromium/Blink engine port to tizen/efl platform. The port
-implements Chromium/Blink platform APIs, but does not expose a public API to
-be used by the embedder
+implements Chromium/Blink platform APIs.
+
+It also exposes a webview API implementation based on chromium-efl port. It is
+supposed to be completely source and binary compatible with EFL-WebKit2.
 
 Building
 ----------
 
 ### For Desktop build
 
-    $ source ./build/prebuild.sh desktop (optional : run only if build setting changed)
-    $ ninja -C <outdir>
-      : where <outdir> = out.x64/Release or out.x64/Debug (if 64-bit machine)
+    $ ./build/build_desktop.sh
+
+#build_desktop.sh handles some parameters like --ccache
+#--skip-cmake and so on. To see more detailed documentation
+#invoke the script with -h parameter
 
 ### For Mobile build
 Before Tizen build You need to install GBS.
@@ -42,10 +46,9 @@ platform.development%2Fhtml%2Fplatform_dev_env%2Fgit_build_system.htm)
     url = http://10.251.52.177/tizenrepo/jpn-dcm/supplement
 
 2. Build
-    $ ./build/prebuild.sh mobile  (optional : run only if build setting changed)
-    $ gbs build -A armv7l --incremental --include-all [--clean]
-      [--define '_debug_mode 1']   excute debug build (default : release)
-      [--define '_skip_gyp 1']     skip gyp generate  (default : gyp generate)
+    $ ./build/build_mobile.sh
+#developer can add --ccache flags to improve development cycle
+    $ ./build/build_mobile.sh --ccache
 
 ### For TV build
 Before Tizen build You need to install GBS.
@@ -79,10 +82,9 @@ platform.development%2Fhtml%2Fplatform_dev_env%2Fgit_build_system.htm)
     url = http://10.251.52.177/tizenrepo/jpn-dcm/supplement_tv
 
 2. Build
-    $ ./build/prebuild.sh tv      (optional : run only if build setting changed)
-    $ gbs build -A armv7l --incremental --include-all [--clean]
-      [--define '_debug_mode 1']   excute debug build (default : release)
-      [--define '_skip_gyp 1']     skip gyp generate  (default : gyp generate)
+    $ ./build/build_tv.sh
+#developer can add --ccache flags to improve development cycle
+    $ ./build/build_tv.sh --ccache
 
 ### Using ccache inside gbs
 To use ccache for faster full builds use --ccache parameter:
@@ -119,3 +121,66 @@ You need to install GStreamer packages from tizenrepo.
     # cd [TARGET_DIR]
     # ./3_install_gstreamer_packages.sh
 
+Coding style
+-----------
+
+In the public API implementation, we use the chromium coding style as a base
+(see: http://www.chromium.org/developers/coding-style).  This is a good and
+consistent style. However, coming from WebKit and Blink, it seems like it has
+some disadvantages regarding readibility.  For that reason we have some
+exception from it's rules.
+
+Our extra rules are these:
+
+1. We put starting braces of functinos and methods on it's own line
+
+    *Bad*
+
+        void MyFancyStuff() {
+          ...
+        }
+
+    *Good*
+
+        void MyFancyStuff()
+        {
+          ...
+        }
+
+2. We do not keep the 80 character limit on line lenghts. It hurts readibility.
+   There is no strict rule, but plese do break lines in a sane manner.
+   A soft limit on about 120 characters is reasonable.
+
+    *Bad*
+
+        void RenderWidgetHostViewPort::GetDefaultScreenInfo(
+            WebKit::WebScreenInfo* results)
+
+    *Good*
+
+        void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebKit::WebScreenInfo* results)
+
+3. Do not name function params in function declarations if the role of the argument is clear.
+
+    *Bad*
+
+        void LaunchRocket(const Rocket& rocket);
+
+    *Good*
+
+        void LaunchRocket(const Rocket&);
+
+4. We do not require header guards to contain the full path of the header.
+
+    *Bad*
+
+        #ifndef EFL_INTEGRATION_SOME_MORE_NESTED_DIRS_MY_HEADER_H
+        #define EFL_INTEGRATION_SOME_MORE_NESTED_DIRS_MY_HEADER_H
+
+    *Good*
+
+        #ifndef MY_HEADER_H
+        #define MY_HEADER_H
+
+5. If a file is coming directly from WebKit (headers for example) it's acceptable to
+   completely ignore fixing it's style.
index af91540..605adb6 100755 (executable)
@@ -9,10 +9,10 @@ ${SCRIPTDIR}/apply_patches.sh
 
 TIZEN_VERSION="chromium_efl_tizen_version 2.3"
 
-if [ ! -f "$HOME/.gbs.conf" ]; then
+#if [ ! -f "$HOME/.gbs.conf" ]; then
     CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
     PROFILE_FLAG="-P tizenmb_v2.3"
-fi
+#fi
 
 gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental \
     --define "${TIZEN_VERSION}" "$@"
index 43aadd3..8687685 100755 (executable)
@@ -102,7 +102,7 @@ ${TOPDIR}/build/gyp_chromiumefl \
                                  $SYSTEM_DEPS \
                                  $ADDITIONAL_GYP_PARAMETERS \
                                  $@ \
-                                 ${TOPDIR}/impl/chromium-efl.gyp
+                                 ${TOPDIR}/ewk/chromium-ewk.gyp
 
 ret=$?
 
diff --git a/tizen_src/ewk/CMakeLists.txt b/tizen_src/ewk/CMakeLists.txt
deleted file mode 100644 (file)
index 5e9ddbc..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-
-PROJECT(chromium-ewk)
-
-INCLUDE(FindPkgConfig)
-
-pkg_search_module(evas REQUIRED evas)
-pkg_search_module(ecore REQUIRED ecore)
-pkg_search_module(ecore-x REQUIRED ecore-x)
-pkg_search_module(edje REQUIRED edje)
-pkg_search_module(eina REQUIRED eina)
-pkg_search_module(elementary REQUIRED elementary)
-pkg_search_module(ecore-evas REQUIRED ecore-evas)
-pkg_search_module(ecore-imf REQUIRED ecore-imf)
-pkg_search_module(chromium-efl REQUIRED chromium-efl)
-pkg_search_module(appcore-efl appcore-efl)
-pkg_search_module(capi-appfw-application capi-appfw-application)
-pkg_search_module(dlog dlog)
-
-IF(${TARGET} STREQUAL "mobile")
-  pkg_search_module(haptic haptic)
-  pkg_search_module(efl-assist efl-assist)
-ENDIF(${TARGET} STREQUAL "mobile")
-
-SET (BINDIR /usr/bin CACHE STRING "Target binary directory")
-SET (LIBDIR /usr/lib CACHE STRING "Target library directory")
-SET (DATADIR /usr/share CACHE STRING "Target data directory")
-SET (INCLUDEDIR /usr/include CACHE STRING "System include directory")
-
-# add definitions to build target
-IF(${TARGET} STREQUAL "mobile")
-  ADD_DEFINITIONS (
-    -DOS_TIZEN=1
-    -DOS_TIZEN_MOBILE=1
-  )
-ELSEIF(${TARGET} STREQUAL "tv")
-  ADD_DEFINITIONS (
-    -DOS_TIZEN=1
-    -DOS_TIZEN_TV=1
-  )
-ENDIF(${TARGET} STREQUAL "mobile")
-
-# Build type
-IF(NOT CMAKE_BUILD_TYPE)
-    SET(CMAKE_BUILD_TYPE "Release")
-ENDIF(NOT CMAKE_BUILD_TYPE)
-
-# Compiler flags
-SET(CMAKE_C_FLAGS_DEBUG        "-O0 -g")
-SET(CMAKE_CXX_FLAGS_DEBUG      "-O0 -g")
-SET(CMAKE_C_FLAGS_RELEASE      "-O2 -g -DNDEBUG=1")
-SET(CMAKE_CXX_FLAGS_RELEASE    "-O2 -g -DNDEBUG=1")
-# Linker flags
-SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
-
-#We include chromium-efl headers hence we
-#should use the same set of macros/defines
-#as chromium-efl
-ADD_DEFINITIONS(${chromium-efl_CFLAGS})
-
-ADD_SUBDIRECTORY(efl_integration)
-ADD_SUBDIRECTORY(efl_webview_app)
-
-message(Adding subdirectory)
-
-IF(DEFINED BUILD_EWK_UNITTEST)
-  ADD_SUBDIRECTORY(unittest)
-ENDIF(DEFINED BUILD_EWK_UNITTEST)
diff --git a/tizen_src/ewk/README b/tizen_src/ewk/README
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/tizen_src/ewk/README.md b/tizen_src/ewk/README.md
deleted file mode 100644 (file)
index 7e705cc..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-chromium-ewk
-==========
-
-Chromium-ewk is a webview API implementation based on chromium-efl port.
-It is supposed to be completely source and binary compatible with EFL-WebKit2.
-
-Building
-----------
-
-### For Desktop build
-
-    $ ./build/build_desktop.sh
-
-#build_desktop.sh handles some parameters like --ccache
-#--skip-cmake and so on. To see more detailed documentation
-#invoke the script with -h parameter
-
-
-### For target build
-Before Tizen build You need to install GBS.
-Please refer to (https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.
-platform.development%2Fhtml%2Fplatform_dev_env%2Fgit_build_system.htm)
-
-Also you need to have access to chromium-efl-devel package.
-The detailed instrcution how to do this can be found in chromium-efl/README.md file.
-#for mobile
-    $ ./build/build_mobile.sh
-#for tv
-    $ ./build/build_tv.sh
-#developer can add --incremental and --ccache flags to improve development cycle
-    $ ./build/build_(mobile|tv).sh --incremental --ccache
-
-The GBS build supports the following additional options passed through --define switch:
-    _debug_mode [1|0] - compile the code in debug mode (default : 0)
-    build_unittest [1|0 - compile and create package of ewk unittest
-
-
-Coding style
-----------
-
-We use the chromium coding style as a base (see: http://www.chromium.org/developers/coding-style).
-This is a good and consistent style. However, coming from WebKit and Blink,
-it seems like it has some disadvantages regarding readibility.
-For that reason we have some exception from it's rules.
-
-Our extra rules are these:
-
-1. We put starting braces of functinos and methods on it's own line
-
-    *Bad*
-
-        void MyFancyStuff() {
-          ...
-        }
-
-    *Good*
-
-        void MyFancyStuff()
-        {
-          ...
-        }
-
-2. We do not keep the 80 character limit on line lenghts. It hurts readibility.
-   There is no strict rule, but plese do break lines in a sane manner.
-   A soft limit on about 120 characters is reasonable.
-
-    *Bad*
-
-        void RenderWidgetHostViewPort::GetDefaultScreenInfo(
-            WebKit::WebScreenInfo* results)
-
-    *Good*
-
-        void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebKit::WebScreenInfo* results)
-
-3. Do not name function params in function declarations if the role of the argument is clear.
-
-    *Bad*
-
-        void LaunchRocket(const Rocket& rocket);
-
-    *Good*
-
-        void LaunchRocket(const Rocket&);
-
-4. We do not require header guards to contain the full path of the header.
-
-    *Bad*
-
-        #ifndef EFL_INTEGRATION_SOME_MORE_NESTED_DIRS_MY_HEADER_H
-        #define EFL_INTEGRATION_SOME_MORE_NESTED_DIRS_MY_HEADER_H
-
-    *Good*
-
-        #ifndef MY_HEADER_H
-        #define MY_HEADER_H
-
-5. If a file is coming directly from WebKit (headers for example) it's acceptable to
-   completely ignore fixing it's style.
diff --git a/tizen_src/ewk/build/S_TRUNK_OWNERS b/tizen_src/ewk/build/S_TRUNK_OWNERS
deleted file mode 100644 (file)
index 17d3e34..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-djmix.kim@samsung.com
-j.majnert@samsung.com
-p.grad@samsung.com
-t.olszak@samsung.com
-youngbok.yoon@samsung.com
diff --git a/tizen_src/ewk/build/build.sh b/tizen_src/ewk/build/build.sh
deleted file mode 100755 (executable)
index 5e2bbcd..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-#/bin/bash
-
-SCRIPTNAME="build.sh"
-
-if [[ ! "$0" =~ .*"$SCRIPTNAME" ]]; then
-  echo $0
-  echo "ERROR - $SCRIPTNAME probably invoked  with source or . statement like:"
-  echo "$ source $SCRIPTNAME"
-  echo "$ . $SCRIPTNAME"
-  echo "$SCRIPTNAME is meant to be executed with:"
-  echo "$ ./$SCRIPTNAME"
-  echo "$ bash $SCRIPTNAME"
-  #we don't want to exit with error code here because if script is sourced
-  #it will exit current shell
-  return 1
-fi
-
-BUILD_TARGETS="mobile tv desktop"
-BUILD_TYPES="release debug"
-
-usage() {
-cat << EOF
-usage: $0  $(echo $BUILD_TARGETS|sed "s/ /\|/gi") $(echo $BUILD_TYPES|sed "s/ /\|/gi") [OPTIONS]
-
-Build certain version of chromium-ewk
-
-OPTIONS:
-   -h, --help    Show this message
-   --build-ewk-unittest - build chromium ewk unittest rmp (only for non desktop builds)
-examples:
-$0 mobile debug
-$0 desktop release
-EOF
-  exit
-}
-
-function getHostArch() {
-  echo $(uname -m | sed -e \
-        's/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/')
-}
-
-copy_chromium_files() {
-  local chr_out_dir=${1}
-  local out_dir=${2}/efl_webview_app
-  mkdir -p $out_dir
-  ln -sf $chr_out_dir/efl_webprocess $out_dir/efl_webprocess
-  ln -sf $chr_out_dir/resources $out_dir/resources
-  cp $chr_out_dir/icudtl.dat $out_dir/
-}
-
-TARGET=""
-BUILD_TYPE=""
-BUILD_EWK_UNITTEST=""
-
-function validateArgs() {
-  for param in $@; do
-    if [ "$param" == "-h" -o "$param" == "--help" ]; then
-      usage
-    elif [ "$param" == "--build-ewk-unittest" ]; then
-      BUILD_EWK_UNITTEST="-DBUILD_EWK_UNITTEST=1"
-    fi
-  done
-
-  if echo " $BUILD_TARGETS " | grep -cq " $1 "; then
-    TARGET=$1
-  else
-    echo "ERROR - not handled target \"$1\""
-    usage
-  fi
-
-  if echo " $BUILD_TYPES " | grep -cq " $2 "; then
-    BUILD_TYPE=${2^}
-  else
-    echo "ERROR - not handled build type: \"$2\""
-    usage
-  fi
-
-  if [ "$TARGET" == "desktop" -a "$BUILD_EWK_UNITTEST" != "" ]; then
-    echo ERROR - building ewk unittest working only possible non desktop target
-    usage
-  fi
-
-}
-
-validateArgs $@
-
-SCRIPTDIR=$(cd $(dirname $(readlink -f $0)); pwd -P)
-TOPDIR=$(cd $SCRIPTDIR/..; pwd -P)
-CHROMIUM_EFL_DIR=${TOPDIR}/chromium
-
-host_arch=$(getHostArch)
-
-if [ "$TARGET" == "desktop" ]; then
-  OUT_DIR_ABS="${TOPDIR}/out.$host_arch"
-  CHROMIUM_OUTPUT_BASE="${CHROMIUM_EFL_DIR}/out.$host_arch"
-  echo "${CHROMIUM_OUTPUT_BASE}"/${BUILD_TYPE}/lib/libchromium-efl.so
-  if [ -e "${CHROMIUM_OUTPUT_BASE}"/${BUILD_TYPE}/lib/libchromium-efl.so ]; then
-    echo "Found chromium-efl compiled in ${BUILD_TYPE} mode at: ${CHROMIUM_OUTPUT_BASE}/${BUILD_TYPE}"
-    mkdir -p ${OUT_DIR_ABS}/${BUILD_TYPE}
-    copy_chromium_files "${CHROMIUM_OUTPUT_BASE}"/${BUILD_TYPE} "${OUT_DIR_ABS}"/${BUILD_TYPE}
-  else
-    echo "Please build chromium-efl in ${BUILD_TYPE} mode before trying to compile chromium-ewk"
-    exit 1
-  fi
-
-  if [ -d ${CHROMIUM_OUTPUT_BASE}/Dependencies/Root ]; then
-    JHBUILD_DEPS=${CHROMIUM_OUTPUT_BASE}/Dependencies/Root
-  if [ ${host_arch} = 'x64' ]; then
-    _LIBDIR=lib64
-  elif [ ${host_arch} = 'ia32' ]; then
-    _LIBDIR=lib
-  fi
-    export PKG_CONFIG_PATH="${JHBUILD_DEPS}/${_LIBDIR}/pkgconfig:${CHROMIUM_OUTPUT_BASE}/${BUILD_TYPE}/pkgconfig/desktop"
-    export LD_LIBRARY_PATH="${JHBUILD_DEPS}/${_LIBDIR}"
-    echo "EFL dependencies found at: ${JHBUILD_DEPS}"
-  fi
-else
-  if [ "$USER" != "abuild" ]; then
-    echo "ERROR: non desktop target are only handled in gbs environment"
-    usage
-  fi
-  OUT_DIR_ABS="${TOPDIR}/out.${TARGET}.$host_arch"
-  CHROMIUM_OUTPUT_BASE="${CHROMIUM_EFL_DIR}/out.${TARGET}.$host_arch"
-  export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}":"${CHROMIUM_OUTPUT_BASE}/${BUILD_TYPE}/pkgconfig"
-fi
-
-echo "Configuring project in ${BUILD_TYPE} mode"
-mkdir -p ${OUT_DIR_ABS}/${BUILD_TYPE}
-cd "${OUT_DIR_ABS}/${BUILD_TYPE}"
-set -x
-cmake -DTARGET=${TARGET} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${CMAKE_EXTRA_ARGS} ../..
diff --git a/tizen_src/ewk/build/build_desktop.sh b/tizen_src/ewk/build/build_desktop.sh
deleted file mode 100755 (executable)
index 01d6266..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/bash
-
-SCRIPTDIR=$( cd $(dirname $0) ; pwd -P )
-TOPDIR=$( cd ${SCRIPTDIR}/.. ; pwd -P )
-
-source ${TOPDIR}/chromium/build/common.sh
-
-
-host_arch=$(getHostArch)
-
-JHBUILD_DEPS="${TOPDIR}/chromium/out.${host_arch}/Dependencies/Root"
-
-if [ "${host_arch}" == "x64" ]; then
-  _LIBDIR=lib64
-elif [ "${host_arch}" == "ia32" ]; then
-  _LIBDIR=lib
-fi
-
-OUTPUT_DIR=${TOPDIR}/"out.${host_arch}"
-
-usage() {
-cat << EOF
-usage: $0 [OPTIONS]
-
-Build desktop version of chromium-efl
-
-OPTIONS:
-   -h, --help   Show this message
-   --skip-cmake Skip cmake configuration
-   --skip-make  Skip make step
-   --debug      build debug version of chromium-efl (in $GYP_GENERATOR_OUTPUT/Debug instead of default $GYP_GENERATOR_OUTPUT/Release)
-
-examples:
-$0 --skip-cmake
-$0 --skip-make
-$0 --debug
-EOF
-  exit
-}
-
-SKIP_CMAKE=0
-SKIP_MAKE=0
-
-BUILD_TYPE=release
-
-if echo "$@" | grep -cq '\(\(\-\-help\)\|\(\-h\)\)'; then
-  usage
-fi
-
-if echo "$@" | grep -cq '\-\-skip-cmake'; then
-  SKIP_CMAKE=1
-fi
-
-if echo "$@" | grep -cq '\-\-skip-make'; then
-  SKIP_MAKE=1
-fi
-
-if echo "$@" | grep -cq '\-\-debug'; then
-  BUILD_TYPE=debug
-fi
-
-set -e
-
-if [ "$SKIP_CMAKE" == "0" ]; then
-  ${SCRIPTDIR}/build.sh desktop ${BUILD_TYPE}
-fi
-
-if [ "$SKIP_MAKE" == "0" ]; then
-  export LD_LIBRARY_PATH="${JHBUILD_DEPS}/${_LIBDIR}:$LD_LIBRARY_PATH"
-  make -C ${OUTPUT_DIR}/${BUILD_TYPE^}
-fi
diff --git a/tizen_src/ewk/build/build_mobile.sh b/tizen_src/ewk/build/build_mobile.sh
deleted file mode 100755 (executable)
index a303e27..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-SCRIPTDIR=$(cd $(dirname $0); pwd -P)
-
-PROFILE_NAME=$(echo "$@" | grep -Po "(?<=\-P\s)[^\s]*")
-
-if [ "$PROFILE_NAME" == "" ]; then
-  PROFILE_NAME=tizenmb
-  PROFILE_PARAMETERS="-P $PROFILE_NAME"
-fi
-
-TIZEN_VERSION="chromium_efl_tizen_version 2.3"
-if echo $PROFILE_NAME | grep -cq 2.1; then
-  TIZEN_VERSION="chromium_efl_tizen_version 2.1"
-fi
-
-echo building mobile for $PROFILE_NAME profile
-
-gbs --conf ${SCRIPTDIR}/../chromium/build/gbs.conf build \
-    $PROFILE_PARAMETERS -A armv7l --incremental \
-    --define "${TIZEN_VERSION}" "$@"
diff --git a/tizen_src/ewk/build/build_tv.sh b/tizen_src/ewk/build/build_tv.sh
deleted file mode 100755 (executable)
index 6fa9e4a..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-SCRIPTDIR=$(cd $(dirname $0); pwd -P)
-
-gbs --conf ${SCRIPTDIR}/../chromium/build/gbs.conf build -P tizentv_product -A armv7l "$@"
diff --git a/tizen_src/ewk/chromium-ewk.gyp b/tizen_src/ewk/chromium-ewk.gyp
new file mode 100644 (file)
index 0000000..3a36d55
--- /dev/null
@@ -0,0 +1,215 @@
+{
+  'target_defaults': {
+    'link_settings': {
+      'ldflags': [
+        '-Wl,--no-undefined',
+      ],
+    },
+    'dependencies': [
+      '<(efl_impl_dir)/chromium-efl-deps.gyp:efl',
+    ],
+    'conditions': [
+     ['building_for_tizen==1', {
+      'dependencies': [
+        '<(efl_impl_dir)/chromium-efl-deps.gyp:tizen',
+      ],
+     }],
+  ]},
+
+  'includes': [
+    'unittest/ewk-tests.gypi'
+  ],
+
+  'targets': [{
+    'target_name': 'chromium-ewk',
+    'type': 'shared_library',
+    'include_dirs': [
+      '<(efl_impl_dir)',
+      'efl_integration',
+      'efl_integration/public',
+    ],
+
+    'dependencies': [
+      '<(efl_impl_dir)/chromium-efl.gyp:chromium-efl',
+    ],
+
+    'sources': [
+      'efl_integration/public/ewk_application_cache_manager.cc',
+      'efl_integration/public/ewk_application_cache_manager.h',
+      'efl_integration/public/ewk_auth_challenge.cc',
+      'efl_integration/public/ewk_auth_challenge.h',
+      'efl_integration/public/ewk_auth_request.cc',
+      'efl_integration/public/ewk_auth_request.h',
+      'efl_integration/public/ewk_autofill_profile.cc',
+      'efl_integration/public/ewk_autofill_profile.h',
+      'efl_integration/public/ewk_back_forward_list.cc',
+      'efl_integration/public/ewk_back_forward_list.h',
+      'efl_integration/public/ewk_back_forward_list_item.cc',
+      'efl_integration/public/ewk_back_forward_list_item.h',
+      'efl_integration/public/ewk_certificate.cc',
+      'efl_integration/public/ewk_certificate.h',
+      'efl_integration/public/ewk_console_message.cc',
+      'efl_integration/public/ewk_console_message.h',
+      'efl_integration/public/ewk_content_screening_detection.cc',
+      'efl_integration/public/ewk_content_screening_detection.h',
+      'efl_integration/public/ewk_context.cc',
+      'efl_integration/public/ewk_context.h',
+      'efl_integration/public/ewk_context_menu.cc',
+      'efl_integration/public/ewk_context_menu.h',
+      'efl_integration/public/ewk_cookie_manager.cc',
+      'efl_integration/public/ewk_cookie_manager.h',
+      'efl_integration/public/ewk_custom_handlers.cc',
+      'efl_integration/public/ewk_custom_handlers.h',
+      'efl_integration/public/ewk_dispatcher.cc',
+      'efl_integration/public/ewk_dispatcher.h',
+      'efl_integration/public/ewk_error.cc',
+      'efl_integration/public/ewk_error.h',
+      'efl_integration/public/ewk_favicon_database.cc',
+      'efl_integration/public/ewk_favicon_database.h',
+      'efl_integration/public/ewk_frame.cc',
+      'efl_integration/public/ewk_frame.h',
+      'efl_integration/public/ewk_geolocation.cc',
+      'efl_integration/public/ewk_geolocation.h',
+      'efl_integration/public/ewk_history.cc',
+      'efl_integration/public/ewk_history.h',
+      'efl_integration/public/ewk_hit_test.cc',
+      'efl_integration/public/ewk_hit_test.h',
+      'efl_integration/public/ewk_intercept_request.cc',
+      'efl_integration/public/ewk_intercept_request.h',
+      'efl_integration/public/ewk_ipc_message.cc',
+      'efl_integration/public/ewk_ipc_message.h',
+      'efl_integration/public/ewk_main.cc',
+      'efl_integration/public/ewk_main.h',
+      'efl_integration/public/ewk_notification.cc',
+      'efl_integration/public/ewk_notification.h',
+      'efl_integration/public/ewk_object.cc',
+      'efl_integration/public/ewk_object.h',
+      'efl_integration/public/ewk_page_group.cc',
+      'efl_integration/public/ewk_page_group.h',
+      'efl_integration/public/ewk_policy_decision.cc',
+      'efl_integration/public/ewk_policy_decision.h',
+      'efl_integration/public/ewk_popup_menu_item.cc',
+      'efl_integration/public/ewk_popup_menu_item.h',
+      'efl_integration/public/ewk_quota_permission_request.cc',
+      'efl_integration/public/ewk_quota_permission_request.h',
+      'efl_integration/public/ewk_security_origin.cc',
+      'efl_integration/public/ewk_security_origin.h',
+      'efl_integration/public/ewk_settings.cc',
+      'efl_integration/public/ewk_settings.h',
+      'efl_integration/public/ewk_storage_manager.cc',
+      'efl_integration/public/ewk_storage_manager.h',
+      'efl_integration/public/ewk_text_style.cc',
+      'efl_integration/public/ewk_text_style.h',
+      'efl_integration/public/ewk_user_media.cc',
+      'efl_integration/public/ewk_user_media.h',
+      'efl_integration/public/ewk_view.cc',
+      'efl_integration/public/ewk_view.h',
+      'efl_integration/public/ewk_web_application_icon_data.cc',
+      'efl_integration/public/ewk_web_application_icon_data.h',
+      'efl_integration/public/ewk_window_features.cc',
+      'efl_integration/public/ewk_window_features.h',
+      'efl_integration/public/ewk_chromium.h',
+      'efl_integration/public/ewk_enums.h',
+      'efl_integration/public/ewk_export.h',
+      'efl_integration/public/ewk_log.h',
+      'efl_integration/public/ewk_touch.h',
+
+      'efl_integration/private/api_static_check.cc',
+      'efl_integration/private/chromium_glue.cc',
+      'efl_integration/private/chromium_glue.h',
+      'efl_integration/private/ewk_context_private.cc',
+      'efl_integration/private/ewk_context_private.h',
+      'efl_integration/private/ewk_hit_test_private.h',
+      'efl_integration/private/ewk_hit_test_private.cc',
+      'efl_integration/private/ewk_notification_private.h',
+      'efl_integration/private/ewk_notification_private.cc',
+      'efl_integration/private/ewk_policy_decision_private.cc',
+      'efl_integration/private/ewk_policy_decision_private.h',
+      'efl_integration/private/ewk_private.h',
+      'efl_integration/private/ewk_quota_permission_request_private.h',
+      'efl_integration/private/ewk_quota_permission_request_private.cc',
+      'efl_integration/private/ewk_security_origin_private.h',
+      'efl_integration/private/ewk_security_origin_private.cc',
+      'efl_integration/private/ewk_view_private.h',
+      'efl_integration/private/ewk_view_private.cc',
+      'efl_integration/private/ewk_wrt_private.h',
+      'efl_integration/private/ewk_wrt_private.cc',
+      'efl_integration/private/ewk_history_private.h',
+      'efl_integration/private/ewk_history_private.cc',
+      'efl_integration/private/webview_delegate_ewk.h',
+      'efl_integration/private/webview_delegate_ewk.cc',
+      'efl_integration/private/ewk_favicon_database_private.h',
+      'efl_integration/public/text_encoding_map_efl.cc',
+      'efl_integration/public/text_encoding_map_efl.h',
+    ],
+    'conditions': [
+      ['ewk_bringup==1', {
+        'defines': [ 'EWK_BRINGUP=1' ],
+      }]
+    ]
+  },
+
+  {
+    'target_name': 'efl_webview_app',
+    'type': 'executable',
+
+    'copies': [{
+       'destination': '<(PRODUCT_DIR)',
+       'files': [ 'efl_webview_app/efl_webview_app.sh', ],
+     }],
+
+    'dependencies': [
+      'chromium-ewk',
+      '<(efl_impl_dir)/chromium-efl.gyp:efl_webprocess',
+    ],
+    'include_dirs': [
+      'efl_integration',
+    ],
+    'sources': [
+      'efl_webview_app/app.c',
+    ],
+    'link_settings': {
+      'ldflags': [
+        '-Llib',
+      ],
+      'libraries': [
+        '-lchromium-ewk',
+      ],
+    },
+  },
+
+  {
+    'target_name': 'mini_browser',
+    'type': 'executable',
+     'conditions': [
+      ['building_for_tizen==1', { # FIXME: mini_browser shouldn't depend on dlog and appcore-efl without OS(TIZEN) checks
+       'sources': [
+        'efl_webview_app/mini_browser.c',
+        'efl_webview_app/browser-object.h',
+        'efl_webview_app/browser-string.h',
+       ],
+       'include_dirs': [
+        'efl_integration',
+       ],
+       'dependencies': [
+        'chromium-ewk',
+        '<(efl_impl_dir)/chromium-efl.gyp:efl_webprocess',
+       ],
+       'cflags': [
+        '<!@(pkg-config --cflags capi-appfw-application)',
+        '<!@(pkg-config --cflags dlog)',
+       ],
+       'link_settings': {
+        'ldflags': [
+          '<!@(pkg-config --libs-only-L --libs-only-other capi-appfw-application)',
+          '<!@(pkg-config --libs-only-L --libs-only-other dlog)',
+        ],
+        'libraries': [
+          '<!@(pkg-config --libs-only-l capi-appfw-application)',
+          '<!@(pkg-config --libs-only-l dlog)',
+        ]
+       },
+     }]
+    ],
+  }],
+}
diff --git a/tizen_src/ewk/efl_integration/CMakeLists.txt b/tizen_src/ewk/efl_integration/CMakeLists.txt
deleted file mode 100644 (file)
index b04a08a..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-SET (EWK_API_LIBRARY_NAME "chromium-ewk")
-
-SET (EWK_API_PUBLIC_SOURCES
-  public/ewk_application_cache_manager.cc
-  public/ewk_auth_challenge.cc
-  public/ewk_auth_request.cc
-  public/ewk_autofill_profile.cc
-  public/ewk_back_forward_list.cc
-  public/ewk_back_forward_list_item.cc
-  public/ewk_certificate.cc
-  public/ewk_console_message.cc
-  public/ewk_content_screening_detection.cc
-  public/ewk_context.cc
-  public/ewk_context_menu.cc
-  public/ewk_cookie_manager.cc
-  public/ewk_custom_handlers.cc
-  public/ewk_dispatcher.cc
-  public/ewk_error.cc
-  public/ewk_favicon_database.cc
-  public/ewk_frame.cc
-  public/ewk_geolocation.cc
-  public/ewk_history.cc
-  public/ewk_hit_test.cc
-  public/ewk_intercept_request.cc
-  public/ewk_ipc_message.cc
-  public/ewk_main.cc
-  public/ewk_notification.cc
-  public/ewk_object.cc
-  public/ewk_page_group.cc
-  public/ewk_policy_decision.cc
-  public/ewk_popup_menu_item.cc
-  public/ewk_quota_permission_request.cc
-  public/ewk_security_origin.cc
-  public/ewk_settings.cc
-  public/ewk_storage_manager.cc
-  public/ewk_text_style.cc
-  public/ewk_user_media.cc
-  public/ewk_view.cc
-  public/ewk_web_application_icon_data.cc
-  public/ewk_window_features.cc
-)
-
-SET (EWK_API_PUBLIC_HEADERS
-  public/ewk_application_cache_manager.h
-  public/ewk_auth_challenge.h
-  public/ewk_auth_request.h
-  public/ewk_autofill_profile.h
-  public/ewk_back_forward_list.h
-  public/ewk_back_forward_list_item.h
-  public/ewk_certificate.h
-  public/ewk_chromium.h
-  public/ewk_console_message.h
-  public/ewk_content_screening_detection.h
-  public/ewk_context.h
-  public/ewk_context_menu.h
-  public/ewk_cookie_manager.h
-  public/ewk_custom_handlers.h
-  public/ewk_dispatcher.h
-  public/ewk_enums.h
-  public/ewk_error.h
-  public/ewk_export.h
-  public/ewk_favicon_database.h
-  public/ewk_frame.h
-  public/ewk_geolocation.h
-  public/ewk_history.h
-  public/ewk_hit_test.h
-  public/ewk_intercept_request.h
-  public/ewk_ipc_message.h
-  public/ewk_log.h
-  public/ewk_main.h
-  public/ewk_notification.h
-  public/ewk_object.h
-  public/ewk_page_group.h
-  public/ewk_policy_decision.h
-  public/ewk_popup_menu_item.h
-  public/ewk_quota_permission_request.h
-  public/ewk_security_origin.h
-  public/ewk_settings.h
-  public/ewk_storage_manager.h
-  public/ewk_text_style.h
-  public/ewk_touch.h
-  public/ewk_user_media.h
-  public/ewk_view.h
-  public/ewk_web_application_icon_data.h
-  public/ewk_window_features.h
-)
-
-SET (EWK_API_MISC
-  private/api_static_check.cc
-  private/chromium_glue.cc
-  private/chromium_glue.h
-  private/ewk_context_private.cc
-  private/ewk_context_private.h
-  private/ewk_hit_test_private.h
-  private/ewk_hit_test_private.cc
-  private/ewk_notification_private.h
-  private/ewk_notification_private.cc
-  private/ewk_policy_decision_private.cc
-  private/ewk_policy_decision_private.h
-  private/ewk_private.h
-  private/ewk_quota_permission_request_private.h
-  private/ewk_quota_permission_request_private.cc
-  private/ewk_security_origin_private.h
-  private/ewk_security_origin_private.cc
-  private/ewk_view_private.h
-  private/ewk_view_private.cc
-  private/ewk_wrt_private.h
-  private/ewk_wrt_private.cc
-  private/ewk_history_private.h
-  private/ewk_history_private.cc
-  private/webview_delegate_ewk.h
-  private/webview_delegate_ewk.cc
-  private/ewk_favicon_database_private.h
-  public/text_encoding_map_efl.cc
-  public/text_encoding_map_efl.h
-)
-
-INCLUDE_DIRECTORIES (
-  ${CMAKE_CURRENT_SOURCE_DIR}
-  ${CMAKE_CURRENT_SOURCE_DIR}/public
-  ${eina_INCLUDE_DIRS}
-  ${evas_INCLUDE_DIRS}
-  ${ecore_INCLUDE_DIRS}
-  ${edje_INCLUDE_DIRS}
-  ${ecore-evas_INCLUDE_DIRS}
-  ${ecore-imf_INCLUDE_DIRS}
-  ${chromium-efl_INCLUDE_DIRS}
-)
-
-ADD_LIBRARY (${EWK_API_LIBRARY_NAME} SHARED
-  ${EWK_API_PUBLIC_SOURCES}
-  ${EWK_API_PUBLIC_HEADERS}
-  ${EWK_API_MISC}
-)
-
-TARGET_LINK_LIBRARIES (
-  ${EWK_API_LIBRARY_NAME}
-  ${eina_LDFLAGS}
-  ${evas_LDFLAGS}
-  ${ecore_LDFLAGS}
-  ${edje_LDFLAGS}
-  ${ecore-evas_LDFLAGS}
-  ${ecore-imf_LDFLAGS}
-  ${chromium-efl_LDFLAGS}
-  chromium-ewk
-)
-
-INSTALL (FILES ${EWK_API_PUBLIC_HEADERS} DESTINATION ${INCLUDEDIR}/${PROJECT_NAME})
-INSTALL (FILES ${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/${PROJECT_NAME}.pc
-  DESTINATION ${LIBDIR}/pkgconfig)
-INSTALL (TARGETS ${EWK_API_LIBRARY_NAME} LIBRARY DESTINATION ${LIBDIR})
diff --git a/tizen_src/ewk/efl_webview_app/CMakeLists.txt b/tizen_src/ewk/efl_webview_app/CMakeLists.txt
deleted file mode 100644 (file)
index 222a973..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-SET (EFL_WEBVIEW_EXEC_NAME "efl_webview_app")
-SET (MINI_BROWSER_EXEC_NAME "mini_browser")
-SET (EFL_WEBVIEW_SH_DESKTOP_WRAPPER_NAME "efl_webview_app.sh")
-
-INCLUDE_DIRECTORIES (
-  ${CMAKE_SOURCE_DIR}/efl_integration
-  ${eina_INCLUDE_DIRS}
-  ${evas_INCLUDE_DIRS}
-  ${ecore_INCLUDE_DIRS}
-  ${ecore-x_INCLUDE_DIRS}
-  ${elementary_INCLUDE_DIRS}
-  ${appcore-efl_INCLUDE_DIRS}
-  ${dlog_INCLUDE_DIRS}
-  ${capi-appfw-application_INCLUDE_DIRS}
-  ${efl-assist_INCLUDE_DIRS}
-  ${haptic_INCLUDE_DIRS}
-)
-
-ADD_EXECUTABLE (${EFL_WEBVIEW_EXEC_NAME} app.c)
-
-TARGET_LINK_LIBRARIES (
-  ${EFL_WEBVIEW_EXEC_NAME}
-  ${eina_LDFLAGS}
-  ${evas_LDFLAGS}
-  ${ecore_LDFLAGS}
-  ${ecore-x_LDFLAGS}
-  ${elementary_LDFLAGS}
-  ${efl-assist_LDFLAGS}
-  ${haptic_LDFLAGS}
-  ${chromium-efl_LDFLAGS}
-  chromium-ewk
-)
-
-IF(${TARGET} STREQUAL "desktop")
-  MESSAGE(CMAKE_SOURCE_DIR: ${CMAKE_CURRENT_SOURCE_DIR})
-  ADD_CUSTOM_COMMAND(TARGET ${EFL_WEBVIEW_EXEC_NAME} POST_BUILD
-                  COMMAND ${CMAKE_COMMAND} -E copy
-                  ${CMAKE_CURRENT_SOURCE_DIR}/${EFL_WEBVIEW_SH_DESKTOP_WRAPPER_NAME} $<TARGET_FILE_DIR:${EFL_WEBVIEW_EXEC_NAME}>)
-ENDIF(${TARGET} STREQUAL "desktop")
-
-IF (appcore-efl_FOUND AND dlog_FOUND)
-  ADD_EXECUTABLE (${MINI_BROWSER_EXEC_NAME} mini_browser.c)
-  TARGET_LINK_LIBRARIES (
-    ${MINI_BROWSER_EXEC_NAME}
-    ${eina_LDFLAGS}
-    ${evas_LDFLAGS}
-    ${ecore_LDFLAGS}
-    ${ecore-x_LDFLAGS}
-    ${elementary_LDFLAGS}
-    ${appcore-efl_LDFLAGS}
-    ${dlog_LDFLAGS}
-    ${capi-appfw-application_LDFLAGS}
-    ${efl-assist_LDFLAGS}
-    ${haptic_LDFLAGS}
-    ${chromium-efl_LDFLAGS}
-    chromium-ewk
-  )
-  INSTALL (TARGETS ${MINI_BROWSER_EXEC_NAME} RUNTIME DESTINATION ${BINDIR})
-  INSTALL (FILES ${CMAKE_CURRENT_SOURCE_DIR}/mini-browser.png
-          DESTINATION ${DATADIR}/icons)
-  INSTALL (FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.tizen.chromium-ewk.xml
-          DESTINATION ${DATADIR}/packages)
-ENDIF ()
-
-INSTALL (TARGETS ${EFL_WEBVIEW_EXEC_NAME} RUNTIME DESTINATION ${BINDIR})
index 43651e9..9ee1d8a 100755 (executable)
@@ -20,8 +20,8 @@ if echo $SCRIPTDIR | grep -q "Debug/efl_webview_app"; then
   BUILD_MODE=Debug
 fi
 
-CHROMIUM_EFL_LIBDIR=$(cd $SCRIPTDIR/../../../chromium/${OUT_DIR}/$BUILD_MODE/lib; pwd -P)
-CHROMIUM_EFL_DEPENDENCIES_LIBDIR=$(cd $SCRIPTDIR/../../../chromium/$OUT_DIR/Dependencies/Root/$_LIBDIR; pwd -P)
+CHROMIUM_EFL_LIBDIR=$(cd $SCRIPTDIR/lib; pwd -P)
+CHROMIUM_EFL_DEPENDENCIES_LIBDIR=$(cd $SCRIPTDIR/../Dependencies/Root/$_LIBDIR; pwd -P)
 
 export LD_LIBRARY_PATH=$CHROMIUM_EFL_DEPENDENCIES_LIBDIR:$CHROMIUM_EFL_LIBDIR:${LD_LIBRARY_PATH}
 echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}"
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns="http://tizen.org/ns/packages" package="org.tizen.chromium-ewk" version="34.1847.76.35">
-    <label> mini browser application for chromium-ewk package </label>
+    <label> mini browser application for chromium-efl package </label>
     <author href="www.samsung.com" email="sns.park@samsung.com">SWC</author>
     <description> mini browser application based on chromium-efl </description>
-    <ui-application appid="org.tizen.chromium-ewk" exec="/usr/bin/mini_browser" nodisplay="false" multiple="false" type="capp" taskmanage="true">
+    <ui-application appid="org.tizen.chromium-efl" exec="/usr/bin/mini_browser" nodisplay="false" multiple="false" type="capp" taskmanage="true">
         <icon>/usr/share/icons/mini-browser.png</icon>
         <label>Chromium-efl MiniBrowser</label>
         <label xml:lang="en-us">Chromium-efl MiniBrowser</label>
diff --git a/tizen_src/ewk/packaging/S_TRUNK_OWNERS b/tizen_src/ewk/packaging/S_TRUNK_OWNERS
deleted file mode 100644 (file)
index 17d3e34..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-djmix.kim@samsung.com
-j.majnert@samsung.com
-p.grad@samsung.com
-t.olszak@samsung.com
-youngbok.yoon@samsung.com
diff --git a/tizen_src/ewk/packaging/chromium-ewk.spec b/tizen_src/ewk/packaging/chromium-ewk.spec
deleted file mode 100755 (executable)
index c2d2892..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-Name: org.tizen.chromium-ewk
-Summary: EWK Api based on Chromium EFL
-%define ChromiumVersion 34.1847.76
-%define Week 35
-Version: %{ChromiumVersion}.%{Week}
-Release: 1
-Group: Applications/Internet
-License: LGPLv2.1 or BSD
-Source0: %{name}-%{version}.tar.gz
-Source1: org.tizen.chromium-ewk.manifest
-
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
-
-BuildRequires: cmake
-BuildRequires: pkgconfig(glesv2)
-BuildRequires: pkgconfig(evas)
-BuildRequires: pkgconfig(ecore)
-BuildRequires: pkgconfig(ecore-x)
-BuildRequires: pkgconfig(edje)
-BuildRequires: pkgconfig(eina)
-BuildRequires: pkgconfig(elementary)
-BuildRequires: pkgconfig(ecore-evas)
-BuildRequires: pkgconfig(ecore-imf)
-BuildRequires: pkgconfig(appcore-efl)
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(capi-appfw-application)
-BuildRequires: pkgconfig(libdri2)
-BuildRequires: pkgconfig(libtbm)
-BuildRequires: pkgconfig(x11)
-BuildRequires: pkgconfig(chromium-efl)
-%if %{!?TIZEN_PROFILE_TV:1}%{?TIZEN_PROFILE_TV:0}
-BuildRequires: pkgconfig(haptic)
-BuildRequires: pkgconfig(efl-assist)
-%endif
-%if 0%{?build_ewk_unittest}
-BuildRequires: glib2
-BuildRequires: glib2-devel
-BuildRequires: efl-assist
-BuildRequires: efl-assist-devel
-BuildRequires: edje
-BuildRequires: edje-devel
-BuildRequires: elementary
-BuildRequires: elementary-devel
-BuildRequires: cmake
-BuildRequires: gtest
-BuildRequires: gtest-devel
-BuildRequires: isf
-BuildRequires: isf-devel
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(isf)
-%endif
-
-
-%description
-EFL API for embedding chromium-efl blink engine port.
-
-%package devel
-Summary: Chromium EWK
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-%description devel
-EFL API for embedding chromium-efl blink engine port. (developement files)
-
-%if 0%{?build_ewk_unittest}
-%package unittest
-Summary: Chromium EWK unittests
-Group: Development/UnitTests
-Requires: %{name} = %{version}-%{release}
-%description unittest
-Chromium EFL unit test utilities
-%endif
-
-%prep
-%setup -q
-
-%build
-
-export CMAKE_EXTRA_ARGS="-DBINDIR=%{_bindir} -DLIBDIR=%{_libdir} \
-                         -DDATADIR=%{_datadir} -DINCLUDEDIR=%{_includedir}
-                         "
-# architecture related configuration + neon temporary workaround
-%ifarch %{arm}
-  export CFLAGS="$(echo $CFLAGS | sed 's/-mfpu=[a-zA-Z0-9-]*/-mfpu=neon/g')"
-  export CXXFLAGS="$(echo $CXXFLAGS | sed 's/-mfpu=[a-zA-Z0-9-]*/-mfpu=neon/g')"
-  export FFLAGS="$(echo $FFLAGS | sed 's/-mfpu=[a-zA-Z0-9-]*/-mfpu=neon/g')"
-%endif
-
-%if %{!?TIZEN_PROFILE_TV:1}%{?TIZEN_PROFILE_TV:0}
-%define OUTPUT_BUILD_PROFILE_TARGET mobile
-%else
-%define OUTPUT_BUILD_PROFILE_TARGET tv
-%endif
-
-%if 0%{?build_ewk_unittest}
-  export CMAKE_EXTRA_ARGS+="-DBUILD_EWK_UNITTEST=1"
-%endif
-
-%if 0%{?_debug_mode}
-%global OUTPUT_FOLDER out.%{OUTPUT_BUILD_PROFILE_TARGET}.${RPM_ARCH}/Debug
-BUILD_TYPE=debug
-%else
-%global OUTPUT_FOLDER out.%{OUTPUT_BUILD_PROFILE_TARGET}.${RPM_ARCH}/Release
-BUILD_TYPE=release
-%endif
-
-build/build.sh %{OUTPUT_BUILD_PROFILE_TARGET} ${BUILD_TYPE}
-
-make %{_smp_mflags} -C "%{OUTPUT_FOLDER}"
-
-%install
-make -C "%{OUTPUT_FOLDER}" DESTDIR="%{buildroot}" install
-
-install -d "%{buildroot}/%{_sysconfdir}"/smack/accesses2.d/
-install -m 0644 %{SOURCE1} "%{buildroot}/usr/share"
-
-%if 0%{?build_ewk_unittest}
-mkdir -p %{buildroot}/opt/usr/resources/
-mkdir -p %{buildroot}/opt/usr/utc_exec/
-cp -r unittest/resources/* %{buildroot}/opt/usr/resources/
-cp "%{OUTPUT_FOLDER}"/utc_exec/* %{buildroot}/opt/usr/utc_exec/
-cp utc_gtest_run.sh %{buildroot}/opt/usr/utc_exec/
-chmod +x %{buildroot}/opt/usr/utc_exec/utc_gtest_run.sh
-%endif
-
-%post
-# apply smack rule
-smack_reload.sh
-
-%postun
-
-%files
-%manifest /usr/share/org.tizen.chromium-ewk.manifest
-%defattr(-,root,root,-)
-%{_libdir}/libchromium-ewk.so
-%{_bindir}/efl_webview_app
-%{_bindir}/mini_browser
-%{_datadir}/packages/%{name}.xml
-%{_datadir}/icons/mini-browser.png
-
-%files devel
-%defattr(644,root,root,-)
-%{_includedir}/chromium-ewk/*.h
-%{_libdir}/pkgconfig/*.pc
-
-%if 0%{?build_ewk_unittest}
-%files unittest
-%defattr(-,root,root,-)
-%manifest org.tizen.chromium-ewktest.manifest
-/opt/usr/utc_exec/*
-/opt/usr/resources/*
-%endif
diff --git a/tizen_src/ewk/packaging/org.tizen.chromium-ewk.manifest b/tizen_src/ewk/packaging/org.tizen.chromium-ewk.manifest
deleted file mode 100644 (file)
index 121b2c6..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<manifest>
-  <assign>
-    <filesystem path="/usr/lib/libchromium-ewk.so" label="_" />
-    <filesystem path="/usr/share/icons/mini-browser.png" label="_" />
-    <filesystem path="/usr/bin/efl_webview_app" label="chromium-efl" exec_label="chromium-efl"/>
-    <filesystem path="/usr/bin/mini_browser" label="chromium-efl" exec_label="chromium-efl"/>
-  </assign>
-  <request>
-    <domain name="chromium-efl"/>
-  </request>
-</manifest>
diff --git a/tizen_src/ewk/unittest/CMakeLists.txt b/tizen_src/ewk/unittest/CMakeLists.txt
deleted file mode 100755 (executable)
index 63be95a..0000000
+++ /dev/null
@@ -1,389 +0,0 @@
-cmake_minimum_required(VERSION 2.6)
-
-project(utc_blink_ewk_gtest)
-INCLUDE(FindPkgConfig)
-enable_testing()
-find_package (Threads)
-
-set(LIBRARY_OUTPUT_PATH ../lib)
-set(EXECUTABLE_OUTPUT_PATH ../utc_exec)
-
-SET (UTC_TEST
-  "utc_blink_ewk_auth_challenge_credential_cancel_func.cpp"
-  "utc_blink_ewk_auth_challenge_credential_use_func.cpp"
-  "utc_blink_ewk_auth_challenge_realm_get_func.cpp"
-  "utc_blink_ewk_auth_challenge_suspend_func.cpp"
-  "utc_blink_ewk_autofill_profile_data_get_func.cpp"
-  "utc_blink_ewk_autofill_profile_data_set_func.cpp"
-  "utc_blink_ewk_autofill_profile_delete_func.cpp"
-  "utc_blink_ewk_autofill_profile_id_get_func.cpp"
-  "utc_blink_ewk_autofill_profile_new_func.cpp"
-  "utc_blink_ewk_certificate_policy_decision_allowed_set_func.cpp"
-  "utc_blink_ewk_certificate_policy_decision_certificate_pem_get_func.cpp"
-  "utc_blink_ewk_certificate_policy_decision_suspend_func.cpp"
-  "utc_blink_ewk_certificate_policy_decision_url_get_func.cpp"
-  "utc_blink_ewk_console_message_level_get_func.cpp"
-  "utc_blink_ewk_console_message_line_get_func.cpp"
-  "utc_blink_ewk_console_message_source_get_func.cpp"
-  "utc_blink_ewk_console_message_text_get_func.cpp"
-  "utc_blink_ewk_context_additional_plugin_path_set_func.cpp"
-  "utc_blink_ewk_context_application_cache_delete_all_func.cpp"
-  "utc_blink_ewk_context_application_cache_delete_func.cpp"
-  "utc_blink_ewk_context_application_cache_origins_get_func.cpp"
-  "utc_blink_ewk_context_cache_clear_func.cpp"
-  "utc_blink_ewk_context_cache_disabled_set_func.cpp"
-  "utc_blink_ewk_context_cache_model_get_func.cpp"
-  "utc_blink_ewk_context_cache_model_set_func.cpp"
-  "utc_blink_ewk_context_certificate_file_get_func.cpp"
-  "utc_blink_ewk_context_certificate_file_set_func.cpp"
-  "utc_blink_ewk_context_cookie_manager_get_func.cpp"
-  "utc_blink_ewk_context_default_get_func.cpp"
-  "utc_blink_ewk_context_delete_func.cpp"
-  "utc_blink_ewk_context_did_start_download_callback_set_func.cpp"
-  "utc_blink_ewk_context_form_autofill_profile_add_func.cpp"
-  "utc_blink_ewk_context_form_autofill_profile_get_func.cpp"
-  "utc_blink_ewk_context_form_autofill_profile_get_all_func.cpp"
-  "utc_blink_ewk_context_form_autofill_profile_remove_func.cpp"
-  "utc_blink_ewk_context_form_autofill_profile_set_func.cpp"
-  "utc_blink_ewk_context_form_candidate_data_clear_func.cpp"
-  "utc_blink_ewk_context_form_password_data_clear_func.cpp"
-  "utc_blink_ewk_context_icon_database_icon_object_add_func.cpp"
-  "utc_blink_ewk_context_icon_database_path_set_func.cpp"
-  "utc_blink_ewk_context_local_file_system_all_delete_func.cpp"
-  "utc_blink_ewk_context_local_file_system_delete_func.cpp"
-  "utc_blink_ewk_context_menu_item_append_as_action_func.cpp"
-  "utc_blink_ewk_context_menu_item_append_func.cpp"
-  "utc_blink_ewk_context_menu_item_count_func.cpp"
-  "utc_blink_ewk_context_menu_item_link_url_get_func.cpp"
-  "utc_blink_ewk_context_menu_item_remove_func.cpp"
-  "utc_blink_ewk_context_menu_item_tag_get_func.cpp"
-  "utc_blink_ewk_context_menu_item_image_url_get_func.cpp"
-  "utc_blink_ewk_context_menu_nth_item_get_func.cpp"
-  "utc_blink_ewk_context_memory_sampler_start_func.cpp"
-  "utc_blink_ewk_context_memory_sampler_stop_func.cpp"
-  "utc_blink_ewk_context_new_func.cpp"
-  "utc_blink_ewk_context_notify_low_memory_func.cpp"
-  "utc_blink_ewk_context_pixmap_set_func.cpp"
-  "utc_blink_ewk_context_proxy_uri_get_func.cpp"
-  "utc_blink_ewk_context_proxy_uri_set_func.cpp"
-  "utc_blink_ewk_context_vibration_client_callbacks_set_func.cpp"
-  "utc_blink_ewk_context_web_database_delete_all_func.cpp"
-  "utc_blink_ewk_context_web_database_delete_func.cpp"
-  "utc_blink_ewk_context_web_database_origins_get_func.cpp"
-  "utc_blink_ewk_context_web_indexed_database_delete_all_func.cpp"
-  "utc_blink_ewk_context_web_storage_delete_all_func.cpp"
-  "utc_blink_ewk_context_web_storage_origin_delete_func.cpp"
-  "utc_blink_ewk_context_web_storage_origins_get_func.cpp"
-  "utc_blink_ewk_cookie_manager_accept_policy_set_func.cpp"
-  "utc_blink_ewk_cookie_manager_async_accept_policy_get_func.cpp"
-  "utc_blink_ewk_cookie_manager_cookies_clear_func.cpp"
-  "utc_blink_ewk_custom_handlers_data_base_url_get_func.cpp"
-  "utc_blink_ewk_custom_handlers_data_result_set_func.cpp"
-  "utc_blink_ewk_custom_handlers_data_target_get_func.cpp"
-  "utc_blink_ewk_custom_handlers_data_title_get_func.cpp"
-  "utc_blink_ewk_custom_handlers_data_url_get_func.cpp"
-  "utc_blink_ewk_error_code_get_func.cpp"
-  "utc_blink_ewk_error_description_get_func.cpp"
-  "utc_blink_ewk_error_type_get_func.cpp"
-  "utc_blink_ewk_error_url_get_func.cpp"
-  "utc_blink_ewk_frame_is_main_frame_func.cpp"
-  "utc_blink_ewk_geolocation_permission_request_origin_get_func.cpp"
-  "utc_blink_ewk_geolocation_permission_request_set_func.cpp"
-  "utc_blink_ewk_geolocation_permission_request_suspend_func.cpp"
-  "utc_blink_ewk_history_back_list_length_get_func.cpp"
-  "utc_blink_ewk_history_forward_list_length_get.cpp"
-  "utc_blink_ewk_history_free_func.cpp"
-  "utc_blink_ewk_history_item_title_get_func.cpp"
-  "utc_blink_ewk_history_item_uri_get_func.cpp"
-  "utc_blink_ewk_history_nth_item_get.cpp"
-  "utc_blink_ewk_hit_test_attribute_hash_get_func.cpp"
-  "utc_blink_ewk_hit_test_free_func.cpp"
-  "utc_blink_ewk_hit_test_image_buffer_get_func.cpp"
-  "utc_blink_ewk_hit_test_image_buffer_length_get_func.cpp"
-  "utc_blink_ewk_hit_test_image_file_name_extension_get_func.cpp"
-  "utc_blink_ewk_hit_test_image_uri_get_func.cpp"
-  "utc_blink_ewk_hit_test_link_label_get_func.cpp"
-  "utc_blink_ewk_hit_test_link_title_get_func.cpp"
-  "utc_blink_ewk_hit_test_link_uri_get_func.cpp"
-  "utc_blink_ewk_hit_test_media_uri_get_func.cpp"
-  "utc_blink_ewk_hit_test_node_value_get_func.cpp"
-  "utc_blink_ewk_hit_test_result_context_get_func.cpp"
-  "utc_blink_ewk_hit_test_tag_name_get_func.cpp"
-  "utc_blink_ewk_init_func.cpp"
-  "utc_blink_ewk_notification_body_get_func.cpp"
-  "utc_blink_ewk_notification_clicked_func.cpp"
-  "utc_blink_ewk_notification_icon_url_get_func.cpp"
-  "utc_blink_ewk_notification_id_get_func.cpp"
-  "utc_blink_ewk_notification_permission_request_origin_get_func.cpp"
-  "utc_blink_ewk_notification_permission_request_set_func.cpp"
-  "utc_blink_ewk_notification_permission_request_suspend_func.cpp"
-  "utc_blink_ewk_notification_security_origin_get_func.cpp"
-  "utc_blink_ewk_notification_showed_func.cpp"
-  "utc_blink_ewk_notification_title_get_func.cpp"
-  "utc_blink_ewk_policy_decision_cookie_get_func.cpp"
-  "utc_blink_ewk_policy_decision_frame_get_func.cpp"
-  "utc_blink_ewk_policy_decision_host_get_func.cpp"
-  "utc_blink_ewk_policy_decision_http_method_get_func.cpp"
-  "utc_blink_ewk_policy_decision_ignore_func.cpp"
-  "utc_blink_ewk_policy_decision_navigation_type_get_func.cpp"
-  "utc_blink_ewk_policy_decision_password_get_func.cpp"
-  "utc_blink_ewk_policy_decision_response_headers_get_func.cpp"
-  "utc_blink_ewk_policy_decision_response_mime_get_func.cpp"
-  "utc_blink_ewk_policy_decision_response_status_code_get_func.cpp"
-  "utc_blink_ewk_policy_decision_scheme_get_func.cpp"
-  "utc_blink_ewk_policy_decision_suspend_func.cpp"
-  "utc_blink_ewk_policy_decision_type_get_func.cpp"
-  "utc_blink_ewk_policy_decision_url_get_func.cpp"
-  "utc_blink_ewk_policy_decision_use_func.cpp"
-  "utc_blink_ewk_policy_decision_userid_get_func.cpp"
-  "utc_blink_ewk_quota_permission_request_is_persistent_get_func.cpp"
-  "utc_blink_ewk_quota_permission_request_origin_host_get_func.cpp"
-  "utc_blink_ewk_quota_permission_request_origin_port_get_func.cpp"
-  "utc_blink_ewk_quota_permission_request_origin_protocol_get_func.cpp"
-  "utc_blink_ewk_quota_permission_request_quota_get_func.cpp"
-  "utc_blink_ewk_security_origin_host_get_func.cpp"
-  "utc_blink_ewk_security_origin_port_get_func.cpp"
-  "utc_blink_ewk_security_origin_protocol_get_func.cpp"
-  "utc_blink_ewk_set_arguments_func.cpp"
-  "utc_blink_ewk_settings_auto_fitting_get_func.cpp"
-  "utc_blink_ewk_settings_auto_fitting_set_func.cpp"
-  "utc_blink_ewk_settings_autofill_password_form_enabled_get_func.cpp"
-  "utc_blink_ewk_settings_autofill_password_form_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_clear_text_selection_automatically_set_func.cpp"
-  "utc_blink_ewk_settings_current_legacy_font_size_mode_set_func.cpp"
-  "utc_blink_ewk_settings_default_encoding_set_func.cpp"
-  "utc_blink_ewk_settings_default_keypad_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_detect_contents_automatically_set_func.cpp"
-  "utc_blink_ewk_settings_edge_effect_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_editable_link_behavior_set_func.cpp"
-  "utc_blink_ewk_settings_extra_feature_set_func.cpp"
-  "utc_blink_ewk_settings_font_default_size_get_func.cpp"
-  "utc_blink_ewk_settings_font_default_size_set_func.cpp"
-  "utc_blink_ewk_settings_force_zoom_set_func.cpp"
-  "utc_blink_ewk_settings_form_candidate_data_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_form_profile_data_enabled_get_func.cpp"
-  "utc_blink_ewk_settings_form_profile_data_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_initial_list_style_position_get_func.cpp"
-  "utc_blink_ewk_settings_initial_list_style_position_set_func.cpp"
-  "utc_blink_ewk_settings_is_encoding_valid_func.cpp"
-  "utc_blink_ewk_settings_javascript_enabled_get_func.cpp"
-  "utc_blink_ewk_settings_javascript_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_link_effect_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_link_magnifier_enabled_get_func.cpp"
-  "utc_blink_ewk_settings_link_magnifier_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_load_remote_images_set_func.cpp"
-  "utc_blink_ewk_settings_loads_images_automatically_set_func.cpp"
-  "utc_blink_ewk_settings_paste_image_uri_mode_set_func.cpp"
-  "utc_blink_ewk_settings_plugins_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_scripts_window_open_set_func.cpp"
-  "utc_blink_ewk_settings_select_word_automatically_set_func.cpp"
-  "utc_blink_ewk_settings_spdy_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_text_autosizing_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_text_autosizing_font_scale_factor_set_func.cpp"
-  "utc_blink_ewk_settings_text_selection_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_text_style_state_enabled_func.cpp"
-  "utc_blink_ewk_settings_text_zoom_enabled_set_func.cpp"
-  "utc_blink_ewk_settings_uses_encoding_detector_set_func.cpp"
-  "utc_blink_ewk_settings_uses_keypad_without_user_action_set_func.cpp"
-  "utc_blink_ewk_shutdown_func.cpp"
-  "utc_blink_ewk_text_style_align_center_get_func.cpp"
-  "utc_blink_ewk_text_style_align_full_get_func.cpp"
-  "utc_blink_ewk_text_style_align_left_get_func.cpp"
-  "utc_blink_ewk_text_style_align_right_get_func.cpp"
-  "utc_blink_ewk_text_style_bg_color_get_func.cpp"
-  "utc_blink_ewk_text_style_bold_get_func.cpp"
-  "utc_blink_ewk_text_style_color_get_func.cpp"
-  "utc_blink_ewk_text_style_font_size_get_func.cpp"
-  "utc_blink_ewk_text_style_has_composition_get_func.cpp"
-  "utc_blink_ewk_text_style_italic_get_func.cpp"
-  "utc_blink_ewk_text_style_ordered_list_get_func.cpp"
-  "utc_blink_ewk_text_style_position_get_func.cpp"
-  "utc_blink_ewk_text_style_underline_get_func.cpp"
-  "utc_blink_ewk_text_style_unordered_list_get_func.cpp"
-  "utc_blink_ewk_user_media_permission_request_set_func.cpp"
-  "utc_blink_ewk_user_media_permission_request_suspend_func.cpp"
-  "utc_blink_ewk_view_add_func.cpp"
-  "utc_blink_ewk_view_add_with_context_func.cpp"
-  "utc_blink_ewk_view_add_with_session_data_func.cpp"
-  "utc_blink_ewk_view_app_name_user_agent_get_func.cpp"
-  "utc_blink_ewk_view_app_name_user_agent_set_func.cpp"
-  "utc_blink_ewk_view_back_forward_list_clear_func.cpp"
-  "utc_blink_ewk_view_back_func.cpp"
-  "utc_blink_ewk_view_back_possible_func.cpp"
-  "utc_blink_ewk_view_browser_font_set_func.cpp"
-  "utc_blink_ewk_view_command_execute_func.cpp"
-  "utc_blink_ewk_view_content_security_policy_set_func.cpp"
-  "utc_blink_ewk_view_contents_pdf_get_func.cpp"
-  "utc_blink_ewk_view_contents_set_func.cpp"
-  "utc_blink_ewk_view_contents_size_get_func.cpp"
-  "utc_blink_ewk_view_context_get_func.cpp"
-  "utc_blink_ewk_view_custom_header_add_func.cpp"
-  "utc_blink_ewk_view_custom_header_remove_func.cpp"
-  "utc_blink_ewk_view_draws_transparent_background_set_func.cpp"
-  "utc_blink_ewk_view_encoding_custom_set_func.cpp"
-  "utc_blink_ewk_view_forward_func.cpp"
-  "utc_blink_ewk_view_forward_possible_func.cpp"
-  "utc_blink_ewk_view_fullscreen_exit_func.cpp"
-  "utc_blink_ewk_view_get_cookies_for_url_func.cpp"
-  "utc_blink_ewk_view_history_get_func.cpp"
-  "utc_blink_ewk_view_hit_test_new_func.cpp"
-  "utc_blink_ewk_view_hit_test_request_func.cpp"
-  "utc_blink_ewk_view_html_contents_set_func.cpp"
-  "utc_blink_ewk_view_inspector_server_stop_func.cpp"
-  "utc_blink_ewk_view_javascript_confirm_reply_func.cpp"
-  "utc_blink_ewk_view_load_progress_get_func.cpp"
-  "utc_blink_ewk_view_mhtml_data_get_func.cpp"
-  "utc_blink_ewk_view_notification_closed_func.cpp"
-  "utc_blink_ewk_view_orientation_lock_callback_set_func.cpp"
-  "utc_blink_ewk_view_orientation_send_func.cpp"
-  "utc_blink_ewk_view_page_visibility_state_set_func.cpp"
-  "utc_blink_ewk_view_plain_text_get_func.cpp"
-  "utc_blink_ewk_view_quota_permission_request_callback_set_func.cpp"
-  "utc_blink_ewk_view_quota_permission_request_cancel_func.cpp"
-  "utc_blink_ewk_view_quota_permission_request_reply_func.cpp"
-  "utc_blink_ewk_view_reload_func.cpp"
-  "utc_blink_ewk_view_resume_func.cpp"
-  "utc_blink_ewk_view_scale_get_func.cpp"
-  "utc_blink_ewk_view_scale_range_get_func.cpp"
-  "utc_blink_ewk_view_scale_set_func.cpp"
-  "utc_blink_ewk_view_screenshot_contents_get_func.cpp"
-  "utc_blink_ewk_view_script_execute_func.cpp"
-  "utc_blink_ewk_view_scroll_by_func.cpp"
-  "utc_blink_ewk_view_scroll_pos_get_func.cpp"
-  "utc_blink_ewk_view_scroll_set_func.cpp"
-  "utc_blink_ewk_view_scroll_size_get_func.cpp"
-  "utc_blink_ewk_view_session_data_get_func.cpp"
-  "utc_blink_ewk_view_settings_get_func.cpp"
-  "utc_blink_ewk_view_stop_func.cpp"
-  "utc_blink_ewk_view_suspend_func.cpp"
-  "utc_blink_ewk_view_text_find_func.cpp"
-  "utc_blink_ewk_view_text_find_highlight_clear_func.cpp"
-  "utc_blink_ewk_view_text_selection_clear_func.cpp"
-  "utc_blink_ewk_view_text_selection_text_get_func.cpp"
-  "utc_blink_ewk_view_text_zoom_get_func.cpp"
-  "utc_blink_ewk_view_text_zoom_set_func.cpp"
-  "utc_blink_ewk_view_title_get_func.cpp"
-  "utc_blink_ewk_view_touch_events_enabled_set_func.cpp"
-  "utc_blink_ewk_view_url_get_func.cpp"
-  "utc_blink_ewk_view_url_request_set_func.cpp"
-  "utc_blink_ewk_view_url_set_func.cpp"
-  "utc_blink_ewk_view_use_settings_font_func.cpp"
-  "utc_blink_ewk_view_user_agent_get_func.cpp"
-  "utc_blink_ewk_view_user_agent_set_func.cpp"
-  "utc_blink_ewk_view_visibility_set_func.cpp"
-  "utc_blink_ewk_view_web_application_capable_get_func.cpp"
-  "utc_blink_ewk_view_web_application_icon_url_get_func.cpp"
-  "utc_blink_ewk_view_web_application_icon_urls_get_func.cpp"
-  "utc_blink_ewk_web_application_icon_data_url_get_func.cpp"
-  "utc_blink_cb_contextmenu_willshow.cpp"
-  "utc_blink_cb_contextmenu_allowed.cpp"
-  "utc_blink_cb_editorclient_candidate_closed.cpp"
-  "utc_blink_cb_editorclient_candidate_opened.cpp"
-  "utc_blink_cb_editorclient_ime_closed.cpp"
-  "utc_blink_cb_editorclient_ime_opened.cpp"
-  "utc_blink_cb_form_submit.cpp"
-  "utc_blink_cb_fullscreen_exitfullscreen.cpp"
-  "utc_blink_cb_fullscreen_enterfullscreen.cpp"
-  "utc_blink_cb_geolocation_valid.cpp"
-  "utc_blink_cb_icon_received.cpp"
-  "utc_blink_cb_inputmethod_changed.cpp"
-  "utc_blink_cb_load_finished.cpp"
-  "utc_blink_cb_load_progress_finished.cpp"
-  "utc_blink_cb_load_progress_started.cpp"
-  "utc_blink_cb_load_progress.cpp"
-  "utc_blink_cb_load_started.cpp"
-  "utc_blink_cb_magnifier_hide.cpp"
-  "utc_blink_cb_magnifier_show.cpp"
-  "utc_blink_cb_popup_blocked.cpp"
-  "utc_blink_cb_protocolhandler_registration_requested.cpp"
-  "utc_blink_cb_protocolhandler_unregistration_requested.cpp"
-  "utc_blink_cb_protocolhandler_isregistered.cpp"
-  "utc_blink_cb_redo_size.cpp"
-  "utc_blink_cb_textselection_mode.cpp"
-  "utc_blink_cb_title_changed.cpp"
-  "utc_blink_cb_undo_size.cpp"
-  "utc_blink_cb_unfocus_direction.cpp"
-  "utc_blink_cb_uri_changed.cpp"
-  "utc_blink_cb_url_changed.cpp"
-  )
-
-
-MESSAGE(STATUS "<<<<<<< ${PROJECT_NAME} >>>>>>>")
-
-pkg_check_modules(Ecore-Evas REQUIRED ecore-evas)
-pkg_check_modules(Elementary REQUIRED elementary)
-pkg_check_modules(Edej REQUIRED edje)
-pkg_check_modules(Gobect REQUIRED gobject-2.0)
-pkg_check_modules(Ecore REQUIRED ecore)
-pkg_check_modules(Ecore_X REQUIRED ecore-x)
-pkg_check_modules(Eina REQUIRED eina)
-pkg_check_modules(Evas REQUIRED evas)
-pkg_check_modules(Dlog REQUIRED dlog)
-pkg_check_modules(Glib REQUIRED glib-2.0)
-pkg_check_modules(X11 REQUIRED x11)
-pkg_check_modules(Scim REQUIRED isf)
-
-include_directories(
-    ${Edej_INCLUDE_DIRS}
-    ${Ecore-Evas_INCLUDE_DIRS}
-    ${Elementary_INCLUDE_DIRS}
-    ${Gobect_INCLUDE_DIRS}
-    ${Ecore_INCLUDE_DIRS}
-    ${Ecore_X_INCLUDE_DIRS}
-    ${Eina_INCLUDE_DIRS}
-    ${Evas_INCLUDE_DIRS}
-    ${Dlog_INCLUDE_DIRS}
-    ${Glib_INCLUDE_DIRS}
-    ${Scim_INCLUDE_DIRS}
-    ${X11_INCLUDE_DIRS}
-    ${CMAKE_CURRENT_SOURCE_DIR}/../efl_integration/public
-    )
-link_directories(
-    ${Edej_LIBRARY_DIRS}
-    ${Ecore-Evas_LIBRARY_DIRS}
-    ${Elementary_LIBRARY_DIRS}
-    ${Gobect_LIBRARY_DIRS}
-    ${Ecore_LIBRARY_DIRS}
-    ${Ecore_X_LIBRARY_DIRS}
-    ${Eina_LIBRARY_DIRS}
-    ${Evas_LIBRARY_DIRS}
-    ${Dlog_LIBRARY_DIRS}
-    ${Glib_LIBRARY_DIRS}
-    ${Scim_LIBRARY_DIRS}
-    ${X11_LIBRARY_DIRS}
-    )
-
-ADD_LIBRARY(utcLib STATIC
-  "execute_utc_blink.cpp"
-  "utc_blink_ewk_base.cpp"
-  )
-
-ADD_DEFINITIONS(-DOS_TIZEN)
-
-foreach(test ${UTC_TEST})
-  get_filename_component(TName ${test} NAME_WE)
-  add_executable (${TName}
-    ${test}
-    )
-  target_link_libraries(
-    ${TName}
-    ${Edej_LIBRARIES}
-    ${Ecore-Evas_LIBRARIES}
-    ${Elementary_LIBRARIES}
-    chromium-ewk
-    ${Gobect_LIBRARIES}
-    ${Ecore_LIBRARIES}
-    ${Ecore_X_LIBRARIES}
-    ${Eina_LIBRARIES}
-    ${Evas_LIBRARIES}
-    ${Dlog_LIBRARIES}
-    ${Glib_LIBRARIES}
-    ${Scim_LIBRARIES}
-    ${X11_LIBRARIES}
-    gtest
-    pthread
-    utcLib
-    )
-endforeach(test)
-
-
diff --git a/tizen_src/ewk/unittest/ewk-tests.gypi b/tizen_src/ewk/unittest/ewk-tests.gypi
new file mode 100644 (file)
index 0000000..ad78afc
--- /dev/null
@@ -0,0 +1,352 @@
+{
+  'targets': [{
+    'target_name': 'ewk_unittests',
+    'type': '<(gtest_target_type)',
+    'dependencies': [
+      '<(chrome_src_dir)/testing/gtest.gyp:gtest',
+      'chromium-ewk',
+    ],
+    'include_dirs': [
+      '../efl_integration/public',
+    ],
+    'sources': [
+        'execute_utc_blink.cpp',
+        'utc_blink_cb_contextmenu_allowed.cpp',
+        'utc_blink_cb_contextmenu_willshow.cpp',
+        'utc_blink_cb_editorclient_candidate_closed.cpp',
+        'utc_blink_cb_editorclient_candidate_opened.cpp',
+        'utc_blink_cb_editorclient_ime_closed.cpp',
+        'utc_blink_cb_editorclient_ime_opened.cpp',
+        'utc_blink_cb_form_submit.cpp',
+        'utc_blink_cb_fullscreen_enterfullscreen.cpp',
+        'utc_blink_cb_fullscreen_exitfullscreen.cpp',
+        'utc_blink_cb_geolocation_valid.cpp',
+        'utc_blink_cb_icon_received.cpp',
+        'utc_blink_cb_inputmethod_changed.cpp',
+        'utc_blink_cb_load_finished.cpp',
+        'utc_blink_cb_load_progress.cpp',
+        'utc_blink_cb_load_progress_finished.cpp',
+        'utc_blink_cb_load_progress_started.cpp',
+        'utc_blink_cb_load_started.cpp',
+        'utc_blink_cb_magnifier_hide.cpp',
+        'utc_blink_cb_magnifier_show.cpp',
+        'utc_blink_cb_popup_blocked.cpp',
+        'utc_blink_cb_protocolhandler_isregistered.cpp',
+        'utc_blink_cb_protocolhandler_registration_requested.cpp',
+        'utc_blink_cb_protocolhandler_unregistration_requested.cpp',
+        'utc_blink_cb_redo_size.cpp',
+        'utc_blink_cb_textselection_mode.cpp',
+        'utc_blink_cb_title_changed.cpp',
+        'utc_blink_cb_undo_size.cpp',
+        'utc_blink_cb_unfocus_direction.cpp',
+        'utc_blink_cb_uri_changed.cpp',
+        'utc_blink_cb_url_changed.cpp',
+        'utc_blink_ewk_auth_challenge_credential_cancel_func.cpp',
+        'utc_blink_ewk_auth_challenge_credential_use_func.cpp',
+        'utc_blink_ewk_auth_challenge_realm_get_func.cpp',
+        'utc_blink_ewk_auth_challenge_suspend_func.cpp',
+        'utc_blink_ewk_autofill_profile_data_get_func.cpp',
+        'utc_blink_ewk_autofill_profile_data_set_func.cpp',
+        'utc_blink_ewk_autofill_profile_delete_func.cpp',
+        'utc_blink_ewk_autofill_profile_id_get_func.cpp',
+        'utc_blink_ewk_autofill_profile_new_func.cpp',
+        'utc_blink_ewk_base.cpp',
+        'utc_blink_ewk_base.h',
+        'utc_blink_ewk_certificate_policy_decision_allowed_set_func.cpp',
+        'utc_blink_ewk_certificate_policy_decision_certificate_pem_get_func.cpp',
+        'utc_blink_ewk_certificate_policy_decision_suspend_func.cpp',
+        'utc_blink_ewk_certificate_policy_decision_url_get_func.cpp',
+        'utc_blink_ewk_console_message_level_get_func.cpp',
+        'utc_blink_ewk_console_message_line_get_func.cpp',
+        'utc_blink_ewk_console_message_source_get_func.cpp',
+        'utc_blink_ewk_console_message_text_get_func.cpp',
+        'utc_blink_ewk_context_additional_plugin_path_set_func.cpp',
+        'utc_blink_ewk_context_application_cache_delete_all_func.cpp',
+        'utc_blink_ewk_context_application_cache_delete_func.cpp',
+        'utc_blink_ewk_context_application_cache_origins_get_func.cpp',
+        'utc_blink_ewk_context_cache_clear_func.cpp',
+        'utc_blink_ewk_context_cache_disabled_set_func.cpp',
+        'utc_blink_ewk_context_cache_model_get_func.cpp',
+        'utc_blink_ewk_context_cache_model_set_func.cpp',
+        'utc_blink_ewk_context_certificate_file_get_func.cpp',
+        'utc_blink_ewk_context_certificate_file_set_func.cpp',
+        'utc_blink_ewk_context_cookie_manager_get_func.cpp',
+        'utc_blink_ewk_context_default_get_func.cpp',
+        'utc_blink_ewk_context_delete_func.cpp',
+        'utc_blink_ewk_context_did_start_download_callback_set_func.cpp',
+        'utc_blink_ewk_context_form_autofill_profile_add_func.cpp',
+        'utc_blink_ewk_context_form_autofill_profile_get_all_func.cpp',
+        'utc_blink_ewk_context_form_autofill_profile_get_func.cpp',
+        'utc_blink_ewk_context_form_autofill_profile_remove_func.cpp',
+        'utc_blink_ewk_context_form_autofill_profile_set_func.cpp',
+        'utc_blink_ewk_context_form_autofill_profile_utils.cpp',
+        'utc_blink_ewk_context_form_autofill_profile_utils.h',
+        'utc_blink_ewk_context_form_candidate_data_clear_func.cpp',
+        'utc_blink_ewk_context_form_password_data_clear_func.cpp',
+        'utc_blink_ewk_context_icon_database_icon_object_add_func.cpp',
+        'utc_blink_ewk_context_icon_database_path_set_func.cpp',
+        'utc_blink_ewk_context_local_file_system_all_delete_func.cpp',
+        'utc_blink_ewk_context_local_file_system_delete_func.cpp',
+        'utc_blink_ewk_context_memory_sampler_start_func.cpp',
+        'utc_blink_ewk_context_memory_sampler_stop_func.cpp',
+        'utc_blink_ewk_context_menu.h',
+        'utc_blink_ewk_context_menu_item_append_as_action_func.cpp',
+        'utc_blink_ewk_context_menu_item_append_func.cpp',
+        'utc_blink_ewk_context_menu_item_count_func.cpp',
+        'utc_blink_ewk_context_menu_item_image_url_get_func.cpp',
+        'utc_blink_ewk_context_menu_item_link_url_get_func.cpp',
+        'utc_blink_ewk_context_menu_item_remove_func.cpp',
+        'utc_blink_ewk_context_menu_item_tag_get_func.cpp',
+        'utc_blink_ewk_context_menu_nth_item_get_func.cpp',
+        'utc_blink_ewk_context_new_func.cpp',
+        'utc_blink_ewk_context_notify_low_memory_func.cpp',
+        'utc_blink_ewk_context_pixmap_set_func.cpp',
+        'utc_blink_ewk_context_proxy_uri_get_func.cpp',
+        'utc_blink_ewk_context_proxy_uri_set_func.cpp',
+        'utc_blink_ewk_context_vibration_client_callbacks_set_func.cpp',
+        'utc_blink_ewk_context_web_database_delete_all_func.cpp',
+        'utc_blink_ewk_context_web_database_delete_func.cpp',
+        'utc_blink_ewk_context_web_database_origins_get_func.cpp',
+        'utc_blink_ewk_context_web_indexed_database_delete_all_func.cpp',
+        'utc_blink_ewk_context_web_storage_delete_all_func.cpp',
+        'utc_blink_ewk_context_web_storage_origin_delete_func.cpp',
+        'utc_blink_ewk_context_web_storage_origins_get_func.cpp',
+        'utc_blink_ewk_cookie_manager_accept_policy_set_func.cpp',
+        'utc_blink_ewk_cookie_manager_async_accept_policy_get_func.cpp',
+        'utc_blink_ewk_cookie_manager_cookies_clear_func.cpp',
+        'utc_blink_ewk_custom_handlers_data_base_url_get_func.cpp',
+        'utc_blink_ewk_custom_handlers_data_result_set_func.cpp',
+        'utc_blink_ewk_custom_handlers_data_target_get_func.cpp',
+        'utc_blink_ewk_custom_handlers_data_title_get_func.cpp',
+        'utc_blink_ewk_custom_handlers_data_url_get_func.cpp',
+        'utc_blink_ewk_error_code_get_func.cpp',
+        'utc_blink_ewk_error_description_get_func.cpp',
+        'utc_blink_ewk_error_type_get_func.cpp',
+        'utc_blink_ewk_error_url_get_func.cpp',
+        'utc_blink_ewk_frame_is_main_frame_func.cpp',
+        'utc_blink_ewk_geolocation_permission_request_origin_get_func.cpp',
+        'utc_blink_ewk_geolocation_permission_request_set_func.cpp',
+        'utc_blink_ewk_geolocation_permission_request_suspend_func.cpp',
+        'utc_blink_ewk_history_back_list_length_get_func.cpp',
+        'utc_blink_ewk_history_forward_list_length_get.cpp',
+        'utc_blink_ewk_history_free_func.cpp',
+        'utc_blink_ewk_history_item_title_get_func.cpp',
+        'utc_blink_ewk_history_item_uri_get_func.cpp',
+        'utc_blink_ewk_history_nth_item_get.cpp',
+        'utc_blink_ewk_hit_test_attribute_hash_get_func.cpp',
+        'utc_blink_ewk_hit_test_free_func.cpp',
+        'utc_blink_ewk_hit_test_image_buffer_get_func.cpp',
+        'utc_blink_ewk_hit_test_image_buffer_length_get_func.cpp',
+        'utc_blink_ewk_hit_test_image_file_name_extension_get_func.cpp',
+        'utc_blink_ewk_hit_test_image_uri_get_func.cpp',
+        'utc_blink_ewk_hit_test_link_label_get_func.cpp',
+        'utc_blink_ewk_hit_test_link_title_get_func.cpp',
+        'utc_blink_ewk_hit_test_link_uri_get_func.cpp',
+        'utc_blink_ewk_hit_test_media_uri_get_func.cpp',
+        'utc_blink_ewk_hit_test_node_value_get_func.cpp',
+        'utc_blink_ewk_hit_test_result_context_get_func.cpp',
+        'utc_blink_ewk_hit_test_tag_name_get_func.cpp',
+        'utc_blink_ewk_init_func.cpp',
+        'utc_blink_ewk_notification_body_get_func.cpp',
+        'utc_blink_ewk_notification_clicked_func.cpp',
+        'utc_blink_ewk_notification_icon_url_get_func.cpp',
+        'utc_blink_ewk_notification_id_get_func.cpp',
+        'utc_blink_ewk_notification_permission_request_origin_get_func.cpp',
+        'utc_blink_ewk_notification_permission_request_set_func.cpp',
+        'utc_blink_ewk_notification_permission_request_suspend_func.cpp',
+        'utc_blink_ewk_notification_security_origin_get_func.cpp',
+        'utc_blink_ewk_notification_showed_func.cpp',
+        'utc_blink_ewk_notification_title_get_func.cpp',
+        'utc_blink_ewk_policy_decision_cookie_get_func.cpp',
+        'utc_blink_ewk_policy_decision_frame_get_func.cpp',
+        'utc_blink_ewk_policy_decision_host_get_func.cpp',
+        'utc_blink_ewk_policy_decision_http_method_get_func.cpp',
+        'utc_blink_ewk_policy_decision_ignore_func.cpp',
+        'utc_blink_ewk_policy_decision_navigation_type_get_func.cpp',
+        'utc_blink_ewk_policy_decision_password_get_func.cpp',
+        'utc_blink_ewk_policy_decision_response_headers_get_func.cpp',
+        'utc_blink_ewk_policy_decision_response_mime_get_func.cpp',
+        'utc_blink_ewk_policy_decision_response_status_code_get_func.cpp',
+        'utc_blink_ewk_policy_decision_scheme_get_func.cpp',
+        'utc_blink_ewk_policy_decision_suspend_func.cpp',
+        'utc_blink_ewk_policy_decision_type_get_func.cpp',
+        'utc_blink_ewk_policy_decision_url_get_func.cpp',
+        'utc_blink_ewk_policy_decision_use_func.cpp',
+        'utc_blink_ewk_policy_decision_userid_get_func.cpp',
+        'utc_blink_ewk_quota_permission_request_is_persistent_get_func.cpp',
+        'utc_blink_ewk_quota_permission_request_origin_host_get_func.cpp',
+        'utc_blink_ewk_quota_permission_request_origin_port_get_func.cpp',
+        'utc_blink_ewk_quota_permission_request_origin_protocol_get_func.cpp',
+        'utc_blink_ewk_quota_permission_request_quota_get_func.cpp',
+        'utc_blink_ewk_security_origin_host_get_func.cpp',
+        'utc_blink_ewk_security_origin_port_get_func.cpp',
+        'utc_blink_ewk_security_origin_protocol_get_func.cpp',
+        'utc_blink_ewk_set_arguments_func.cpp',
+        'utc_blink_ewk_settings_autofill_password_form_enabled_get_func.cpp',
+        'utc_blink_ewk_settings_autofill_password_form_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_auto_fitting_get_func.cpp',
+        'utc_blink_ewk_settings_auto_fitting_set_func.cpp',
+        'utc_blink_ewk_settings_clear_text_selection_automatically_set_func.cpp',
+        'utc_blink_ewk_settings_current_legacy_font_size_mode_set_func.cpp',
+        'utc_blink_ewk_settings_default_encoding_set_func.cpp',
+        'utc_blink_ewk_settings_default_keypad_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_detect_contents_automatically_set_func.cpp',
+        'utc_blink_ewk_settings_edge_effect_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_editable_link_behavior_set_func.cpp',
+        'utc_blink_ewk_settings_extra_feature_set_func.cpp',
+        'utc_blink_ewk_settings_font_default_size_get_func.cpp',
+        'utc_blink_ewk_settings_font_default_size_set_func.cpp',
+        'utc_blink_ewk_settings_force_zoom_set_func.cpp',
+        'utc_blink_ewk_settings_form_candidate_data_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_form_profile_data_enabled_get_func.cpp',
+        'utc_blink_ewk_settings_form_profile_data_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_initial_list_style_position_get_func.cpp',
+        'utc_blink_ewk_settings_initial_list_style_position_set_func.cpp',
+        'utc_blink_ewk_settings_is_encoding_valid_func.cpp',
+        'utc_blink_ewk_settings_javascript_enabled_get_func.cpp',
+        'utc_blink_ewk_settings_javascript_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_link_effect_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_link_magnifier_enabled_get_func.cpp',
+        'utc_blink_ewk_settings_link_magnifier_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_load_remote_images_set_func.cpp',
+        'utc_blink_ewk_settings_loads_images_automatically_set_func.cpp',
+        'utc_blink_ewk_settings_paste_image_uri_mode_set_func.cpp',
+        'utc_blink_ewk_settings_plugins_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_scripts_window_open_set_func.cpp',
+        'utc_blink_ewk_settings_select_word_automatically_set_func.cpp',
+        'utc_blink_ewk_settings_spdy_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_text_autosizing_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_text_autosizing_font_scale_factor_set_func.cpp',
+        'utc_blink_ewk_settings_text_selection_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_text_style_state_enabled_func.cpp',
+        'utc_blink_ewk_settings_text_zoom_enabled_set_func.cpp',
+        'utc_blink_ewk_settings_uses_encoding_detector_set_func.cpp',
+        'utc_blink_ewk_settings_uses_keypad_without_user_action_set_func.cpp',
+        'utc_blink_ewk_shutdown_func.cpp',
+        'utc_blink_ewk_text_style_align_center_get_func.cpp',
+        'utc_blink_ewk_text_style_align_full_get_func.cpp',
+        'utc_blink_ewk_text_style_align_left_get_func.cpp',
+        'utc_blink_ewk_text_style_align_right_get_func.cpp',
+        'utc_blink_ewk_text_style_bg_color_get_func.cpp',
+        'utc_blink_ewk_text_style_bold_get_func.cpp',
+        'utc_blink_ewk_text_style_color_get_func.cpp',
+        'utc_blink_ewk_text_style_font_size_get_func.cpp',
+        'utc_blink_ewk_text_style_has_composition_get_func.cpp',
+        'utc_blink_ewk_text_style_italic_get_func.cpp',
+        'utc_blink_ewk_text_style_ordered_list_get_func.cpp',
+        'utc_blink_ewk_text_style_position_get_func.cpp',
+        'utc_blink_ewk_text_style_underline_get_func.cpp',
+        'utc_blink_ewk_text_style_unordered_list_get_func.cpp',
+        'utc_blink_ewk_user_media_permission_request_set_func.cpp',
+        'utc_blink_ewk_user_media_permission_request_suspend_func.cpp',
+        'utc_blink_ewk_view_add_func.cpp',
+        'utc_blink_ewk_view_add_with_context_func.cpp',
+        'utc_blink_ewk_view_add_with_session_data_func.cpp',
+        'utc_blink_ewk_view_app_name_user_agent_get_func.cpp',
+        'utc_blink_ewk_view_app_name_user_agent_set_func.cpp',
+        'utc_blink_ewk_view_back_forward_list_clear_func.cpp',
+        'utc_blink_ewk_view_back_func.cpp',
+        'utc_blink_ewk_view_back_possible_func.cpp',
+        'utc_blink_ewk_view_browser_font_set_func.cpp',
+        'utc_blink_ewk_view_command_execute_func.cpp',
+        'utc_blink_ewk_view_content_security_policy_set_func.cpp',
+        'utc_blink_ewk_view_contents_pdf_get_func.cpp',
+        'utc_blink_ewk_view_contents_set_func.cpp',
+        'utc_blink_ewk_view_contents_size_get_func.cpp',
+        'utc_blink_ewk_view_context_get_func.cpp',
+        'utc_blink_ewk_view_custom_header_add_func.cpp',
+        'utc_blink_ewk_view_custom_header_remove_func.cpp',
+        'utc_blink_ewk_view_draws_transparent_background_set_func.cpp',
+        'utc_blink_ewk_view_encoding_custom_set_func.cpp',
+        'utc_blink_ewk_view_forward_func.cpp',
+        'utc_blink_ewk_view_forward_possible_func.cpp',
+        'utc_blink_ewk_view_fullscreen_exit_func.cpp',
+        'utc_blink_ewk_view_get_cookies_for_url_func.cpp',
+        'utc_blink_ewk_view_history_get_func.cpp',
+        'utc_blink_ewk_view_hit_test_new_func.cpp',
+        'utc_blink_ewk_view_hit_test_request_func.cpp',
+        'utc_blink_ewk_view_html_contents_set_func.cpp',
+        'utc_blink_ewk_view_inspector_server_stop_func.cpp',
+        'utc_blink_ewk_view_javascript_confirm_reply_func.cpp',
+        'utc_blink_ewk_view_load_progress_get_func.cpp',
+        'utc_blink_ewk_view_mhtml_data_get_func.cpp',
+        'utc_blink_ewk_view_notification_closed_func.cpp',
+        'utc_blink_ewk_view_orientation_lock_callback_set_func.cpp',
+        'utc_blink_ewk_view_orientation_send_func.cpp',
+        'utc_blink_ewk_view_page_visibility_state_set_func.cpp',
+        'utc_blink_ewk_view_plain_text_get_func.cpp',
+        'utc_blink_ewk_view_quota_permission_request_callback_set_func.cpp',
+        'utc_blink_ewk_view_quota_permission_request_cancel_func.cpp',
+        'utc_blink_ewk_view_quota_permission_request_reply_func.cpp',
+        'utc_blink_ewk_view_reload_func.cpp',
+        'utc_blink_ewk_view_resume_func.cpp',
+        'utc_blink_ewk_view_scale_get_func.cpp',
+        'utc_blink_ewk_view_scale_range_get_func.cpp',
+        'utc_blink_ewk_view_scale_set_func.cpp',
+        'utc_blink_ewk_view_screenshot_contents_get_func.cpp',
+        'utc_blink_ewk_view_script_execute_func.cpp',
+        'utc_blink_ewk_view_scroll_by_func.cpp',
+        'utc_blink_ewk_view_scroll_pos_get_func.cpp',
+        'utc_blink_ewk_view_scroll_set_func.cpp',
+        'utc_blink_ewk_view_scroll_size_get_func.cpp',
+        'utc_blink_ewk_view_session_data_get_func.cpp',
+        'utc_blink_ewk_view_settings_get_func.cpp',
+        'utc_blink_ewk_view_stop_func.cpp',
+        'utc_blink_ewk_view_suspend_func.cpp',
+        'utc_blink_ewk_view_text_find_func.cpp',
+        'utc_blink_ewk_view_text_find_highlight_clear_func.cpp',
+        'utc_blink_ewk_view_text_selection_clear_func.cpp',
+        'utc_blink_ewk_view_text_selection_text_get_func.cpp',
+        'utc_blink_ewk_view_text_zoom_get_func.cpp',
+        'utc_blink_ewk_view_text_zoom_set_func.cpp',
+        'utc_blink_ewk_view_title_get_func.cpp',
+        'utc_blink_ewk_view_touch_events_enabled_set_func.cpp',
+        'utc_blink_ewk_view_url_get_func.cpp',
+        'utc_blink_ewk_view_url_request_set_func.cpp',
+        'utc_blink_ewk_view_url_set_func.cpp',
+        'utc_blink_ewk_view_user_agent_get_func.cpp',
+        'utc_blink_ewk_view_user_agent_set_func.cpp',
+        'utc_blink_ewk_view_use_settings_font_func.cpp',
+        'utc_blink_ewk_view_visibility_set_func.cpp',
+        'utc_blink_ewk_view_web_application_capable_get_func.cpp',
+        'utc_blink_ewk_view_web_application_icon_url_get_func.cpp',
+        'utc_blink_ewk_view_web_application_icon_urls_get_func.cpp',
+        'utc_blink_ewk_web_application_icon_data_url_get_func.cpp',
+    ],
+
+    'cflags': [
+      '<!@(pkg-config --cflags glib-2.0)',
+    ],
+    'link_settings': {
+      'ldflags': [
+        '<!@(pkg-config --libs-only-L --libs-only-other glib-2.0)',
+      ],
+      'libraries': [
+        '<!@(pkg-config --libs-only-l glib-2.0)',
+      ],
+    },
+
+    'conditions': [
+     ['building_for_tizen==1', {
+      'cflags': [
+        '<!@(pkg-config --cflags scim)',
+        '<!@(pkg-config --cflags x11)',
+      ],
+      'link_settings': {
+        'ldflags': [
+          '<!@(pkg-config --libs-only-L --libs-only-other scim)',
+          '<!@(pkg-config --libs-only-L --libs-only-other x11)',
+        ],
+        'libraries': [
+          '<!@(pkg-config --libs-only-l scim)',
+          '<!@(pkg-config --libs-only-l x11)',
+        ],
+      },
+    }],
+    ['ewk_bringup==1', {
+      'defines': [ 'EWK_BRINGUP=1' ],
+    }]
+   ],
+
+  }]
+}
old mode 100644 (file)
new mode 100755 (executable)
index 3973268..f3faaf3
@@ -33,30 +33,28 @@ mkdir $UTC_RESULT_DIR
 mkdir $UTC_LOG_DIR
 
 ## Run Unit Test for All
-UTC_FILTER=utc_blink
-for utc_exec in `ls $UTC_EXEC_PATH | grep $UTC_FILTER`; do
-  echo ====shell script==== ::: start test ::: $utc_exec
-  cp $UTC_EXEC_PATH/$utc_exec $UTC_ROOT
-  # some TCs need to get focus on webview, lockscreen is blocking focus
-  killall -s QUIT lockscreen
-  $UTC_ROOT/$utc_exec --gtest_output="xml:$UTC_RESULT_DIR/$utc_exec.xml" # | tee $UTC_LOG_DIR/$utc_exec.log
-  rm $UTC_ROOT/$utc_exec
-
-  if [ ! -f "$UTC_RESULT_DIR/$utc_exec.xml" ]; then
-    test_name=${utc_exec%"_func"}
-    ## Generate fake xml file that tells about possible segfault.
-    echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" >> $UTC_RESULT_DIR/$utc_exec.xml
-    echo "<testsuites tests=\"1\" failures=\"1\" disabled=\"0\" errors=\"0\" time=\"0.1\" name=\"Launch\">" >> $UTC_RESULT_DIR/$utc_exec.xml
-    echo "  <testsuite name=\"$test_name\" tests=\"1\" failures=\"1\" disabled=\"0\" errors=\"0\" time=\"0.1\">" >> $UTC_RESULT_DIR/$utc_exec.xml
-    echo "    <testcase name=\"LaunchTC\" status=\"run\" time=\"0.1\" classname=\"$test_name\">" >> $UTC_RESULT_DIR/$utc_exec.xml
-    echo "      <failure message=\"SIGSEGV\" type=\"\"></failure>" >> $UTC_RESULT_DIR/$utc_exec.xml
-    echo "    </testcase>" >> $UTC_RESULT_DIR/$utc_exec.xml
-    echo "  </testsuite>" >> $UTC_RESULT_DIR/$utc_exec.xml
-    echo "</testsuites>" >> $UTC_RESULT_DIR/$utc_exec.xml
-  fi
+utc_exec=ewk_unittests
+echo ====shell script==== ::: start test ::: $utc_exec
+cp $UTC_EXEC_PATH/$utc_exec $UTC_ROOT
+# some TCs need to get focus on webview, lockscreen is blocking focus
+killall -s QUIT lockscreen
+$UTC_ROOT/$utc_exec --gtest_output="xml:$UTC_RESULT_DIR/$utc_exec.xml" # | tee $UTC_LOG_DIR/$utc_exec.log
+rm $UTC_ROOT/$utc_exec
+
+if [ ! -f "$UTC_RESULT_DIR/$utc_exec.xml" ]; then
+  test_name=${utc_exec%"_func"}
+  ## Generate fake xml file that tells about possible segfault.
+  echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" >> $UTC_RESULT_DIR/$utc_exec.xml
+  echo "<testsuites tests=\"1\" failures=\"1\" disabled=\"0\" errors=\"0\" time=\"0.1\" name=\"Launch\">" >> $UTC_RESULT_DIR/$utc_exec.xml
+  echo "  <testsuite name=\"$test_name\" tests=\"1\" failures=\"1\" disabled=\"0\" errors=\"0\" time=\"0.1\">" >> $UTC_RESULT_DIR/$utc_exec.xml
+  echo "    <testcase name=\"LaunchTC\" status=\"run\" time=\"0.1\" classname=\"$test_name\">" >> $UTC_RESULT_DIR/$utc_exec.xml
+  echo "      <failure message=\"SIGSEGV\" type=\"\"></failure>" >> $UTC_RESULT_DIR/$utc_exec.xml
+  echo "    </testcase>" >> $UTC_RESULT_DIR/$utc_exec.xml
+  echo "  </testsuite>" >> $UTC_RESULT_DIR/$utc_exec.xml
+  echo "</testsuites>" >> $UTC_RESULT_DIR/$utc_exec.xml
+fi
 
-  echo ====shell script==== :::  end test  ::: $utc_exec
-done
+echo ====shell script==== :::  end test  ::: $utc_exec
 
 ## Set testsuites initial values
 _testAPIs=0
index 582f0bb..93ccb7a 100644 (file)
@@ -83,6 +83,7 @@
             '<!@(<(pkg-config) --cflags capi-appfw-application)',
             '<!@(<(pkg-config) --cflags capi-system-info)',
             '<!@(<(pkg-config) --cflags capi-system-sensor)',
+            '<!@(<(pkg-config) --cflags capi-system-device)',
             '<!@(<(pkg-config) --cflags capi-location-manager)',
             '<!@(<(pkg-config) --cflags capi-media-audio-io)',
             '<!@(<(pkg-config) --cflags capi-media-camera)',
@@ -98,6 +99,7 @@
             '<!@(<(pkg-config) --libs-only-L --libs-only-other capi-appfw-application)',
             '<!@(<(pkg-config) --libs-only-L --libs-only-other capi-system-info)',
             '<!@(<(pkg-config) --libs-only-L --libs-only-other capi-system-sensor)',
+            '<!@(<(pkg-config) --libs-only-L --libs-only-other capi-system-device)',
             '<!@(<(pkg-config) --libs-only-L --libs-only-other capi-location-manager)',
             '<!@(<(pkg-config) --libs-only-L --libs-only-other capi-media-audio-io)',
             '<!@(<(pkg-config) --libs-only-L --libs-only-other capi-media-camera)',
             '<!@(<(pkg-config) --libs-only-l capi-appfw-application)',
             '<!@(<(pkg-config) --libs-only-l capi-system-info)',
             '<!@(<(pkg-config) --libs-only-l capi-system-sensor)',
+            '<!@(<(pkg-config) --libs-only-l capi-system-device)',
             '<!@(<(pkg-config) --libs-only-l capi-location-manager)',
             '<!@(<(pkg-config) --libs-only-l capi-media-audio-io)',
             '<!@(<(pkg-config) --libs-only-l capi-media-camera)',
index 60152a8..5e0fdd1 100644 (file)
         ['_toolset=="target"', {
           'libraries': [ '<!($(echo ${CXX_target:-g++}) -print-libgcc-file-name)', ]
         }],
+        ['ewk_bringup==1', {
+        }]
       ],
     },
     'rules': [{
       }],
       ['ewk_bringup==1', {
         'defines': [ 'EWK_BRINGUP=1' ],
+        'defines!': [ 'TIZEN_CONTENTS_DETECTION=1' ],
       }],
       ['enable_printing==0', {
         'sources!': [
index 1f274cc..be5aebd 100644 (file)
           }],
         ],
       }],
-      ['ewk_bringup==1', {
-        'defines!': [
-          'TIZEN_CONTENTS_DETECTION=1',
-          'TIZEN_ENABLE_CAPI_SUPPORT=1',
-        ],
-      }]
+
     ],
   },
 }
old mode 100644 (file)
new mode 100755 (executable)
index 02aa787..324dd17
@@ -23,20 +23,7 @@ def get_chrome_version(chrome_src):
         return "0.0.0"
 
 
-def write_common(file, outdir, defines, chrome_src):
-    # extract "out.{target_host}/{build_type}/gen" out of a full path 'outdir'
-    index = outdir.find("out.")
-    relativeOutdir = outdir[index:] + "/gen "
-
-    file.write("Name: chromium-efl\n")
-    file.write("Description: Chromium EFL port\n")
-    file.write("Version: " + get_chrome_version(chrome_src) + "\n\n")
-    file.write("Libs: -L${libdir} -Wl,-rpath-link=${libdir} -lchromium-efl\n")
-    file.write("Cflags: -I${includedir}/impl -I${includedir}/src -I${includedir}/src/skia/config "
-                   "-I/usr/include/v8 " + "-I${includedir}/" + relativeOutdir + defines + "\n")
-
-
-def gen_gbs_pkgconfig_file(path, chrome_src, defines):
+def gen_pkgconfig_file(path, version, defines):
     pc_dir = os.path.join(path, 'pkgconfig')
     pc_path = os.path.join(pc_dir, 'chromium-efl.pc')
 
@@ -50,31 +37,14 @@ def gen_gbs_pkgconfig_file(path, chrome_src, defines):
     out.write("prefix=/usr\n")
     out.write("exec_prefix=${prefix}\n")
     out.write("libdir=${prefix}/lib\n")
-    out.write("includedir=../chromium\n\n")
-
-    write_common(out, path, defines, chrome_src)
-
-    out.close()
-
-
-def gen_desktop_pkgconfig_file(path, chrome_src, defines):
-    pc_dir = os.path.join(path, 'pkgconfig', 'desktop')
-    pc_path = os.path.join(pc_dir , "chromium-efl.pc")
-    top_dir = os.path.join(chrome_src, "..")
+    out.write("includedir=${prefix}/include\n\n")
 
-    print(" * Generating desktop chromium-efl.pc")
-
-    if not os.path.exists(pc_dir):
-        os.makedirs(pc_dir)
-
-    out = open(pc_path, "w");
-
-    out.write("prefix=" + path + "\n")
-    out.write("exec_prefix=${prefix}\n")
-    out.write("libdir=${prefix}/lib\n")
-    out.write("includedir=" + top_dir + "\n\n")
+    out.write("Name: chromium-efl\n")
+    out.write("Description: Chromium EFL port\n")
+    out.write("Version: " + version + "\n\n")
+    out.write("Libs: -L${libdir} -Wl,-rpath-link=${libdir} -lchromium-ewk\n")
+    out.write("Cflags: -I{includedir}/chromium-ewk " + defines + "\n")
 
-    write_common(out, path, defines, chrome_src)
 
     out.close()
 
@@ -104,8 +74,7 @@ def main():
         print("Invalid arguments specified!")
         sys.exit(2)
 
-    gen_gbs_pkgconfig_file(outdir, chrome_src, defines)
-    gen_desktop_pkgconfig_file(outdir, chrome_src, defines)
+    gen_pkgconfig_file(outdir, get_chrome_version(chrome_src), defines)
 
     sys.exit(0)
 
index 18fe0c3..65f0494 100755 (executable)
@@ -90,6 +90,10 @@ BuildRequires: pkgconfig(libdri2)
 BuildRequires: pkgconfig(libtbm)
 BuildRequires: pkgconfig(x11)
 BuildRequires: pkgconfig(feedback)
+BuildRequires: pkgconfig(appcore-efl)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(ecore-imf)
+BuildRequires: pkgconfig(scim)
 
 %description
 Browser Engine based on Chromium EFL (Shared Library)
@@ -110,6 +114,15 @@ Requires: %{name} = %{version}-%{release}
 Chromium unite tests
 %endif
 
+%if 0%{?build_ewk_unittest}
+%package ewktest
+Summary: Chromium EWK unittests
+Group: Development/UnitTests
+Requires: %{name} = %{version}-%{release}
+%description ewktest
+Chromium EFL unit test utilities
+%endif
+
 # Directory for internal chromium executable components
 %global CHROMIUM_EXE_DIR %{_libdir}/%{name}
 # Constant read only data used by chromium-efl port
@@ -194,7 +207,11 @@ fi
   -Dbuilding_for_tizen_"%{OUTPUT_BUILD_PROFILE_TARGET}"=1
 %endif
 
-build/prebuild/ninja %{_smp_mflags} -C"%{OUTPUT_FOLDER}"
+build/prebuild/ninja %{_smp_mflags} -C"%{OUTPUT_FOLDER}" \
+%if 0%{?build_ewk_unittest}
+  ewk_unittests \
+%endif
+  chromium-efl efl_webprocess chromium-ewk efl_webview_app mini_browser
 
 %if 0%{?_enable_unittests}
 ninja %{_smp_mflags} -C"%{OUTPUT_FOLDER}" angle_unittests env_chromium_unittests cacheinvalidation_unittests \
@@ -207,22 +224,37 @@ ninja %{_smp_mflags} -C"%{OUTPUT_FOLDER}" angle_unittests env_chromium_unittests
 # gpu_unittests compositor_unittests media_unittests
 %endif
 
+#XXX icudtl.dat is not copied by gyp. Do that manually
+cp src/third_party/icu/android/icudtl.dat "%{OUTPUT_FOLDER}"
+
 %install
 install -d "%{buildroot}"%{_sysconfdir}/smack/accesses2.d
+install -d "%{buildroot}"%{_bindir}
 install -d "%{buildroot}"%{_libdir}/pkgconfig
-install -d "%{buildroot}"%{_includedir}/v8
+install -d "%{buildroot}"%{_includedir}/chromium-ewk
 install -d "%{buildroot}%{CHROMIUM_EXE_DIR}"
 install -d "%{buildroot}%{CHROMIUM_DATA_DIR}"/themes
 
 install -m 0755 "%{OUTPUT_FOLDER}"/lib/libchromium-efl.so    "%{buildroot}"%{_libdir}
+install -m 0755 "%{OUTPUT_FOLDER}"/lib/libchromium-ewk.so    "%{buildroot}"%{_libdir}
 
 install -m 0755 "%{OUTPUT_FOLDER}"/libffmpegsumo.so  "%{buildroot}%{CHROMIUM_EXE_DIR}"
 install -m 0755 "%{OUTPUT_FOLDER}"/efl_webprocess    "%{buildroot}%{CHROMIUM_EXE_DIR}"
+install -m 0755 "%{OUTPUT_FOLDER}"/icudtl.dat    "%{buildroot}%{CHROMIUM_EXE_DIR}"
 install -m 0755 "%{OUTPUT_FOLDER}"/content_shell.pak "%{buildroot}%{CHROMIUM_EXE_DIR}"
 install -m 0644 "%{OUTPUT_FOLDER}"/resources/*.edj   "%{buildroot}%{CHROMIUM_DATA_DIR}"/themes
 
+install -m 0755 "%{OUTPUT_FOLDER}"/efl_webview_app   "%{buildroot}"%{_bindir}
+install -m 0755 "%{OUTPUT_FOLDER}"/mini_browser      "%{buildroot}"%{_bindir}
+
 install -m 0644 "%{OUTPUT_FOLDER}"/pkgconfig/*.pc    "%{buildroot}"%{_libdir}/pkgconfig/
-install -m 0644 src/v8/include/*.h                   "%{buildroot}"%{_includedir}/v8/
+install -m 0644 ewk/efl_integration/public/*.h                  "%{buildroot}"%{_includedir}/chromium-ewk/
+
+install -d "%{buildroot}"%{_datadir}/packages
+install -m 0644 ewk/efl_webview_app/org.tizen.chromium-efl.xml "%{buildroot}"%{_datadir}/packages
+
+install -d "%{buildroot}"%{_datadir}/icons
+install -m 0644 ewk/efl_webview_app/mini-browser.png "%{buildroot}"%{_datadir}/icons
 
 %if 0%{?_enable_unittests}
 install -d "%{INSTALL_ROOT}%{CHROMIUM_UNITTESTS_DIR}"
@@ -231,6 +263,15 @@ for test in "%{OUTPUT_FOLDER}/*_unittests"; do
 done
 %endif
 
+%if 0%{?build_ewk_unittest}
+mkdir -p %{buildroot}/opt/usr/resources/
+mkdir -p %{buildroot}/opt/usr/utc_exec/
+cp -r ewk/unittest/resources/* %{buildroot}/opt/usr/resources/
+install -m 0644 "%{OUTPUT_FOLDER}"/ewk_unittests %{buildroot}/opt/usr/utc_exec/
+install -m 0755 ewk/utc_gtest_run.sh %{buildroot}/opt/usr/utc_exec/
+%endif
+
+
 %post
 # apply smack rule
 smack_reload.sh
@@ -270,14 +311,20 @@ fi
 %manifest packaging/%{name}.manifest
 %defattr(-,root,root,-)
 %{_libdir}/libchromium-efl.so
+%{_libdir}/libchromium-ewk.so
 %{CHROMIUM_EXE_DIR}/efl_webprocess
 %{CHROMIUM_EXE_DIR}/libffmpegsumo.so
+%{CHROMIUM_EXE_DIR}/icudtl.dat
 %{CHROMIUM_EXE_DIR}/content_shell.pak
 %{CHROMIUM_DATA_DIR}/themes/*.edj
+%{_bindir}/efl_webview_app
+%{_bindir}/mini_browser
+%{_datadir}/packages/org.tizen.chromium-efl.xml
+%{_datadir}/icons/mini-browser.png
 
 %files devel
 %defattr(-,root,root,-)
-%{_includedir}/v8/*
+%{_includedir}/chromium-ewk/*.h
 %{_libdir}/pkgconfig/*.pc
 
 %if 0%{?_enable_unittests}
@@ -285,3 +332,11 @@ fi
 %defattr(-,root,root,-)
 %{CHROMIUM_UNITTESTS_DIR}/*
 %endif
+
+%if 0%{?build_ewk_unittest}
+%files ewktest
+%defattr(-,root,root,-)
+%manifest ./packaging/org.tizen.chromium-ewktest.manifest
+/opt/usr/utc_exec/*
+/opt/usr/resources/*
+%endif
index dd2da15..5ae5bbe 100644 (file)
@@ -33,6 +33,7 @@
       <smack request="sound_server" type="rw" />
       <smack request="chromium-efl::db" type="rwxat" />
       <smack request="ui-gadget::client" type="rwx" />
+      <smack request="deviced:gadget" type="rw" />
     </request>
   </define>
   <request>
@@ -41,5 +42,9 @@
   <assign>
     <filesystem path="/usr/lib/org.tizen.chromium-efl/efl_webprocess" label="chromium-efl" exec_label="chromium-efl"/>
     <filesystem path="/opt/usr/apps/org.tizen.chromium-efl/data/db/" label="chromium-efl::db" exec_label="chromium-efl"/>
+    <filesystem path="/usr/lib/libchromium-ewk.so" label="_" />
+    <filesystem path="/usr/share/icons/mini-browser.png" label="_" />
+    <filesystem path="/usr/bin/efl_webview_app" label="chromium-efl" exec_label="chromium-efl"/>
+    <filesystem path="/usr/bin/mini_browser" label="chromium-efl" exec_label="chromium-efl"/>
   </assign>
 </manifest>