include(FindPkgConfig)
pkg_search_module(dpl REQUIRED dpl-efl>=0.2.21)
+pkg_search_module(wrt-commons-custom-handler-dao-ro REQUIRED wrt-commons-custom-handler-dao-ro)
include_directories(
${dpl_INCLUDE_DIRS}
ENDIF(DPL_LOG AND NOT CMAKE_BUILD_TYPE MATCHES "profiling")
MESSAGE(STATUS "WITH_TESTS: " ${WITH_TESTS})
-
+MESSAGE( "wrt-commons-custom-handler-dao-ro_CFLAGS_OTHER : ${wrt-commons-custom-handler-dao-ro_CFLAGS_OTHER}")
+ADD_DEFINITIONS("${wrt-commons-custom-handler-dao-ro_CFLAGS_OTHER}")
ADD_DEFINITIONS("-fPIC")
ADD_DEFINITIONS("-fvisibility=default") # mark all exported symbols as visible
ADD_DEFINITIONS("-fPIC") # If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding
# GCC 4.7 changes the scheme of name lookup. Guide: http://gcc.gnu.org/gcc-4.7/porting_to.html
ADD_DEFINITIONS("-fpermissive")
+ADD_DEFINITIONS("-DLIBDIR_PREFIX=\"${LIB_INSTALL_DIR}\"")
+
##############################################################################
# CMake flags
IF (DEVPKG)
set(CONFIG_FILE_NAME "config.cmake")
set(LIBS_COMMONS ${dpl_LDFLAGS} )
-set(DESTINATION_LIB_PREFIX lib)
+set(DESTINATION_LIB_PREFIX ${LIB_INSTALL_DIR})
set(DESTINATION_HEADER_PREFIX include/${PROJECT_NAME})
set(DESTINATION_HEADERS_NON_JS ${DESTINATION_HEADER_PREFIX}/Commons)
macro(configure_and_install_pkg PKG_FILE)
CONFIGURE_FILE(${PKGCONFIG_DIR}/${PKG_FILE}.in
${PKGCONFIG_DIR}/${PKG_FILE} @ONLY)
- INSTALL(FILES ${PKGCONFIG_DIR}/${PKG_FILE} DESTINATION lib/pkgconfig)
+ INSTALL(FILES ${PKGCONFIG_DIR}/${PKG_FILE} DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
endmacro(configure_and_install_pkg)
configure_and_install_pkg(wrt-plugins-commons-javascript.pc)
configure_and_install_pkg(wrt-dispatch-event.pc)
################################################################################
+# ld configuration file
+
+CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/${PACKAGE_NAME}.conf.in
+ ${PROJECT_SOURCE_DIR}/${PACKAGE_NAME}.conf @ONLY)
+INSTALL(FILES ${PROJECT_SOURCE_DIR}/${PACKAGE_NAME}.conf DESTINATION /etc/ld.so.conf.d/)
+
+
+################################################################################
# Cache
set(PLATFORM "${PLATFORM}" CACHE STRING "Target platform" FORCE)
--- /dev/null
+* Mon Jul 01 2013 Baptiste DURAND <baptiste.durand@eurogiciel.fr> accepted/tizen/20130530.164848@06ce175
+- Clean Post section, add ld conf file.
+
+* Wed May 29 2013 Baptiste DURAND <baptiste.durand@eurogiciel.fr> accepted/tizen/20130524.043756@f5a6e99
+- Fix plugins load failure during plugins installation
+- Fix build error
+- Remove harcoded library path , change some variable type
+
+* Thu May 23 2013 Rusty Lynch <rusty.lynch@intel.com> accepted/tizen/20130522.164603@f814425
+- Add LIBDIR_PREFIX definition
+
+* Tue May 21 2013 Rusty Lynch <rusty.lynch@intel.com> submit/tizen/20130517.045654@b1b8621
+- Fix rpmlint errors
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
-#git:framework/web/wrt-plugins-common
Name: wrt-plugins-common
-Summary: wrt-plugins common library
+Summary: WebRuntime common library
Version: 0.3.112
Release: 1
Group: Development/Libraries
-License: Apache License, Version 2.0
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-
+Source1001: wrt-plugins-common.manifest
+URL: https://review.tizen.org/git/?p=platform/framework/web/wrt-plugins-common.git;a=summary
BuildRequires: cmake
BuildRequires: pkgconfig(dpl-efl)
BuildRequires: pkgconfig(wrt-plugins-types)
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(cert-svc-vcore)
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(wrt-commons-widget-interface-dao)
-Requires: ldconfig
%description
JavaScript plugins for WebRuntime
%package devel
-Summary: wrt-plugins-common library development headers
+Summary: WebRuntime common library development headers
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
-wrt-plugins common library development headers
+This package contains all needed header files for developing a WRT plugin
%prep
%setup -q
+cp %{SOURCE1001} .
%define with_tests 0
%if "%{WITH_TESTS}" == "ON" || "%{WITH_TESTS}" == "Y" || "%{WITH_TESTS}" == "YES" || "%{WITH_TESTS}" == "TRUE" || "%{WITH_TESTS}" == "1"
%endif
%build
+export LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--hash-style=both"
%if 0%{?tizen_build_binary_release_type_eng}
export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
%endif
-export LDFLAGS+="-Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--hash-style=both"
-
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
- -DDPL_LOG="ON" \
+%cmake . -DDPL_LOG="ON" \
-DCMAKE_PROJECT_VERSION=%{version} \
-DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
- %{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS}
+ %{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS}
make %{?jobs:-j%jobs}
%install
mkdir -p %{_libdir}/wrt-plugins
mkdir -p /usr/etc/wrt/injected-javascript
touch /opt/share/widget/plugin-installation-required
+/sbin/ldconfig
+
+%postun -p /sbin/ldconfig
%files
-%manifest wrt-plugins-common.manifest
+%manifest %{name}.manifest
/usr/etc/wrt-plugins/config.dtd
%{_libdir}/*.so
%{_libdir}/*.so.*
%attr(755,root,root) %{_bindir}/widgetdb_tests_prepare_db.sh
%attr(755,root,root) %{_bindir}/wrt-plugins-common-tests-widgetdb
%endif
+/etc/ld.so.conf.d/wrt-plugins-common.conf
%files devel
+%manifest %{name}.manifest
%{_includedir}/*
%{_libdir}/pkgconfig/*
prefix=/usr
exec_prefix=${prefix}
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include
Name: wrt-plugin-loading
prefix=/usr
exec_prefix=${prefix}
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include
Name: wrt-plugins-api-support
prefix=/usr
project_name=@CMAKE_PROJECT_NAME@
exec_prefix=${prefix}
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include/${project_name}
Name: WrtDeviceApis commons with JavaScrpt dependencies
prefix=/usr
project_name=@CMAKE_PROJECT_NAME@
exec_prefix=${prefix}
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include/${project_name}
Name: WrtDeviceApis commons
prefix=/usr
project_name=@CMAKE_PROJECT_NAME@
exec_prefix=${prefix}
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include/${project_name}
Name: WebRuntime DeviceApis Filesystem module
prefix=/usr
project_name=@CMAKE_PROJECT_NAME@
exec_prefix=${prefix}
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include/${project_name}
Name: wrt ipc message support
prefix=/usr
project_name=@CMAKE_PROJECT_NAME@
exec_prefix=${prefix}
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include/${project_name}
Name: WebRuntime DeviceApis Plugin Manager module
prefix=/usr
project_name=@CMAKE_PROJECT_NAME@
exec_prefix=${prefix}
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include/${project_name}
Name: WebRuntime DeviceApis Widget Interface module
prefix=/usr
project_name=@CMAKE_PROJECT_NAME@
exec_prefix=${prefix}
-libdir=${prefix}/lib/
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include/${project_name}
Name: WebRuntime DeviceApis WidgetDB module
prefix=/usr
project_name=@CMAKE_PROJECT_NAME@
exec_prefix=${prefix}
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include/${project_name}
Name: wrt-popup-runner
prefix=/usr
project_name=@CMAKE_PROJECT_NAME@
exec_prefix=${prefix}
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include/${project_name}
Name: wrt-popup-runner
prefix=/usr
project_name=@CMAKE_PROJECT_NAME@
exec_prefix=${prefix}
-libdir=${prefix}/lib
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include/${project_name}
Name: wrt-popup-runner
{
return toString_(arg);
}
-
+#ifndef __x86_64__
std::string Converter::toString(std::size_t arg)
{
return toString_(arg);
}
-
+#endif
std::string Converter::toString(const JSValueRef& arg)
{
return toString_(arg);
std::string toString(unsigned long arg);
std::string toString(long arg);
+#ifndef __x86_64__
std::string toString(std::size_t arg);
+#endif
/**
* Converts JSValueRef to STL string.
#ifndef _DISPATCH_EVENT_SUPPORT_CPP_
#define _DISPATCH_EVENT_SUPPORT_CPP_
+#include <string>
+#include <JavaScriptCore/JavaScript.h>
+#include <dpl/log/log.h>
+
#include "dispatch_event_support.h"
namespace DispatchEventSupport {
)
INSTALL(TARGETS ${TARGET_PLUGIN_LOADING_LIB}
- DESTINATION lib
+ DESTINATION ${LIB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
)
INSTALL(TARGETS ${TARGET_PLUGINS_API_SUPPORT}
- DESTINATION lib
+ DESTINATION ${LIB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
)
INSTALL(TARGETS ${TARGET_PLUGINS_IPC_MESSAGE_LIB}
- DESTINATION lib
+ DESTINATION ${LIB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
wrt-dispatch-event
)
-INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION /usr/lib/wrt-plugins/w3c-widget-interface)
+INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION ${LIB_INSTALL_DIR}/wrt-plugins/w3c-widget-interface)
)
INSTALL(TARGETS ${TARGET_POPUP_ACE_RUNNER_LIB}
- DESTINATION lib
+ DESTINATION ${LIB_INSTALL_DIR}
)
INSTALL(FILES ${WRT_POPUP_RUNNER_LIB_SRC_DIR}/popup-runner.h
namespace Renderer {
struct AnswerCallbackData
{
- int buttonAnswer;
+ intptr_t buttonAnswer;
DPL::Optional<std::string> password;
bool chackState;
};
Assert(m_initialized);
AnswerCallbackData answerData;
- answerData.buttonAnswer = reinterpret_cast<int>(data);
+ answerData.buttonAnswer = reinterpret_cast<intptr_t>(data);
answerData.chackState = m_checkState;
answerData.password = m_password;
m_current->ForwardAnswer(answerData);
)
INSTALL(TARGETS ${TARGET_POPUP_WRT_RUNNER_LIB}
- DESTINATION lib
+ DESTINATION ${LIB_INSTALL_DIR}
)
INSTALL(FILES ${WRT_POPUP_RUNNER_LIB_SRC_DIR}/PopupInvoker.h
--- /dev/null
+@LIB_INSTALL_DIR@/wrt-plugins/w3c-widget-interface
+++ /dev/null
-<manifest>
- <define>
- <domain name="wrt-plugins-common"/>
- </define>
- <assign>
- <filesystem path="/usr/bin/wrt-popup-ace-runtime" label="wrt-popup-ace-runtime" exec_label="wrt-popup-ace-runtime"/>
- <filesystem path="/usr/bin/wrt-popup-wrt-runtime" label="wrt-popup-wrt-runtime" exec_label="wrt-popup-wrt-runtime"/>
- </assign>
- <request>
- <domain name="_"/>
- </request>
-</manifest>