Skip to content

Commit

Permalink
fix: Remove duplicate gresource compilation targets in meson build
Browse files Browse the repository at this point in the history
  • Loading branch information
silviot committed Dec 8, 2024
1 parent d7fb88b commit fbcbdcd
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
gnome = import('gnome')

gresource = gnome.compile_resources('aardvark',
# Compile resources for both build system and runtime
resource_file = gnome.compile_resources('aardvark',
'aardvark.gresource.xml',
source_dir: meson.current_source_dir(),
c_name: 'aardvark',
Expand All @@ -10,20 +11,6 @@ gresource = gnome.compile_resources('aardvark',
install: false,
)

# Ensure resource file is available for Cargo build
resource_file = custom_target('resource-file',
input: 'aardvark.gresource.xml',
output: 'aardvark.gresource',
command: [
find_program('glib-compile-resources'),
'--sourcedir=@CURRENT_SOURCE_DIR@',
'--target=@OUTPUT@',
'@INPUT@'
],
install: false,
build_by_default: true
)

conf = configuration_data()
conf.set_quoted('VERSION', meson.project_version())
conf.set_quoted('GETTEXT_PACKAGE', 'aardvark')
Expand Down

0 comments on commit fbcbdcd

Please sign in to comment.