From dcba1f7e8c9aa4475982f57ad83371f6d16a5a10 Mon Sep 17 00:00:00 2001 From: Arnaud Bouchez Date: Fri, 24 Apr 2020 15:16:13 +0200 Subject: [PATCH] prepare initial release including static files --- static/README.md | 11 ++++++++++- test/mormot2tests.dpr | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/static/README.md b/static/README.md index a68ee3bea..5f36eb807 100644 --- a/static/README.md +++ b/static/README.md @@ -12,12 +12,21 @@ Those .o/.obj files were compiled from optimized C/asm, for the best performance Note that such external files are not mandatory to compile the framework source code. There is always a "pure pascal" fallback code available, or use e.g. the official external sqlite3 library. +## Delphi Setup + +The framework source code uses relative paths to include the expected .o/.obj files from the static\delphi sub-folder, so nothing special is needed. + + ## FPC Cross-Platform Setup Ensure that "Libraries -fFl" in your FPC project options is defined as: - ..\static\$(TargetCPU)-$(TargetOS) + + ..\static\$(TargetCPU)-$(TargetOS) + (replace ..\static by an absolute/relative path to this folder) +It will ensure that when (cross-)compiling your project, FPC will link the expected .o binary files, depending on the target system. + ## Keep In Synch Ensure you keep in synch these binaries with the main framework source code. diff --git a/test/mormot2tests.dpr b/test/mormot2tests.dpr index bc4287edd..733d3f3a4 100644 --- a/test/mormot2tests.dpr +++ b/test/mormot2tests.dpr @@ -23,6 +23,7 @@ uses mormot.core.variants in '..\src\core\mormot.core.variants.pas', mormot.core.json in '..\src\core\mormot.core.json.pas', mormot.core.log in '..\src\core\mormot.core.log.pas', + mormot.core.crypto in '..\src\core\mormot.core.crypto.pas', test.core.base; type