Remove unnecessary dependencies 35/50335/6 accepted/tizen/mobile/20151103.224753 accepted/tizen/tv/20151103.224803 accepted/tizen/wearable/20151103.224817 submit/tizen/20151028.061056 submit/tizen/20151029.231927 submit/tizen/20151103.063941
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 28 Oct 2015 05:09:30 +0000 (14:09 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 28 Oct 2015 05:53:28 +0000 (14:53 +0900)
Change-Id: Iae70701970713212c91ddbbe2d3d230656613e3f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/syspopup.h
syspopup/CMakeLists.txt
syspopup/syspopup-wayland.pc.in [deleted file]
syspopup/syspopup-x.pc.in [deleted file]
syspopup/syspopup.c
syspopup/syspopup.pc.in [new file with mode: 0644]
syspopup/syspopup_efl.c

index 80a8f8d..371dd0c 100755 (executable)
 #ifndef __SYSPOPUP_H__
 #define __SYSPOPUP_H__
 
-#ifndef WAYLAND
-#include <utilX.h>
-#endif
-
 #include <bundle.h>
 #include <Elementary.h>
 
index 5941566..bf66abb 100644 (file)
@@ -20,11 +20,12 @@ MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
 INCLUDE(FindPkgConfig)
 
 SET(APPSVC_SPPPGS_CHECK_MODULES "dlog bundle sqlite3 glib-2.0 gio-2.0 evas elementary ecore ecore-input libtzplatform-config")
+SET(pc_requires "bundle elementary")
 
 IF (with_wayland)
-    pkg_check_modules(sppkgs REQUIRED ${APPSVC_SPPPGS_CHECK_MODULES})
+       pkg_check_modules(sppkgs REQUIRED ${APPSVC_SPPPGS_CHECK_MODULES})
 ELSE (with_wayland)
-    pkg_check_modules(sppkgs REQUIRED ${APPSVC_SPPPGS_CHECK_MODULES} utilX ecore-x x11)
+       pkg_check_modules(sppkgs REQUIRED ${APPSVC_SPPPGS_CHECK_MODULES} utilX ecore-x x11)
 ENDIF (with_wayland)
 
 FOREACH(flag ${sppkgs_CFLAGS})
@@ -40,7 +41,7 @@ SET(CMAKE_C_FLAGS_RELEASE "-O2")
 
 SET(CMAKE_SKIP_BUILD_RPATH true)
 
-# Get uname value to set 'TARGET' definition 
+# Get uname value to set 'TARGET' definition
 # TODO: Is this needed?
 FIND_PROGRAM(UNAME NAMES uname)
 EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
@@ -62,13 +63,12 @@ add_library(syspopup SHARED syspopup.c syspopup_efl.c)
 target_link_libraries(syspopup syspopup_mods ${sppkgs_LDFLAGS})
 SET_TARGET_PROPERTIES(syspopup PROPERTIES SOVERSION 0.1.0)
 
+SET(PC_NAME libsyspopup)
+SET(PC_REQUIRED ${pc_requires})
+SET(PC_LDFLAGS -lsyspopup)
+
 # pkgconfig file
-#CONFIGURE_FILE(syspopup.pc.in syspopup/syspopup.pc @ONLY)
-IF (with_wayland)
-    CONFIGURE_FILE(syspopup-wayland.pc.in ${CMAKE_CURRENT_BINARY_DIR}/syspopup.pc @ONLY)
-ELSE (with_wayland)
-    CONFIGURE_FILE(syspopup-x.pc.in ${CMAKE_CURRENT_BINARY_DIR}/syspopup.pc @ONLY)
-ENDIF (with_wayland)
+CONFIGURE_FILE(syspopup.pc.in ${CMAKE_CURRENT_BINARY_DIR}/syspopup.pc @ONLY)
 
 ### Install ###
 INSTALL(TARGETS syspopup DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
diff --git a/syspopup/syspopup-wayland.pc.in b/syspopup/syspopup-wayland.pc.in
deleted file mode 100644 (file)
index 68c122a..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# Package Information for pkg-config
-
-prefix=/usr
-exec_prefix=@EXEC_PREFIX@
-libdir=@LIB_INSTALL_DIR@
-includedir=@INCLUDEDIR@
-
-Name: libsyspopup
-Description: system popup library for ui 
-Version: @VERSION@
-Requires: dlog bundle sqlite3 glib-2.0 elementary dbus-glib-1
-Libs: -L${libdir} -lsyspopup
-Cflags: -I${includedir}
diff --git a/syspopup/syspopup-x.pc.in b/syspopup/syspopup-x.pc.in
deleted file mode 100644 (file)
index 5bbb491..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# Package Information for pkg-config
-
-prefix=/usr
-exec_prefix=@EXEC_PREFIX@
-libdir=@LIB_INSTALL_DIR@
-includedir=@INCLUDEDIR@
-
-Name: libsyspopup
-Description: system popup library for ui 
-Version: @VERSION@
-Requires: dlog bundle sqlite3 glib-2.0 elementary utilX ecore-x dbus-glib-1
-Libs: -L${libdir} -lsyspopup
-Cflags: -I${includedir}
index 3e3e36f..4757965 100755 (executable)
@@ -30,6 +30,7 @@
 #include <X11/Xatom.h>
 #include <X11/Xutil.h>
 #include <Ecore_X.h>
+#include <utilX.h>
 #endif
 
 #define WIN_PROP_NAME "SYSTEM_POPUP"
diff --git a/syspopup/syspopup.pc.in b/syspopup/syspopup.pc.in
new file mode 100644 (file)
index 0000000..9790980
--- /dev/null
@@ -0,0 +1,13 @@
+# Package Information for pkg-config
+
+prefix=@PREFIX@
+exec_prefix=@EXEC_PREFIX@
+libdir=@LIB_INSTALL_DIR@
+includedir=@INCLUDEDIR@
+
+Name: @PC_NAME@
+Description: system popup library for ui
+Version: @VERSION@
+Requires: @PC_REQUIRED@
+Libs: -L${libdir} @PC_LDFLAGS@
+Cflags: -I${includedir}
index 3e1b4f2..1db6f2a 100755 (executable)
@@ -31,6 +31,7 @@
 
 #ifndef WAYLAND
 #include <Ecore_X.h>
+#include <utilX.h>
 #endif
 
 #ifndef WAYLAND