shell_compiler_meta.cpp
1 /*
2  * This file is part of CasADi.
3  *
4  * CasADi -- A symbolic framework for dynamic optimization.
5  * Copyright (C) 2010-2023 Joel Andersson, Joris Gillis, Moritz Diehl,
6  * KU Leuven. All rights reserved.
7  * Copyright (C) 2011-2014 Greg Horn
8  *
9  * CasADi is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 3 of the License, or (at your option) any later version.
13  *
14  * CasADi is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with CasADi; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *
23  */
24 
25 
26  #include "shell_compiler.hpp"
27  #include <string>
28 
29  const std::string casadi::ShellCompiler::meta_doc=
30  "\n"
31 "\n"
32 "\n"
33 "Interface to the JIT compiler SHELL\n"
34 "\n"
35 "Extra doc: https://github.com/casadi/casadi/wiki/L_22w \n"
36 "\n"
37 "\n"
38 ">List of available options\n"
39 "\n"
40 "+----------------------+-----------------+---------------------------------+\n"
41 "| Id | Type | Description |\n"
42 "+======================+=================+=================================+\n"
43 "| cleanup | OT_BOOL | Cleanup temporary files when |\n"
44 "| | | unloading. Default: true |\n"
45 "+----------------------+-----------------+---------------------------------+\n"
46 "| compiler | OT_STRING | Compiler command |\n"
47 "+----------------------+-----------------+---------------------------------+\n"
48 "| compiler_flags | OT_STRINGVECTOR | Alias for 'compiler_flags' |\n"
49 "+----------------------+-----------------+---------------------------------+\n"
50 "| compiler_output_flag | OT_STRING | Compiler flag to denote object |\n"
51 "| | | output. Default: '-o ' |\n"
52 "+----------------------+-----------------+---------------------------------+\n"
53 "| compiler_setup | OT_STRING | Compiler setup command. |\n"
54 "| | | Intended to be fixed. The |\n"
55 "| | | 'flag' option is the prefered |\n"
56 "| | | way to set custom flags. |\n"
57 "+----------------------+-----------------+---------------------------------+\n"
58 "| directory | OT_STRING | Directory to put temporary |\n"
59 "| | | objects in. Must end with a |\n"
60 "| | | file separator. |\n"
61 "+----------------------+-----------------+---------------------------------+\n"
62 "| extra_suffixes | OT_STRINGVECTOR | List of suffixes for extra |\n"
63 "| | | files that the compiler may |\n"
64 "| | | generate. Default: None |\n"
65 "+----------------------+-----------------+---------------------------------+\n"
66 "| flags | OT_STRINGVECTOR | Compile flags for the JIT |\n"
67 "| | | compiler. Default: None |\n"
68 "+----------------------+-----------------+---------------------------------+\n"
69 "| linker | OT_STRING | Linker command |\n"
70 "+----------------------+-----------------+---------------------------------+\n"
71 "| linker_flags | OT_STRINGVECTOR | Linker flags for the JIT |\n"
72 "| | | compiler. Default: None |\n"
73 "+----------------------+-----------------+---------------------------------+\n"
74 "| linker_output_flag | OT_STRING | Linker flag to denote shared |\n"
75 "| | | library output. Default: '-o ' |\n"
76 "+----------------------+-----------------+---------------------------------+\n"
77 "| linker_setup | OT_STRING | Linker setup command. Intended |\n"
78 "| | | to be fixed. The 'flag' option |\n"
79 "| | | is the prefered way to set |\n"
80 "| | | custom flags. |\n"
81 "+----------------------+-----------------+---------------------------------+\n"
82 "| name | OT_STRING | The file name used to write out |\n"
83 "| | | compiled objects/libraries. The |\n"
84 "| | | actual file names used depend |\n"
85 "| | | on 'temp_suffix' and include |\n"
86 "| | | extensions. Default: |\n"
87 "| | | 'tmp_casadi_compiler_shell' |\n"
88 "+----------------------+-----------------+---------------------------------+\n"
89 "| temp_suffix | OT_BOOL | Use a temporary (seemingly |\n"
90 "| | | random) filename suffix for |\n"
91 "| | | file names. This is desired for |\n"
92 "| | | thread-safety. This behaviour |\n"
93 "| | | may defeat caching compiler |\n"
94 "| | | wrappers. Default: true |\n"
95 "+----------------------+-----------------+---------------------------------+\n"
96 "\n"
97 "\n"
98 "\n"
99 "\n"
100 ;
static const std::string meta_doc
A documentation string.