CONFIGURE_FILE(${PKGCONFIG_DIR}/wrt-core.pc.in
${PKGCONFIG_DIR}/wrt-core.pc @ONLY)
-INSTALL(FILES ${PKGCONFIG_DIR}/wrt-core.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${PKGCONFIG_DIR}/wrt-core.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
IF(WITH_TESTS)
add_subdirectory(tests)
%endif
%build
-export LDFLAGS+="-Wl,--rpath=/usr/lib"
+export LDFLAGS+="-Wl,--rpath=%{_libdir}"
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
- -DDPL_LOG="ON" \
- -DPROJECT_VERSION=%{version} \
- -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
+%cmake . -DDPL_LOG="ON" \
+ -DPROJECT_VERSION=%{version} \
+ -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
%{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS}
+
make %{?jobs:-j%jobs}
%install
ln -sf ../../init.d/wrt_launchpad_run.sh %{buildroot}/%{_sysconfdir}/rc.d/rc4.d/S80wrt_launchpad_run
#systemd
-mkdir -p %{buildroot}%{_libdir}/systemd/system/graphical.target.wants
-install -m 0644 %SOURCE101 %{buildroot}%{_libdir}/systemd/system/wrt_launchpad_daemon@.service
-ln -s ../wrt_launchpad_daemon@.service %{buildroot}%{_libdir}/systemd/system/graphical.target.wants/wrt_launchpad_daemon@app.service
+mkdir -p %{buildroot}%{_unitdir}/graphical.target.wants
+install -m 0644 %SOURCE101 %{buildroot}%{_unitdir}/wrt_launchpad_daemon@.service
+ln -s ../wrt_launchpad_daemon@.service %{buildroot}%{_unitdir}/graphical.target.wants/wrt_launchpad_daemon@app.service
%preun
if [ $1 == 0 ]; then
/etc/smack/accesses2.d/wrt_launchpad_daemon.rule
/opt/etc/smack/accesses.d/wrt_launchpad_daemon.rule
#systemd
-%{_libdir}/systemd/system/graphical.target.wants/wrt_launchpad_daemon@app.service
-%{_libdir}/systemd/system/wrt_launchpad_daemon@.service
+%{_unitdir}/graphical.target.wants/wrt_launchpad_daemon@app.service
+%{_unitdir}/wrt_launchpad_daemon@.service
###############################################################################
%files devel
prefix=/usr
project_name=@CMAKE_PROJECT_NAME@
exec_prefix=${prefix}
-libdir=${prefix}/lib/
+libdir=@LIB_INSTALL_DIR@
includedir=${prefix}/include/${project_name}
Name: WebRuntime wrt core module
)
INSTALL(TARGETS ${TARGET_CORE_MODULE_LIB}
- DESTINATION lib/
+ DESTINATION ${LIB_INSTALL_DIR}/
PERMISSIONS OWNER_READ OWNER_WRITE
GROUP_READ GROUP_EXECUTE WORLD_READ
)
namespace WRT {
-static const std::string bundlePath("/usr/lib/libwrt-injected-bundle.so");
+static const std::string bundlePath( LIBDIR_PREFIX "/libwrt-injected-bundle.so");
static const std::string caCertPath("/opt/usr/share/certs/ca-certificate.crt");
#ifdef __arm__
)
INSTALL(TARGETS ${TARGET_PLUGIN_MODULE_LIB}
- DESTINATION lib)
+ DESTINATION ${LIB_INSTALL_DIR})
)
INSTALL(TARGETS ${TARGET_PROFILING_LIB}
- DESTINATION lib
+ DESTINATION ${LIB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
)
# for encryption
-TARGET_LINK_LIBRARIES(${TARGET_INJECTED_BUNDLE_LIB} -L/usr/lib/osp -losp-appfw)
+TARGET_LINK_LIBRARIES(${TARGET_INJECTED_BUNDLE_LIB} -L${LIB_INSTALL_DIR}/osp -losp-appfw)
SET_TARGET_PROPERTIES(${TARGET_INJECTED_BUNDLE_LIB} PROPERTIES
VERSION ${PROJECT_VERSION}
)
INSTALL(TARGETS ${TARGET_INJECTED_BUNDLE_LIB}
- DESTINATION lib/
+ DESTINATION ${LIB_INSTALL_DIR}/
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
const std::string VIEWMODE_TYPE_FULLSCREEN = "fullscreen";
const std::string VIEWMODE_TYPE_MAXIMIZED = "maximized";
char const* const ELM_SWALLOW_CONTENT = "elm.swallow.content";
-const char* const BUNDLE_PATH = "/usr/lib/libwrt-injected-bundle.so";
+const char* const BUNDLE_PATH = LIBDIR_PREFIX "/libwrt-injected-bundle.so";
const char* const caCertPath = "/opt/usr/share/certs/ca-certificate.crt";
// process pool
${WRT_LAUNCH_PAD_DEPS_LIBRARIES}
${CMAKE_DL_LIBS}
)
-
+CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list_wrt.txt.in
+ ${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list_wrt.txt @ONLY)
#install
INSTALL(TARGETS ${WRT_LAUNCH_PAD_NAME} DESTINATION bin)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list_wrt.txt DESTINATION /usr/share/aul )
+++ /dev/null
-/usr/bin/wrt-client
-/usr/lib/libwrt-injected-bundle.so
-/usr/lib/wrt-plugins/w3c-widget-interface/libwrt-plugins-w3c-widget-interface.so
-/usr/lib/wrt-plugins/tizen-tizen/libwrt-plugins-tizen-tizen.so
--- /dev/null
+/usr/bin/wrt-client
+@LIB_INSTALL_DIR@/libwrt-injected-bundle.so
+@LIB_INSTALL_DIR@/wrt-plugins/w3c-widget-interface/libwrt-plugins-w3c-widget-interface.so
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-tizen/libwrt-plugins-tizen-tizen.so
\ No newline at end of file