mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
meson: Fix find_program and subproject usage
Dummy dependencies are not required to execute a subproject automatically for providing a program, nor do you need to explicitly call subproject() to do that. A `[provide]` section in the wrap file is enough.
This commit is contained in:
parent
53c37cfc17
commit
cd77936265
@ -1,7 +1,9 @@
|
|||||||
toml_conf = configuration_data()
|
toml_conf = configuration_data()
|
||||||
toml_conf.set('version', meson.project_version())
|
toml_conf.set('version', meson.project_version())
|
||||||
|
|
||||||
gidocgen = find_program('gi-docgen', required: get_option('gtk_doc'))
|
gidocgen = find_program('gi-docgen',
|
||||||
|
required: get_option('gtk_doc') and get_option('introspection').enabled(),
|
||||||
|
native: true)
|
||||||
|
|
||||||
gidocgen_common_args = [
|
gidocgen_common_args = [
|
||||||
'--quiet',
|
'--quiet',
|
||||||
|
@ -779,21 +779,14 @@ theme_deps = []
|
|||||||
# For git checkouts, but not for tarballs...
|
# For git checkouts, but not for tarballs...
|
||||||
if not fs.exists('theme/Default/Default-light.css')
|
if not fs.exists('theme/Default/Default-light.css')
|
||||||
# ... build the theme files
|
# ... build the theme files
|
||||||
sassc = find_program('sassc', required: false)
|
sassc = find_program('sassc', native: true)
|
||||||
if not sassc.found()
|
sassc_opts = [ '-a', '-M', '-t', 'compact' ]
|
||||||
subproject('sassc')
|
|
||||||
sassc = find_program('sassc', required: true)
|
|
||||||
endif
|
|
||||||
|
|
||||||
if sassc.found()
|
subdir('theme/Default')
|
||||||
sassc_opts = [ '-a', '-M', '-t', 'compact' ]
|
|
||||||
|
|
||||||
subdir('theme/Default')
|
theme_deps += [
|
||||||
|
default_theme_deps,
|
||||||
theme_deps += [
|
]
|
||||||
default_theme_deps,
|
|
||||||
]
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -406,11 +406,6 @@ xkbdep = dependency('xkbcommon', version: xkbcommon_req, required: wayla
|
|||||||
graphene_dep = dependency('graphene-gobject-1.0', version: graphene_req,
|
graphene_dep = dependency('graphene-gobject-1.0', version: graphene_req,
|
||||||
default_options: ['tests=false'])
|
default_options: ['tests=false'])
|
||||||
iso_codes_dep = dependency('iso-codes', required: false)
|
iso_codes_dep = dependency('iso-codes', required: false)
|
||||||
|
|
||||||
gidocgen_dep = dependency('gi-docgen', version: '>= 2021.1',
|
|
||||||
fallback: ['gi-docgen', 'dummy_dep'],
|
|
||||||
required: get_option('gtk_doc') and get_option('introspection').enabled(),
|
|
||||||
native: true)
|
|
||||||
gi_dep = dependency('gobject-introspection-1.0', version: introspection_req,
|
gi_dep = dependency('gobject-introspection-1.0', version: introspection_req,
|
||||||
required: get_option('introspection').enabled() and
|
required: get_option('introspection').enabled() and
|
||||||
get_option('build-tests'))
|
get_option('build-tests'))
|
||||||
|
@ -4,3 +4,6 @@ url = https://gitlab.gnome.org/GNOME/gi-docgen.git
|
|||||||
push-url = ssh://git@ssh.gitlab.gnome.org:GNOME/gi-docgen.git
|
push-url = ssh://git@ssh.gitlab.gnome.org:GNOME/gi-docgen.git
|
||||||
revision = main
|
revision = main
|
||||||
depth = 1
|
depth = 1
|
||||||
|
|
||||||
|
[provide]
|
||||||
|
program_names = gi-docgen
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
[wrap-git]
|
[wrap-git]
|
||||||
directory=sassc
|
directory = sassc
|
||||||
url=https://github.com/lazka/sassc.git
|
url = https://github.com/lazka/sassc.git
|
||||||
revision=meson
|
revision = meson
|
||||||
depth=1
|
depth = 1
|
||||||
|
|
||||||
|
[provide]
|
||||||
|
program_names = sassc
|
||||||
|
Loading…
Reference in New Issue
Block a user