Remove unnecessary dependencies 67/206267/2 submit/tizen/20190606.103449
authorDariusz Michaluk <d.michaluk@samsung.com>
Wed, 15 May 2019 16:10:52 +0000 (18:10 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Thu, 16 May 2019 13:54:54 +0000 (15:54 +0200)
Do not expose unnecessary libraries to the program
that is linking with libcryptsvc 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: I7faa0e7b8414d3fd0ee7bb864239c2c50c86de37

CMakeLists.txt
cryptsvc.pc.in
include/SecCryptoSvc.h

index 98057794635d8a5badd38619626d319e7828daa6..bc104681cd309645e2a89d60c87d0e631886a0ca 100644 (file)
@@ -85,7 +85,6 @@ INSTALL(TARGETS ${TARGET_DEVICE_INFO} DESTINATION ${LIB_INSTALL_DIR})
 
 #########################################################################################
 
-SET(PC_REQUIRED ${CRYPTSVC_REQUIRES})
 CONFIGURE_FILE(${TARGET_CRYPTSVC}.pc.in ${TARGET_CRYPTSVC}.pc @ONLY)
 
 INSTALL(FILES ${TARGET_CRYPTSVC}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
index fef725f7bda9b16d12cc74b1e264f524d5a23821..192467277936ec1d77e7a8598ecb489352ad585f 100644 (file)
@@ -7,7 +7,7 @@ includedir=${prefix}/include
 Name: cryptsvc
 Description: @DESCRIPTION@
 Version: @VERSION@
-Requires: @PC_REQUIRED@
+Requires:
 Libs: -L${libdir} -lcryptsvc
 Cflags: -I${includedir}
 
index 00d3c04a9d87fca269d462d8165611a2b90aae3e..c1c69a9ee976321f2c4e20c92aff14847d465824 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000 - 2019 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,12 +25,6 @@ extern "C"
 
 #include <stdbool.h>
 
-//#ifdef OPENSSL_NO_ENGINE
-//#error Do not use define <OPENSSL_NO_ENGINE>
-//#else
-#include <openssl/engine.h>
-//#endif
-
 /*typedef enum
 {
     SEC_CRYPTO_CIPHER_NULL = 0,