Skip to content

Commit

Permalink
Cleanup README
Browse files Browse the repository at this point in the history
  • Loading branch information
asivery authored Dec 22, 2024
1 parent 1eea04a commit b847184
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,6 @@ copy header.h ; The file header.h will be copied to the temporary build di
make main.c ; The autogenerated buildscript will build main.c
```

If you wish to write an extension in a language different to C, you need to write a 'module base' file, which will act as a bridge between XOVI and the rest of your code. The description file has to reflect that:

```
version 0.1.0
modulebase base.c
import ...
export ...
```

Such a description file will only result in the generation of one file - `xovi.c` (which will contain your module base), which can later be compiled and linked into the final extension's `.so` file.

This code would correspond to the following extension project:
Expand Down Expand Up @@ -119,6 +109,16 @@ char *override$strdup(char *string) { // Override functions have to be prefixed
#include <string.h>
```

If you wish to write an extension in a language different to C, you need to write a 'module base' file, which will act as a bridge between XOVI and the rest of your code. The description file has to reflect that:

```
version 0.1.0
modulebase base.c
import ...
export ...
```

To build the extension, run xovigen to generate the temporary build directory:

`python3 util/xovigen.py -o /tmp/builddir example.xovi`
Expand Down

0 comments on commit b847184

Please sign in to comment.