ADD_DEPENDENCIES(osp-shell osp-shell-core)
+SET(PC_REQUIRED ${pc_requires})
+SET(VERSION ${FULLVER})
+
# pkgconfig file
CONFIGURE_FILE(osp-shell.pc.in ${CMAKE_SOURCE_DIR}/osp-shell.pc @ONLY)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/osp-shell.pc DESTINATION lib/pkgconfig)
+CONFIGURE_FILE(osp-shell-core.pc.in ${CMAKE_SOURCE_DIR}/osp-shell-core.pc @ONLY)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/osp-shell-core.pc DESTINATION lib/pkgconfig)
+
INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp
- FILES_MATCHING PATTERN "*.so*"
- PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
+ FILES_MATCHING PATTERN "*.so*"
+ PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ)
-INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/debug
+INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/debug
FILES_MATCHING PATTERN "*"
- PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
+ PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ)
--- /dev/null
+# Package Information for pkg-config
+
+prefix=@PREFIX@
+exec_prefix=/usr
+libdir=/usr/lib/osp
+includedir=/usr/include/osp
+
+Name: osp-shell-core
+Description: @PACKAGE_DESCRIPTION@
+Version: @VERSION@
+Requires: @PC_REQUIRED@
+Libs: -L${libdir} -losp-shell-core
+Cflags: -I${includedir} -I${includedir}/shell
libdir=/usr/lib/osp
includedir=/usr/include/osp
-Name: @PC_NAME@
+Name: osp-shell
Description: @PACKAGE_DESCRIPTION@
Version: @VERSION@
Requires: @PC_REQUIRED@
-Libs: -L${libdir} @PC_LDFLAGS@
-Cflags: -I${includedir}
+Libs: -L${libdir} -losp-shell
+Cflags: -I${includedir} -I${includedir}/shell
%define __strip /bin/true
Name: osp-shell
-Summary: The Shell library of OSP
-Version: 1.2.2.0
-Release: 12
+Summary: The Shell library of OSP
+Version: 1.2.2.1
+Release: 1
Group: System/Libraries
License: Apache License, Version 2.0 or Flora
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(osp-uifw)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(ecore)
+BuildRequires: pkgconfig(ecore-x)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(appsvc)
BuildRequires: pkgconfig(minicontrol-provider)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
-BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(libdri2)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libtbm)
-BuildRequires: pkgconfig(dri2proto)
-BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(provider)
BuildRequires: pkgconfig(livebox-viewer)
BuildRequires: pkgconfig(livebox-service)
-BuildRequires: pkgconfig(libdri2)
-BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(shortcut)
BuildRequires: pkgconfig(osp-image)
BuildRequires: pkgconfig(osp-image-core)
BuildRequires: pkgconfig(osp-net)
BuildRequires: pkgconfig(vconf)
BuildRequires: osp-image-core-internal-devel
-BuildRequires: osp-appfw-internal-devel
BuildRequires: osp-uifw-internal-devel
BuildRequires: boost-devel
BuildRequires: pkgconfig(badge)
# runtime requires
Requires: chromium
Requires: osp-appfw
-Requires: osp-uifw
+Requires: osp-uifw
+Requires: osp-image
Provides: libosp-shell.so.1
%files devel
%{_includedir}/osp/*.h
-%{_libdir}/pkgconfig/osp-shell.pc
%files internal-devel
%{_includedir}/osp/shell/*
-
+%{_libdir}/pkgconfig/osp-shell-core.pc
+%{_libdir}/pkgconfig/osp-shell.pc
%files debug
%{_libdir}/osp/debug/*.so*
${CMAKE_SOURCE_DIR}/inc
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/inc
- /usr/include/chromium
- /usr/include/osp
- /usr/include/osp/app
- /usr/include/osp/base
- /usr/include/osp/io
/usr/include/osp/graphics
/usr/include/osp/ui
- /usr/include/osp/security
-
- /usr/include
- /usr/include/appfw
- /usr/include/uifw
- /usr/include/glib-2.0
- /usr/lib/glib-2.0/include
- /usr/include/cairo
- /usr/include/chromium
- /usr/include/dlog
- /usr/include/dbus-1.0
- /usr/include/dri2
- /usr/include/libdrm
- /usr/include/notification
- /usr/lib/dbus-1.0/include
- /usr/include/e_dbus-1
- /usr/include/elementary-1
- /usr/include/efreet-1
- /usr/include/ecore-1
- /usr/include/edje-1
- /usr/include/evas-1
- /usr/include/eet-1
- /usr/include/eina-1
- /usr/include/eina-1/eina
- /usr/include/ethumb-1
- /usr/include/freetype2
- /usr/include/fribidi
- /usr/include/harfbuzz
- /usr/include/libxml2
- /usr/include/minizip
- /usr/include/minicontrol
- /usr/include/pango-1.0
- /usr/include/pixman-1
- /usr/include/system
- /usr/include/vconf
- /usr/include/shortcut
- /usr/include/provider
- /usr/include/livebox-service
- /usr/include/livebox-viewer
/usr/include/osp/media
)
+INCLUDE(FindPkgConfig)
+pkg_check_modules(pkgs REQUIRED
+ capi-appfw-application
+ capi-appfw-app-manager
+ capi-appfw-package-manager
+ chromium
+ dlog
+ libdri2
+ libdrm
+ libtbm
+ ecore
+ ecore-x
+ elementary
+ evas
+ livebox-viewer
+ livebox-service
+ minicontrol-provider
+ notification
+ osp-appfw
+ provider
+ shortcut
+ vconf
+ x11
+ xext
+ xdamage
+)
+
+FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+
SET (${this_target}_SOURCE_FILES
FShellQuickPanelFrame.cpp
FShell_QuickPanelFrame.cpp
## Create Library
ADD_LIBRARY (${this_target} SHARED ${${this_target}_SOURCE_FILES})
+ADD_DEPENDENCIES(${this_target} osp-shell-core)
+
## SET LINKER FLAGS
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed")
TARGET_LINK_LIBRARIES(${this_target} "-lpthread" )
-TARGET_LINK_LIBRARIES(${this_target} "-lchromium" )
-TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw" )
TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-uifw" )
TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-image" )
-TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-shell-core" )
-TARGET_LINK_LIBRARIES(${this_target} "-lcapi-appfw-application" )
-TARGET_LINK_LIBRARIES(${this_target} "-lcapi-appfw-app-manager" )
-TARGET_LINK_LIBRARIES(${this_target} "-lcapi-appfw-package-manager" )
-TARGET_LINK_LIBRARIES(${this_target} "-lnotification" )
-TARGET_LINK_LIBRARIES(${this_target} "-lecore" )
-TARGET_LINK_LIBRARIES(${this_target} "-levas" )
-TARGET_LINK_LIBRARIES(${this_target} "-leina" )
-TARGET_LINK_LIBRARIES(${this_target} "-lecore_evas" )
-TARGET_LINK_LIBRARIES(${this_target} "-lelementary" )
-TARGET_LINK_LIBRARIES(${this_target} "-lminicontrol-provider" )
-#TARGET_LINK_LIBRARIES(${this_target} "-lcapi-system-runtime-info")
-TARGET_LINK_LIBRARIES(${this_target} "-lX11" )
-TARGET_LINK_LIBRARIES(${this_target} "-lXext" )
-TARGET_LINK_LIBRARIES(${this_target} "-lecore_x" )
-TARGET_LINK_LIBRARIES(${this_target} "-llivebox-viewer" )
-TARGET_LINK_LIBRARIES(${this_target} "-llivebox-service" )
-TARGET_LINK_LIBRARIES(${this_target} "-lprovider" )
-TARGET_LINK_LIBRARIES(${this_target} "-lshortcut" )
-TARGET_LINK_LIBRARIES(${this_target} "-ldri2" )
-TARGET_LINK_LIBRARIES(${this_target} "-ldrm" )
-TARGET_LINK_LIBRARIES(${this_target} "-ltbm" )
+TARGET_LINK_LIBRARIES(${this_target} osp-shell-core)
+TARGET_LINK_LIBRARIES(${this_target} ${pkgs_LDFLAGS})
SET_TARGET_PROPERTIES(${this_target}
PROPERTIES
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}.${FULLVER} ${LIBRARY_OUTPUT_PATH}/debug/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}.${MAJORVER}
COMMAND ${CMAKE_STRIP} --strip-unneeded ${LIBRARY_OUTPUT_PATH}/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}
COMMENT "strip ${this_target}"
-)
+)
${CMAKE_SOURCE_DIR}/inc
${CMAKE_SOURCE_DIR}/src/inc
${CMAKE_SOURCE_DIR}/src/core
- /usr/include/chromium
- /usr/include/osp
- /usr/include/osp/app
- /usr/include/osp/base
- /usr/include/osp/io
- /usr/include/osp/security
/usr/include/osp/graphics
-
- /usr/include/appfw
- /usr/include/notification
- /usr/include/shortcut
- /usr/include/vconf
- /usr/include/badge
- /usr/include/glib-2.0
- /usr/lib/glib-2.0/include
)
+INCLUDE(FindPkgConfig)
+pkg_check_modules(corepkgs REQUIRED
+ capi-appfw-application
+ capi-appfw-app-manager
+ badge
+ chromium
+ glib-2.0
+ notification
+ osp-appfw
+ shortcut
+ vconf
+)
+
+FOREACH(flag ${corepkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
SET (${this_target}_SOURCE_FILES
FShellLockManager.cpp
FShellNotificationManager.cpp
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed")
TARGET_LINK_LIBRARIES(${this_target} "-lpthread" )
-TARGET_LINK_LIBRARIES(${this_target} "-lchromium" )
-TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw" )
TARGET_LINK_LIBRARIES(${this_target} "-losp-uifw" )
-TARGET_LINK_LIBRARIES(${this_target} "-lcapi-appfw-application" )
-TARGET_LINK_LIBRARIES(${this_target} "-lcapi-appfw-app-manager" )
-TARGET_LINK_LIBRARIES(${this_target} "-lnotification" )
-TARGET_LINK_LIBRARIES(${this_target} "-lshortcut" )
-TARGET_LINK_LIBRARIES(${this_target} "-lvconf" )
-TARGET_LINK_LIBRARIES(${this_target} "-lbadge" )
+TARGET_LINK_LIBRARIES(${this_target} ${corepkgs_LDFLAGS})
SET_TARGET_PROPERTIES(${this_target}
PROPERTIES