Remove unnecessary dependencies 90/198790/3
authorDariusz Michaluk <d.michaluk@samsung.com>
Tue, 29 Jan 2019 14:25:08 +0000 (15:25 +0100)
committerDariusz Michaluk <d.michaluk@samsung.com>
Mon, 25 Feb 2019 12:57:57 +0000 (13:57 +0100)
Do not expose unnecessary libraries to the program
that is linking with libwebappenc library.
If the program will not be using the symbols of the required library,
it should not be linking directly to that library.

pkg-config guide:
https://people.freedesktop.org/~dbn/pkg-config-guide.html

Change-Id: I6ad22fb8e57edf5c59216db2670520711bf66568

CMakeLists.txt
build/libwebappenc.pc.in

index 436eb74bf623239923fee568cd2bce633ec86e9c..27a4fee7775e0fb8780a4e0ee3fedddb7f2f848d 100644 (file)
@@ -75,7 +75,6 @@ PKG_CHECK_MODULES(WEB_APP_ENC_DEPS
 
 ############################ For PC file setting  ################################
 SET(PC_NAME lib${PROJECT_NAME})
-SET(PC_REQUIRED ${DEPENDENTS})
 SET(PC_LDFLAGS -l${PROJECT_NAME})
 #SET(PC_CFLAGS -I\${includedir})
 
index b530dcf93e35ba4fbceb6873d2aea24d93fc672e..e86fde8b7aa2a49296ab104ff777372eece713ba 100644 (file)
@@ -5,6 +5,6 @@ includedir=@PREFIX@/include
 Name: @PC_NAME@
 Description: Web application encryption and decryption service based on key-manager
 Version: @VERSION@
-Requires: @PC_REQUIRED@
+Requires:
 Libs: @PC_LDFLAGS@
 Cflags: @PC_CFLAGS@