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_include_flag | OT_STRING | Compiler flag to add an |\n"
51 "| | | include directory. Default: |\n"
52 "| | | '-I' ('/I' on MSVC) |\n"
53 "+-----------------------+-----------------+--------------------------------+\n"
54 "| compiler_output_flag | OT_STRING | Compiler flag to denote object |\n"
55 "| | | output. Default: '-o ' |\n"
56 "+-----------------------+-----------------+--------------------------------+\n"
57 "| compiler_setup | OT_STRING | Compiler setup command. |\n"
58 "| | | Intended to be fixed. The |\n"
59 "| | | 'flag' option is the prefered |\n"
60 "| | | way to set custom flags. |\n"
61 "+-----------------------+-----------------+--------------------------------+\n"
62 "| directory | OT_STRING | Directory to put temporary |\n"
63 "| | | objects in. Must end with a |\n"
64 "| | | file separator. |\n"
65 "+-----------------------+-----------------+--------------------------------+\n"
66 "| extra_suffixes | OT_STRINGVECTOR | List of suffixes for extra |\n"
67 "| | | files that the compiler may |\n"
68 "| | | generate. Default: None |\n"
69 "+-----------------------+-----------------+--------------------------------+\n"
70 "| flags | OT_STRINGVECTOR | Compile flags for the JIT |\n"
71 "| | | compiler. Default: None |\n"
72 "+-----------------------+-----------------+--------------------------------+\n"
73 "| include_dirs | OT_STRINGVECTOR | List of include directories, |\n"
74 "| | | each passed to the compiler |\n"
75 "| | | prefixed with |\n"
76 "| | | 'compiler_include_flag'. OS- |\n"
77 "| | | agnostic alternative to |\n"
78 "| | | passing '-I...' via 'flags'. |\n"
79 "| | | Default: None |\n"
80 "+-----------------------+-----------------+--------------------------------+\n"
81 "| linker | OT_STRING | Linker command |\n"
82 "+-----------------------+-----------------+--------------------------------+\n"
83 "| linker_flags | OT_STRINGVECTOR | Linker flags for the JIT |\n"
84 "| | | compiler. Default: None |\n"
85 "+-----------------------+-----------------+--------------------------------+\n"
86 "| linker_output_flag | OT_STRING | Linker flag to denote shared |\n"
87 "| | | library output. Default: '-o ' |\n"
88 "+-----------------------+-----------------+--------------------------------+\n"
89 "| linker_setup | OT_STRING | Linker setup command. Intended |\n"
90 "| | | to be fixed. The 'flag' option |\n"
91 "| | | is the prefered way to set |\n"
92 "| | | custom flags. |\n"
93 "+-----------------------+-----------------+--------------------------------+\n"
94 "| name | OT_STRING | The file name used to write |\n"
95 "| | | out compiled |\n"
96 "| | | objects/libraries. The actual |\n"
97 "| | | file names used depend on |\n"
98 "| | | 'temp_suffix' and include |\n"
99 "| | | extensions. Default: |\n"
100 "| | | 'tmp_casadi_compiler_shell' |\n"
101 "+-----------------------+-----------------+--------------------------------+\n"
102 "| temp_suffix | OT_BOOL | Use a temporary (seemingly |\n"
103 "| | | random) filename suffix for |\n"
104 "| | | file names. This is desired |\n"
105 "| | | for thread-safety. This |\n"
106 "| | | behaviour may defeat caching |\n"
107 "| | | compiler wrappers. Default: |\n"
108 "| | | true |\n"
109 "+-----------------------+-----------------+--------------------------------+\n"
110 "\n"
111 "\n"
112 "\n"
113 "\n"
114 ;
static const std::string meta_doc
A documentation string.