aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)AuthorFilesLines
2018-11-20Add library as valid header file locationDarryl Green1-0/+1
The persistent key implementation will be split across multiple files as it will eventually be implementing multiple storage backends. As these internal functions will need to be callable by other files, we will add the headers in the library folder. This commit adds this include location to the necessary scripts. For tests, the library is added as an include location as testing on-target with Mbed OS is not possible with paths including ".."
2018-08-29restore missing operation to CMakeLists.txtNir Sonnenschein1-0/+1
2018-08-29compile time warning of 128bit ctr_drbg keys and standardized warningsNir Sonnenschein1-1/+17
a compile time print was added warning in case of 128bit ctr_drbg keys. This was don't to avoid an actual warning in these cases (making build with warnings as errors possible). Additional warnings on the Changelog/headers were set to use the same phrasing phrasing was approved by Gilles and Janos.
2018-08-06Incorporated code review commentsMohammad Azim Khan1-0/+1
2018-06-28Replace tabs with spacesAndrzej Kurek1-2/+2
2018-06-28Change the cpp test to be optionalAndrzej Kurek1-1/+5
Remove unnecessary defines from the test. Test by defining TEST_CPP using makefiles or cmake.
2018-06-28Add a test with a cpp executable including all mbed TLS headersAndrzej Kurek1-1/+1
In case of any problems with the 'extern "C"' directives, building the executable will fail
2018-06-14Merge remote-tracking branch 'public/pr/1075' into developmentSimon Butcher1-2/+2
2018-06-12Merge remote-tracking branch 'public/pr/1646' into developmentSimon Butcher1-7/+16
2018-06-08Change symlink to hardlink to avoid permission issuesDarryl Green1-1/+1
2018-06-07Fix out-of-tree testing symlinks on WindowsDarryl Green1-1/+5
2018-06-01Merge remote-tracking branch 'public/pr/1470' into developmentSimon Butcher1-0/+33
2018-05-25Treat warnings as errors for IARAzim Khan1-9/+16
Fix IAR compiler warnings Two warnings have been fixed: 1. code 'if( len <= 0xFFFFFFFF )' gave warning 'pointless integer comparison'. This was fixed by wraping the condition in '#if SIZE_MAX > 0xFFFFFFFF'. 2. code 'diff |= A[i] ^ B[i];' gave warning 'the order of volatile accesses is undefined in'. This was fixed by read the volatile data in temporary variables before the computation. Explain IAR warning on volatile access Consistent use of CMAKE_C_COMPILER_ID
2018-05-24Change the value of fno-sanitize-recoverRon Eldor1-2/+2
Change the value of `-fno-sanitize-recover` from `undefined,integer` to `all`
2018-04-05Copy DartConfiguration.tcl, needed for make memcheckGilles Peskine1-0/+4
2018-03-23Fix some comments regarding what files are symlinkedGilles Peskine1-2/+1
2018-03-22Merge remote-tracking branch 'myfork/pr_1073' into development-proposedGilles Peskine1-1/+1
2018-03-21Support out-of-tree testing with CMakeGilles Peskine1-0/+30
Create extra symbolic links with CMake so that SSL testing (ssl-opt.sh and compat.sh) works in out-of-tree builds.
2018-01-19Have doxygen run in the doxygen directoryKrzysztof Stachowiak1-2/+2
When the Doxywizzard GUI is used and the doxyfile is loaded, the workind directory for doxygen is set to the location of the doxyfile. However the Make and CMake build systems expect doxygen to be ran from the top level directory. This commit unifies the build system and the Doxywizzard GUI so that all of them expect doxygen to be executed in the doxygen directory.
2017-09-19Support only new CLang versionRon Eldor1-10/+2
Support only new CLang version by enabling only `-fno-sanitize-recover=undefined,integer`
2017-09-04Address Azim's comentsRon Eldor1-2/+2
Fix typo and use new check for clang>3.5m according to azim's comments
2017-09-03Suport clang version 3.8Ron Eldor1-2/+10
Check CLANG version, and according to the version, set the correct paramters. fix for #1072
2017-09-01Use current source paths for config file creation commandVOLAT Matthieu 229231-1/+1
That way, the project integrate more nicely when used as a cmake sub-project.
2016-11-10Fix config of compiler warning flags with MSVCSimon B1-1/+3
Compiler warnings were being configured twice and not suppressed on the test suites with Microsoft Visual Studio.
2016-09-06Allow cmake 'out-of-source' buildsAndres AG1-1/+1
Allow mbed TLS to be build in a subdirectory. Also add a test in all.sh
2016-06-21Changes multiline string (for CMake >3.0) to list (for CMake 2.8)Simon Butcher1-6/+14
2016-06-21Adds a check and warning for the null entropy optionSimon Butcher1-0/+30
If the option MBEDTLS_TEST_NULL_ENTROPY is enabled, the cmake generated makefile will generate an error unless a UNSAFE_BUILD switch is also enabled. Equally, a similar warning will always be generated if the Makefile is built, and another warning is generated on every compilation of entropy.c. This is to ensure the user is aware of what they're doing when they enable the null entropy option.
2016-03-09Update interop tests to default configurationSimon Butcher1-1/+1
Removed SSLv3 from the default tests in compat.sh, and adapted the test cases in all.sh to include an additional SSLv3 regression test suite.
2016-03-09Update default configurationJanos Follath1-1/+1
Change the default settings for SSL and modify the tests accordingly.
2016-01-12Revert changes done to 'make apidoc' targetManuel Pégourié-Gonnard1-14/+3
This partially reverts 1989caf71c1d4 (only the changes to Makefile and CMakeLists, the addition to scripts/config.pl is kept). Modifying config.h in the apidoc target creates a race condition with make -j4 all apidoc where some parts of the library, tests or programs could be built with the wrong config.h, resulting in all kinds of (semi-random) errors. Recent versions of CMake mitigate this by adding a .NOTPARALLEL target to the generated Makefile, but people would still get errors with older CMake versions that are still in use (eg in RHEL 5), and with plain make. An additional issue is that, by failing to use cp -p, the apidoc target was updating the timestamp on config.h, which seems to cause further build issues. Let's get back to the previous, safe, situation. The improved apidoc building will be resurrected in a script in the next commit. fixes #390 fixes #391
2016-01-04Use a full config.h with doxygenManuel Pégourié-Gonnard1-3/+14
Otherwise we get warnings that some documentation items don't have corresponding #define, and more importantly the corresponding snippets are not included in the output. For that we need a modified version of the "full" argument for config.pl. Also, the new CMakeLists.txt target only works on Unix (which was already the case of the Makefile target). Hopefully this is not an issue as people are unlikely to need that target on Windows.
2015-08-31Only use -Wshadow with GCC 4.8 or higherManuel Pégourié-Gonnard1-1/+4
Before that, we get useless warnings about local variables shadowing extern functions, which means we can't have a local variable called index when we include string.h. https://lkml.org/lkml/2006/11/28/239 https://gcc.gnu.org/gcc-4.8/changes.html
2015-08-31Fix -Wshadow warningsManuel Pégourié-Gonnard1-2/+2
Checked that it is supported by gcc 4.2.1 (FreeBSD 9). fixes #240
2015-08-11Fix missing break in switch for SSL presetsManuel Pégourié-Gonnard1-1/+1
closes #235
2015-07-19Fix bug with cmake and old version of GCCManuel Pégourié-Gonnard1-1/+8
2015-07-09cmake: testing disabled by default with MSVCManuel Pégourié-Gonnard1-1/+8
Previously testing was enabled only if GCC || Clang, and I though this was a "proxy" for the likelihood of Perl being available. Apparently it was not just that, since MSVC gives me a lot of errors when trying to build tests. Let's fix them later, and disable for now.
2015-07-08cmake: move options to the topManuel Pégourié-Gonnard1-11/+10
2015-07-08Simplify some scriptsManuel Pégourié-Gonnard1-2/+2
ssl-opt.sh and compat.sh can now be run from root too
2015-07-08Tests enabled by default with cmake on win32Manuel Pégourié-Gonnard1-8/+1
People who don't have Perl will have to disable them manually. That way they have an occasion to notice and install Perl.
2015-07-01More cmake for windows tune-upsManuel Pégourié-Gonnard1-0/+4
2015-07-01Don't rely on CMake 3.0 featuresManuel Pégourié-Gonnard1-36/+40
Too recent (about one year).
2015-07-01Adjust prerequisites for tests in cmakeManuel Pégourié-Gonnard1-27/+33
2015-06-25cmake: no reason for test to depend on gcc/clangManuel Pégourié-Gonnard1-6/+2
2015-06-25Fix whitespace in CMakeLists.txtManuel Pégourié-Gonnard1-52/+52
- all spaces no tabs - indent with 4 spaces everywhere
2015-06-25Minor tune-ups in CMakeManuel Pégourié-Gonnard1-15/+5
2015-03-13Change "check" build mode to use -OsManuel Pégourié-Gonnard1-2/+2
2015-01-27Rename project in CMakeManuel Pégourié-Gonnard1-3/+3
TODO: to create symlinks to the old names!
2015-01-23Fix error in lcov targetManuel Pégourié-Gonnard1-1/+1
2015-01-23Rename in cmake help stringsManuel Pégourié-Gonnard1-5/+5
2015-01-22Rename doxyfileManuel Pégourié-Gonnard1-1/+1