The function compile_code
is a wrapper to call cmake used in the function
compile_formula()
.
compile_code(formula, var_aliases, dllname, cmake_dir)
an exit code (integer value), 0 if no problem, not 0 otherwise.
text string, formula defining the new operator.
text string, formated formula input arguments returned by
format_var_aliases()
(specifically $var_aliases
).
text string, the name associated to the related shared object file.
text string, directory where to find the CMakeLists.txt
file.
Ghislain Durif
The function compile_code
should only be called in the directory where the
build (i.e. generation of related cmake and so files) will be done.
The corresponging CMakeLists.txt
file is located in directory cmake_dir
given as input argument.
compile_formula()
, format_var_aliases()