ADD_DEFINITIONS("-DDPL_LOGS_ENABLED")
IF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
ADD_DEFINITIONS("-DTIZEN_FEATURE_CERT_SVC_OCSP_CRL")
-ENDIF()
+ENDIF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
ADD_LIBRARY(${TARGET_CERT_SVC_LIB} SHARED ${CERT_SVC_SOURCES})
INSTALL(FILES ${PROJECT_SOURCE_DIR}/res/fota/FOTA_ROOT.cer
DESTINATION ${TZ_SYS_SHARE}/cert-svc/certs/fota
)
-ENDIF()
+ENDIF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
INSTALL(DIRECTORY ${PROJECT_SOURCE_DIR}/etc/empty
DESTINATION ${TZ_SYS_SHARE}/cert-svc/certs/sim/operator
FILES_MATCHING PATTERN THISPATTERNMUSTNOTMATCH
PKG_CHECK_MODULES(VCORE_DEPS
dpl-db-efl
)
-ENDIF()
+ENDIF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
IF(TIZEN_FEAT_OSP_DISABLE EQUAL 1)
ADD_DEFINITIONS("-DTIZEN_FEATURE_OSP_DISABLE")
-ENDIF()
+ENDIF(TIZEN_FEAT_OSP_DISABLE EQUAL 1)
SET(LIBCRYPTSVC_DIR
${PROJECT_SOURCE_DIR}/vcore
${VCORE_SRC_DIR}/SoupMessageSendAsync.cpp
${VCORE_SRC_DIR}/OCSPUtil.c
)
-ENDIF()
+ENDIF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
+IF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
SET(VCORE_INCLUDES
${VCORE_DEPS_INCLUDE_DIRS}
${VCORE_SRC_DIR}
${VCORE_DIR}/src
-IF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
${VCORE_DIR}/src/orm
-ENDIF()
${VCORE_DIR}/src/legacy
${CMAKE_BINARY_DIR}/vcore/src
)
+ELSE(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
+SET(VCORE_INCLUDES
+ ${VCORE_DEPS_INCLUDE_DIRS}
+ ${VCORE_SRC_DIR}
+ ${VCORE_DIR}/src
+ ${VCORE_DIR}/src/legacy
+ ${CMAKE_BINARY_DIR}/vcore/src
+ )
+ENDIF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
ADD_DEFINITIONS(${VCORE_DEPS_CFLAGS})
ADD_DEFINITIONS(${VCORE_DEPS_CFLAGS_OTHER})
ADD_DEFINITIONS("-DCERT_SVC_LOG")
IF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
ADD_DEFINITIONS("-DTIZENUCT_FEATURE_CERT_SVC_OCSP_CRL")
-ENDIF()
+ENDIF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
INCLUDE_DIRECTORIES(${VCORE_INCLUDES})
VERSION ${VERSION})
IF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
ADD_DEPENDENCIES(${TARGET_VCORE_LIB} Sqlite3DbWTF)
-ENDIF()
+ENDIF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
IF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
TARGET_LINK_LIBRARIES(${TARGET_VCORE_LIB}
${TARGET_CERT_SVC_LIB}
dpl-db-efl
)
-ELSE()
+ELSE(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
TARGET_LINK_LIBRARIES(${TARGET_VCORE_LIB}
${VCORE_DEPS_LIBRARIES}
${TARGET_CERT_SVC_LIB}
)
-ENDIF ()
+ENDIF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
INSTALL(TARGETS ${TARGET_VCORE_LIB}
DESTINATION ${LIB_INSTALL_DIR}
)
${VCORE_SRC_DIR}/OCSPCertMgrUtil.h
DESTINATION ${INCLUDEDIR}/cert-svc/vcore
)
-ENDIF()
+ENDIF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
INSTALL(FILES
${VCORE_DIR}/src/cert-svc/ccert.h
${VCORE_DIR}/src/cert-svc/cocsp.h
DESTINATION ${INCLUDEDIR}/cert-svc/cert-svc
)
-ENDIF()
+ENDIF(TIZEN_FEAT_PROFILE_CERT_SVC_OCSP_CRL)
#FILE(MAKE_DIRECTORY %{TZ_SYS_SHARE}/cert-svc/pkcs12)