Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ cJSON CJSON
cJSON_Hooks Hooks
cJSON_bool Bool
```
You can customize these type mappings by editing this file (see [Customizing Bindings](#type-customization)).
You can customize these type mappings by editing this file (see [Customizing Bindings](#type-customization)).

### Customizing Bindings
#### Function Customization
Expand Down
2 changes: 1 addition & 1 deletion doc/en/dev/llcppcfg.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
The llcppg core configuration file, `llcppg.cfg`, can be complex and error-prone to configure. This is because it requires a deep understanding of the project structure and compilation details. We have designed llcppcfg to automatically generate the basic `llcppg.cfg` configuration file for users. It greatly simplifies the configuration process, allowing users to simply provide the target library's name as input. The tool then generates corresponding configuration content based on established rules or templates.

# Basic Usage
`llcppcfg [options] <library actual PC name>`
`llcppcfg [options] <library actual pkg-config name>`

## Example of Generating Configuration File
`llcppcfg cjson`
Expand Down
6 changes: 3 additions & 3 deletions doc/en/dev/llcppg.md
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ xmlChar * xsltGetNsProp(xmlNodePtr node, const xmlChar *name, const xmlChar *nam
If `xmlChar` and `xmlNodePtr` mappings are not found (not declare `llcppg-libxml` in `deps`), llcppg will notify the user of these missing types and indicate they are from `libxml2` header files.
The corresponding notification would be:
```bash
convert /path/to/include/libxml2/libxml/xmlstring.h first, declare its converted package in `llcppg.cfg` deps for load [xmlChar].
convert /path/to/libxml2/libxml/tree.h first, declare its converted package in `llcppg.cfg` deps for load [xmlNodePtr].
convert /path/to/include/libxml2/libxml/xmlstring.h first, declare its converted package in `llcppg.cfg` deps to load [xmlChar].
convert /path/to/libxml2/libxml/tree.h first, declare its converted package in `llcppg.cfg` deps to load [xmlNodePtr].
```

For this project, `llcppg` will automatically handle type references to libxml2. During the process, `llcppg` uses the `llcppg.pub` file from the generated libxml2 package to ensure type consistency.
Expand Down Expand Up @@ -728,7 +728,7 @@ The configuration file supports the following options:
- `typeMap`: Custom name mapping from C types to Go types.
- `symMap`: Custom name mapping from C function names to Go function names.
- `staticLib`: Set to true to enable static library symbol reading instead of dynamic library linking. When enabled, llcppg will read symbols from static libraries (.a files) rather than dynamic libraries (.so/.dylib files).
- `headerOnly`: Set to true to ​​skip the symbol intersection process​​ described in [step 3](#llcppsymg).
- `headerOnly`: Set to true to skip the symbol intersection process described in [step 3](#llcppsymg).

## Output

Expand Down
Loading