TF-PSA-Crypto.cmake: Do not support package config/install/apidoc/lcov
Do not support package config, install, apidoc
and lcov for the time being.
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
diff --git a/tf-psa-crypto/TF-PSA-Crypto.cmake b/tf-psa-crypto/TF-PSA-Crypto.cmake
index 8372905..3c50908 100644
--- a/tf-psa-crypto/TF-PSA-Crypto.cmake
+++ b/tf-psa-crypto/TF-PSA-Crypto.cmake
@@ -76,7 +76,8 @@
option(GEN_FILES "Generate the auto-generated files as needed" ON)
endif()
-option(DISABLE_PACKAGE_CONFIG_AND_INSTALL "Disable package configuration, target export and installation" ${MBEDTLS_AS_SUBPROJECT})
+# Support for package config and install to be added later.
+option(DISABLE_PACKAGE_CONFIG_AND_INSTALL "Disable package configuration, target export and installation" ON)
if (CMAKE_C_SIMULATE_ID)
set(COMPILER_ID ${CMAKE_C_SIMULATE_ID})
@@ -325,8 +326,6 @@
add_subdirectory(library)
-add_subdirectory(pkgconfig)
-
#
# The C files in tests/src directory contain test code shared among test suites
# and programs. This shared test code is compiled and linked to test suites and
@@ -423,10 +422,6 @@
add_subdirectory(programs)
endif()
-ADD_CUSTOM_TARGET(${MBEDTLS_TARGET_PREFIX}apidoc
- COMMAND doxygen mbedtls.doxyfile
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doxygen)
-
if(ENABLE_TESTING)
enable_testing()
@@ -434,18 +429,6 @@
# additional convenience targets for Unix only
if(UNIX)
-
- # For coverage testing:
- # 1. Build with:
- # cmake -D CMAKE_BUILD_TYPE=Coverage /path/to/source && make
- # 2. Run the relevant tests for the part of the code you're interested in.
- # For the reference coverage measurement, see
- # tests/scripts/basic-build-test.sh
- # 3. Run scripts/lcov.sh to generate an HTML report.
- ADD_CUSTOM_TARGET(lcov
- COMMAND scripts/lcov.sh
- )
-
ADD_CUSTOM_TARGET(memcheck
COMMAND sed -i.bak s+/usr/bin/valgrind+`which valgrind`+ DartConfiguration.tcl
COMMAND ctest -O memcheck.log -D ExperimentalMemCheck
@@ -464,39 +447,3 @@
${CMAKE_CURRENT_BINARY_DIR}/DartConfiguration.tcl COPYONLY)
endif()
endif()
-
-if(NOT DISABLE_PACKAGE_CONFIG_AND_INSTALL)
- configure_package_config_file(
- "cmake/MbedTLSConfig.cmake.in"
- "cmake/MbedTLSConfig.cmake"
- INSTALL_DESTINATION "cmake")
-
- write_basic_package_version_file(
- "cmake/MbedTLSConfigVersion.cmake"
- COMPATIBILITY SameMajorVersion
- VERSION 4.0.0)
-
- install(
- FILES "${CMAKE_CURRENT_BINARY_DIR}/cmake/MbedTLSConfig.cmake"
- "${CMAKE_CURRENT_BINARY_DIR}/cmake/MbedTLSConfigVersion.cmake"
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/MbedTLS")
-
- export(
- EXPORT MbedTLSTargets
- NAMESPACE MbedTLS::
- FILE "cmake/MbedTLSTargets.cmake")
-
- install(
- EXPORT MbedTLSTargets
- NAMESPACE MbedTLS::
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/MbedTLS"
- FILE "MbedTLSTargets.cmake")
-
- if(CMAKE_VERSION VERSION_GREATER 3.15 OR CMAKE_VERSION VERSION_EQUAL 3.15)
- # Do not export the package by default
- cmake_policy(SET CMP0090 NEW)
-
- # Make this package visible to the system
- export(PACKAGE MbedTLS)
- endif()
-endif()