Remove workarounds for older Meson versions

Removing the files() statement allows us to not use source_root(), which
breaks using libepoxy as a sub-project.

Using the python3 module is better for Windows portability.
macos/v1.5.9
Emmanuele Bassi 9 years ago
parent 9e7af6e1f5
commit 0dfe8403dd
  1. 8
      meson.build

@ -223,17 +223,13 @@ configure_file(input: 'epoxy.pc.in',
install_dir: join_paths(epoxy_libdir, 'pkgconfig')) install_dir: join_paths(epoxy_libdir, 'pkgconfig'))
# Python # Python
# XXX: Depend on 0.37.1 for: python = import('python3').find_python()
# python = import('python3').find_python()
python = find_program('python3', required: false)
if not python.found() if not python.found()
python = find_program('python', required: true) python = find_program('python', required: true)
endif endif
# Generates the dispatch tables # Generates the dispatch tables
# XXX: Depend on 0.38.1 for: gen_dispatch_py = files('src/gen_dispatch.py')
# gen_dispatch_py = files('src/gen_dispatch.py')
gen_dispatch_py = join_paths(meson.source_root(), 'src/gen_dispatch.py')
gl_registry = files('registry/gl.xml') gl_registry = files('registry/gl.xml')
egl_registry = files('registry/egl.xml') egl_registry = files('registry/egl.xml')

Loading…
Cancel
Save