Skip to content

Commit

Permalink
prepare initial release including static files
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Apr 24, 2020
1 parent 84ca862 commit dcba1f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion static/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions test/mormot2tests.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcba1f7

Please sign in to comment.