95788c9834
Using a single resource file for all JS sources saves a couple of build system instructions, but has some serious downsides: - bundling the entire shell code with the tools blows up their size unnecessarily - the tools are rebuilt unnecessarily for any shell code change Autotools was painful enough to let this slip, but with meson we don't have any excuses - using the actual dependencies speeds up the build a tiny bit and reduces the tools' sizes from over 2M to about 50k. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/192
23 lines
634 B
Meson
23 lines
634 B
Meson
subdir('misc')
|
|
|
|
js_resources = gnome.compile_resources(
|
|
'js-resources', 'js-resources.gresource.xml',
|
|
source_dir: ['.', meson.current_build_dir()],
|
|
c_name: 'shell_js_resources',
|
|
dependencies: [config_js]
|
|
)
|
|
|
|
portal_resources = gnome.compile_resources(
|
|
'portal-resources', 'portal-resources.gresource.xml',
|
|
source_dir: ['.', meson.current_build_dir()],
|
|
c_name: 'portal_js_resources',
|
|
dependencies: [config_js]
|
|
)
|
|
|
|
prefs_resources = gnome.compile_resources(
|
|
'prefs-resources', 'prefs-resources.gresource.xml',
|
|
source_dir: ['.', meson.current_build_dir()],
|
|
c_name: 'prefs_js_resources',
|
|
dependencies: [config_js]
|
|
)
|