(tool)
| 270 | this.line(""); |
| 271 | } |
| 272 | generateModulesRules(tool) { |
| 273 | let result, source, sourceParts; |
| 274 | super.generateModulesRules(tool); |
| 275 | for (result of tool.cFiles) { |
| 276 | source = result.source; |
| 277 | sourceParts = tool.splitPath(result.source); |
| 278 | |
| 279 | this.line(`cmake_path(CONVERT "${source}" TO_NATIVE_PATH_LIST the_source)`); |
| 280 | this.line("add_custom_command("); |
| 281 | this.line(" OUTPUT ${TMP_DIR}", tool.slash, sourceParts.name, sourceParts.extension, ".xsi\n"); |
| 282 | this.line(" COMMAND xsid ${the_source} -o ${NATIVE_TMP_DIR}"); |
| 283 | this.line(" DEPENDS ", source); |
| 284 | this.line(" VERBATIM)"); |
| 285 | this.line(); |
| 286 | } |
| 287 | for (result of tool.hFiles) { |
| 288 | source = result; |
| 289 | sourceParts = tool.splitPath(source); |
| 290 | |
| 291 | this.line(`cmake_path(CONVERT "${source}" TO_NATIVE_PATH_LIST the_source)`); |
| 292 | this.line("add_custom_command("); |
| 293 | this.line(" OUTPUT ${TMP_DIR}", tool.slash, sourceParts.name, sourceParts.extension, ".xsi"); |
| 294 | this.line(" COMMAND xsid ${the_source} -o ${NATIVE_TMP_DIR}"); |
| 295 | this.line(" DEPENDS ", source); |
| 296 | this.line(" VERBATIM)"); |
| 297 | this.line(); |
| 298 | } |
| 299 | } |
| 300 | generateObjectsDefinitions(tool) { |
| 301 | this.line("zephyr_library_include_directories("); |
| 302 | for (var folder of tool.cFolders) { |
nothing calls this directly
no test coverage detected