/usr/share/gps/plug-ins/build_targets.xml is in gnat-gps-common 5.3dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 | <?xml version="1.0" ?>
<!-- This file provides default build models and targets for GPS
-->
<GPS>
<!-- This is an XML model for all GNAT builders (gnatmake, gprbuild, gprmake)
-->
<target-model name="builder" category="">
<description>Generic GNAT builder</description>
<command-line>
<arg>%builder</arg>
<arg>-d</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
</command-line>
<icon>gps-build-all</icon>
<switches command="%(tool_name)s" columns="2" lines="2">
<title column="1" line="1" >Dependencies</title>
<title column="2" line="1" >Compilation</title>
<title column="2" line="2" >Project</title>
<check label="Recompile if switches changed" switch="-s"
tip="Recompile if compiler switches have changed since last compilation" />
<check label="Keep going" switch="-k"
tip="Continue as much as possible after a compilation error" />
<spin label="Multiprocessing" switch="-j" min="0" max="100" default="1"
column="2"
tip="Use N processes to carry out the compilations. On a multiprocessor machine compilations will occur in parallel" />
<check label="Progress bar" switch="-d" column="2"
tip="Display a progress bar with information about how many files are left to be compiled" />
<check label="Compile only" switch="-c" column="2"
tip="Perform only compilation, no bind/link" />
<check label="Quiet mode" switch="-q" column="2"
tip="Be quiet/terse in output messages" />
<check label="Create object dirs" switch="-p" line="2" column="2"
tip="Create missing object and library directories" />
<spin label="Project verbosity" switch="-vP" min="0" max="2" default="1"
line="2" column="2"
tip="Specify verbosity when parsing project files" />
</switches>
</target-model>
<!-- This is an XML model for gprbuild -->
<target-model name="gprbuild" category="">
<description>Build with gprbuild</description>
<command-line>
<arg>%gprbuild</arg>
<arg>-d</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
</command-line>
<icon>gps-build-all</icon>
<switches command="%(tool_name)s" columns="2" lines="2">
<title column="1" line="1" >Dependencies</title>
<title column="2" line="1" >Compilation</title>
<title column="2" line="2" >Project</title>
<check label="Recompile if switches changed" switch="-s"
tip="Recompile if compiler switches have changed since last compilation" />
<check label="Keep going" switch="-k"
tip="Continue as much as possible after a compilation error" />
<spin label="Multiprocessing" switch="-j" min="0" max="100" default="1"
column="2"
tip="Use N processes to carry out the compilations. On a multiprocessor machine compilations will occur in parallel" />
<check label="Progress bar" switch="-d" column="2"
tip="Display a progress bar with information about how many files are left to be compiled" />
<check label="Compile only" switch="-c" column="2"
tip="Perform only compilation, no bind/link" />
<check label="Quiet mode" switch="-q" column="2"
tip="Be quiet/terse in output messages" />
<check label="Create object dirs" switch="-p" line="2" column="2"
tip="Create missing object and library directories" />
<spin label="Project verbosity" switch="-vP" min="0" max="2" default="1"
line="2" column="2"
tip="Specify verbosity when parsing project files" />
</switches>
</target-model>
<!-- This is an XML model for gnatmake -->
<target-model name="gnatmake" category="">
<description>Build with gnatmake</description>
<command-line>
<arg>%gnatmake</arg>
<arg>-d</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
</command-line>
<icon>gps-build-all</icon>
<switches command="%(tool_name)s" columns="2" lines="2">
<title column="1" line="1" >Dependencies</title>
<title column="1" line="2" >Checks</title>
<title column="2" line="1" >Compilation</title>
<title column="2" line="2" >Project</title>
<check label="Recompile if switches changed" switch="-s"
tip="Recompile if compiler switches have changed since last compilation" />
<check label="Minimal recompilation" switch="-m"
tip="Specifies that the minimum necessary amount of recompilation be performed. In this mode, gnatmake ignores time stamp differences when the only modification to a source file consist in adding or removing comments, empty lines, spaces or tabs" />
<check label="Keep going" switch="-k"
tip="Continue as much as possible after a compilation error" />
<spin label="Multiprocessing" switch="-j" min="0" max="100" default="1"
column="2"
tip="Use N processes to carry out the compilations. On a multiprocessor machine compilations will occur in parallel" />
<check label="Progress bar" switch="-d" column="2"
tip="Display a progress bar with information about how many files are left to be compiled" />
<check label="Compile only" switch="-c" column="2"
tip="Perform only compilation, no bind/link" />
<check label="Quiet mode" switch="-q" column="2"
tip="Be quiet/terse in output messages" />
<check label="Debug information" switch="-g" column="2"
tip="Add debugging information. This forces the corresponding switch for the compiler, binder and linker" />
<check label="Syntax check" switch="-gnats" line="2"
tip="Perform syntax check, no compilation occurs" />
<check label="Semantic check" switch="-gnatc" line="2"
tip="Perform syntax and semantic check only, no compilation occurs" />
<check label="Create object dirs" switch="-p" line="2" column="2"
tip="Create missing object and library directories" />
<spin label="Project verbosity" switch="-vP" min="0" max="2" default="1"
line="2" column="2"
tip="Specify verbosity when parsing project files" />
</switches>
</target-model>
<!-- This is an XML model for gnatclean/gprclean -->
<target-model name="gprclean" category="">
<description>Clean compilation artefacts with gnatclean/gprclean</description>
<command-line>
<arg>%gprclean</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
</command-line>
<icon>gps-clean</icon>
<switches command="%(tool_name)s" columns="1">
<check label="Only delete compiler generated files" switch="-c"
tip="Remove only the files generated by the compiler, not other files" />
<check label="Force deletion" switch="-f"
tip="Force deletions of unwritable files" />
<check label="Clean recursively" switch="-r"
tip="Clean all projects recursively" />
</switches>
</target-model>
<!-- This is an XML model for launching executables -->
<target-model name="execute" category="">
<description>Run an executable</description>
<command-line>
<arg>%E</arg>
</command-line>
<server>Execution_Server</server>
<is-run>TRUE</is-run>
<icon>gtk-media-play</icon>
<switches command="%(tool_name)s" columns="1">
<check label="Run in executables directory" switch="[exec_dir]" before="true" />
<check label="Run in an external terminal" switch="%external" before="true" />
</switches>
</target-model>
<!-- This is a minimal XML model, used for launching custom commands -->
<target-model name="custom" category="">
<description>Launch a custom build command</description>
<icon>gps-custom-build</icon>
<uses-shell>TRUE</uses-shell>
<switches command="">
</switches>
</target-model>
<!-- NOTE: the name of this command must be kept in sync with the constant in
Builder_Facility_Module.Scripts. -->
<target model="gnatmake" category="_File_" name="Check _Syntax">
<icon>gps-syntax-check</icon>
<launch-mode>MANUALLY_WITH_NO_DIALOG</launch-mode>
<read-only>TRUE</read-only>
<server>Tools_Server</server>
<command-line>
<arg>%gnatmake</arg>
<arg>-q</arg>
<arg>-c</arg>
<arg>-gnats</arg>
<arg>-u</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
<arg>%fp</arg>
</command-line>
</target>
<!-- NOTE: the name of this command must be kept in sync with the constant in
Builder_Facility_Module.Scripts. -->
<target model="gnatmake" category="_File_" name="Check S_emantic">
<in-toolbar>TRUE</in-toolbar>
<icon>gps-semantic-check</icon>
<launch-mode>MANUALLY_WITH_NO_DIALOG</launch-mode>
<read-only>TRUE</read-only>
<server>Tools_Server</server>
<command-line>
<arg>%gnatmake</arg>
<arg>-q</arg>
<arg>-c</arg>
<arg>-gnatc</arg>
<arg>-u</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
<arg>%fp</arg>
</command-line>
</target>
<!-- This is a target to compile the current file using the builder model
NOTE: the name of this command must be kept in sync with the constant in
Builder_Facility_Module.Scripts. -->
<target model="builder" category="_File_" name="_Compile File">
<in-toolbar>TRUE</in-toolbar>
<icon>gps-compile</icon>
<launch-mode>MANUALLY_WITH_NO_DIALOG</launch-mode>
<read-only>TRUE</read-only>
<command-line>
<arg>%builder</arg>
<arg>-ws</arg>
<arg>-c</arg>
<arg>-u</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
<arg>%fp</arg>
</command-line>
</target>
<target model="builder" category="_Project" name="Build Main">
<in-toolbar>TRUE</in-toolbar>
<in-contextual-menus-for-projects>TRUE</in-contextual-menus-for-projects>
<icon>gps-build-main</icon>
<launch-mode>MANUALLY</launch-mode>
<read-only>TRUE</read-only>
<target-type>main</target-type>
<command-line>
<arg>%builder</arg>
<arg>-d</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
<arg>%T</arg>
</command-line>
</target>
<!-- Targets to compile all project files using the builder model -->
<target model="builder" category="_Project" name="_Build All">
<in-toolbar>TRUE</in-toolbar>
<icon>gps-build-all</icon>
<launch-mode>MANUALLY</launch-mode>
<read-only>TRUE</read-only>
<command-line>
<arg>%builder</arg>
<arg>-d</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
</command-line>
</target>
<target model="builder" category="_Project" name="_Compile All Sources">
<icon>gps-build-all</icon>
<launch-mode>MANUALLY</launch-mode>
<read-only>TRUE</read-only>
<command-line>
<arg>%builder</arg>
<arg>-c</arg>
<arg>-u</arg>
<arg>-d</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
</command-line>
</target>
<target model="builder" category="_Project" name="Build <current file>">
<icon>gps-build-main</icon>
<launch-mode>MANUALLY</launch-mode>
<read-only>TRUE</read-only>
<command-line>
<arg>%builder</arg>
<arg>-d</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
<arg>%fp</arg>
</command-line>
</target>
<!-- Targets to clear the current project using the gprclean model -->
<target model="gprclean" category="C_lean" name="Clean _All">
<in-toolbar>TRUE</in-toolbar>
<icon>gps-clean</icon>
<launch-mode>MANUALLY_WITH_DIALOG</launch-mode>
<read-only>TRUE</read-only>
<command-line>
<arg>%gprclean</arg>
<arg>-r</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
</command-line>
</target>
<target model="gprclean" category="C_lean" name="Clean _Root">
<in-toolbar>FALSE</in-toolbar>
<icon>gps-clean</icon>
<launch-mode>MANUALLY_WITH_DIALOG</launch-mode>
<read-only>TRUE</read-only>
<command-line>
<arg>%gprclean</arg>
<arg>%eL</arg>
<arg>-P%PP</arg>
<arg>%X</arg>
</command-line>
</target>
<target model="gprclean" category="C_lean" name="Clean _Project">
<in-toolbar>FALSE</in-toolbar>
<in-menu>FALSE</in-menu>
<in-contextual-menus-for-projects>TRUE</in-contextual-menus-for-projects>
<icon>gps-clean</icon>
<launch-mode>MANUALLY_WITH_DIALOG</launch-mode>
<read-only>TRUE</read-only>
<command-line>
<arg>%gprclean</arg>
<arg>%eL</arg>
<arg>-P%pp</arg>
<arg>%X</arg>
</command-line>
</target>
<!-- Targets to launch runs -->
<target model="execute" category="_Run" name="Run _Main">
<in-toolbar>TRUE</in-toolbar>
<in-contextual-menus-for-projects>TRUE</in-contextual-menus-for-projects>
<icon>gtk-media-play</icon>
<launch-mode>MANUALLY</launch-mode>
<read-only>TRUE</read-only>
<target-type>executable</target-type>
<command-line>
<arg>%E</arg>
</command-line>
</target>
<target model="execute" category="_Run" name="Custom...">
<in-toolbar>FALSE</in-toolbar>
<launch-mode>MANUALLY_WITH_DIALOG</launch-mode>
<read-only>TRUE</read-only>
<command-line />
</target>
<!-- This is an empty target using the Custom model -->
<target model="custom" category="_Project" name="Custom _Build...">
<in-toolbar>FALSE</in-toolbar>
<icon>gps-custom-build</icon>
<launch-mode>MANUALLY_WITH_DIALOG</launch-mode>
<read-only>TRUE</read-only>
<command-line />
</target>
</GPS>
|