(path, baseName)
| 113 | let libpath, girpath; |
| 114 | |
| 115 | const loadResource = (path, baseName) => { |
| 116 | const resource = Gio.Resource.load(GLib.build_filenamev([path, |
| 117 | `${baseName}.src.gresource`])); |
| 118 | resource._register(); |
| 119 | |
| 120 | return `resource:///${baseName.replaceAll('.', '/')}/js`; |
| 121 | }; |
| 122 | |
| 123 | if (_runningFromMesonSource()) { |
| 124 | log('Running from Meson, using local files'); |