File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ # How to generate the code?
2+
3+ ## Requirements
4+ You need to have a binary version of WrapC tool and be able to execute it form the library folder.
5+
6+ Before to regenerate the generated code, remove the folder ` generated_wrapper ` . If you are using geant, just run ` geant clean ` in other
7+ case remove it manually.
8+
9+ ## Using WrapC with geant
10+ $LIB_PATH is the path to the library folder where you checkout the wrap_libgit2 library.
11+
12+ ### Wrap libgit2 library
13+
14+ Go to the $LIB_PATH/library
15+
16+ ```
17+ geant wrap_c -- Wrap C libgit2 library and generate the code under the folder generated_wrapper
18+ ```
19+
20+ ### Compile the C library
21+ ```
22+ geant compile -- Build the C library, in this case generate the eif_libgit2.lib
23+ ```
24+
25+ ***
26+
27+ ## Using WrapC without geant
28+
29+ $LIB_PATH is the path to the library folder where you checkout the wrap_libgit2 library.
30+ At the moment the tool require --output-dir and --full-header to be full paths.
31+
32+ ### Wrap plplot library
33+ ```
34+ wrap_c --verbose --output-dir=$LIB_PATH/library/generated_wrapper --full-header=$LIB_PATH/library/C/include/git2.h config.xml
35+ ```
36+
37+ ### Compile the C library
38+ ```
39+ cd generated_wrapper\c\src
40+ finish_freezing -library
41+ ```
42+
43+
You can’t perform that action at this time.
0 commit comments