meson: Replace 'config.h' with config_file
authorScott Anderson <scott@anderso.nz>
Tue, 17 Dec 2019 09:08:02 +0000 (22:08 +1300)
committerEric Engestrom <eric@engestrom.ch>
Tue, 17 Dec 2019 23:07:53 +0000 (23:07 +0000)
commitc70bd7b7059b2df0d73b5dfbad19f841957bcdba
treec586bf792a135512000d3cb5d98e9f50f72c35a1
parentedafcf18e5b5347c1f5dc5a2d9f87da1a00789b9
meson: Replace 'config.h' with config_file

This fixes an issue with libdrm failing to build when used as a meson
subproject. Using 'config.h' directly will cause it to possibly refer to
the wrong file.

By using `@0@.format(config_file)`, it will be transformed into the
correct relative path, e.g. `./config.h` in normal build,
`./subprojects/libdrm/config.h` in subproject build.

Signed-off-by: Scott Anderson <scott@anderso.nz>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
meson.build