(target, source, include, suffix, parts, kind, query)
| 2315 | this.appendFile(tool.pioFiles, name + ".h", path, include); |
| 2316 | } |
| 2317 | appendSource(target, source, include, suffix, parts, kind, query) { |
| 2318 | var tool = this.tool; |
| 2319 | if (kind < 0) { |
| 2320 | if (tool.format) { |
| 2321 | for (var fps = 1; fps <= 60; fps++) { |
| 2322 | var extension = "." + fps + "fps"; |
| 2323 | if (parts.extension == extension) { |
| 2324 | this.appendImageDirectory(target, source, include, suffix); |
| 2325 | return; |
| 2326 | } |
| 2327 | } |
| 2328 | } |
| 2329 | if (tool.platform == "x-ios" && (parts.extension == ".framework" || parts.extension == ".bundle")) { |
| 2330 | this.appendFramework(tool.resourcesFiles, target + parts.extension, source, include); |
| 2331 | return; |
| 2332 | } |
| 2333 | return; |
| 2334 | } |
| 2335 | if (tool.dataFiles.already[source]) |
| 2336 | return; |
| 2337 | if ((parts.extension == ".json") && (parts.directory.endsWith("strings"))) { |
| 2338 | this.appendFile(tool.stringFiles, tool.localsName + "." + parts.name + ".mhr", source, include); |
| 2339 | return; |
| 2340 | } |
| 2341 | if (tool.format) { |
| 2342 | if (parts.extension == ".act") { |
| 2343 | this.appendFile(tool.clutFiles, target + ".cct", source, include); |
| 2344 | tool.clutFiles.current = target; |
| 2345 | return; |
| 2346 | } |
| 2347 | if (parts.extension == ".fnt") { |
| 2348 | this.appendFont(target, source, include, suffix); |
| 2349 | return; |
| 2350 | } |
| 2351 | if (parts.extension == ".png") { |
| 2352 | if (suffix.startsWith("-image")) { |
| 2353 | this.appendImage(target, source, include, suffix); |
| 2354 | return; |
| 2355 | } |
| 2356 | parts.extension = ".fnt"; |
| 2357 | if (!tool.bmpFontFiles.already[tool.joinPath(parts)]) |
| 2358 | this.appendBitmap(target, source, include, suffix); |
| 2359 | return; |
| 2360 | } |
| 2361 | if ((parts.extension == ".gif") || (parts.extension == ".jpeg") || (parts.extension == ".jpg")) { |
| 2362 | this.appendImage(target, source, include, suffix); |
| 2363 | return; |
| 2364 | } |
| 2365 | if (parts.extension == ".wav") { |
| 2366 | this.appendSound(target, source, include, suffix); |
| 2367 | return; |
| 2368 | } |
| 2369 | if ((parts.extension == ".ttf") || (parts.extension == ".otf")) { |
| 2370 | this.appendOutlineFont(target, source, include, suffix, query); |
| 2371 | return; |
| 2372 | } |
| 2373 | if (parts.extension == "pio") { |
| 2374 | this.appendPIO(target, source, include, suffix); |
nothing calls this directly
no test coverage detected