dlgeneratemake
Génère un makefile pour construire une bibliothèque dynamique
📝Syntaxe
[res, message] = dlgeneratemake(destinationdir, libname, c_cpp_files, include)
[res, message] = dlgeneratemake(destinationdir, libname, c_cpp_files, includes, defines, external_libraries, build_configuration, c_flags, cxx_flags)
[res, message] = dlgeneratemake(maketype, destinationdir, libname, c_cpp_files, include)
[res, message] = dlgeneratemake(maketype, destinationdir, libname, c_cpp_files, includes, defines, external_libraries, build_configuration, c_flags, cxx_flags)
📥Arguments d'entrée
Paramètre Description
maketype a string: 'executable' or 'dynamic_library'.
destinationdir a string: destination directory where is generated the makefile.
libname a string: destination dynamic library or executable name.
c_cpp_files a string or a cell of strings: .c or .cpp list files (full filename)
include a string or a cell of strings: directories where to find include files.
defines a string or a cell of strings: a list of defines
external_libraries a string or a cell of strings: a list of external libraries to link
build_configuration a string: 'Debug' or 'Release'
c_flags a string: C flags
cxx_flags a string: C flags
📤Arguments de sortie
Paramètre Description
res a logical: true if makefile was generated.
message a string: empty if makefile was generated or an error message.
📄Description

dlgeneratemake génère un makefile adapté à votre environnement pour construire des bibliothèques partagées.

Nelson s'appuie sur CMake pour cette tâche.

Appelée avec au moins un argument de sortie, dlgeneratemake retourne res (un logique) et message. Appelée sans argument de sortie, elle lève l'erreur Nelson:dlgeneratemake:failed en cas d'échec au lieu de retourner un statut faux.

💡Exemples
See module skeleton for example
[status, message] = dlgeneratemake(currentpath, ...
'module_skeleton', ...
{[currentpath, '/cpp/cpp_sumBuiltin.cpp'], [currentpath, '/cpp/Gateway.cpp']}, ...
[{[currentpath, '/include']; [currentpath, '/../src/include']}; dlgetnelsonincludes()], ...
[], ...
[dlgetnelsonlibraries(); [currentpath, '/../src/business_code']]);
🔗Voir aussi
dlmake
🕔Historique des versions
Version Description
1.0.0 version initiale
Modifier cette page sur GitHub