quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

cmake_package_install.c (718B)


      1 /*
      2  * Simple program to test that Mbed TLS builds correctly as an installable CMake
      3  * package.
      4  *
      5  *  Copyright The Mbed TLS Contributors
      6  *  SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
      7  */
      8 
      9 #include "mbedtls/build_info.h"
     10 
     11 #include "mbedtls/platform.h"
     12 
     13 #include "mbedtls/version.h"
     14 
     15 /* The main reason to build this is for testing the CMake build, so the program
     16  * doesn't need to do very much. It calls a single library function to ensure
     17  * linkage works, but that is all. */
     18 int main()
     19 {
     20     /* This version string is 18 bytes long, as advised by version.h. */
     21     char version[18];
     22 
     23     mbedtls_version_get_string_full(version);
     24 
     25     mbedtls_printf("Built against %s\n", version);
     26 
     27     return 0;
     28 }