We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[bug] Meson cross-file is not looked up in the conan install-folder
### Environment Details (include every applicable attribute)
  * Operating System+version: Linux Ubuntu 20.04.2 LTS
  * Compiler+version: x86_64-w64-mingw32 9.3
  * Conan version: 1.36.0
  * Python version: 3.8.5

### Steps to reproduce (Include if Applicable)
  - create a profile for cross compilation Linux to Windows (as from the documentation)
  - create a cross-compiled meson project (generator pkg_config and generate MesonToolchain)
  - `conan install . -if install` (conan_meson_cross.ini is generated inside the install directory)
  - `conan build . -if install` (conan is not found in current directory)

### Logs (Executed commands with output) (Include/Attach if Applicable)
```
vscode ➜ /workspaces/tennisAnalysis (main ✗) $ conan install . -if install
Configuration:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=9.3
os=Windows
os_build=Linux
[options]
[build_requires]
[env]
AR=x86_64-w64-mingw32-ar
AS=x86_64-w64-mingw32-as
CC=x86_64-w64-mingw32-gcc-posix
CHOST=x86_64-w64-mingw32
CONAN_CMAKE_FIND_ROOT_PATH=/usr/bin/x86_64-w64-mingw32 # Adjust this path  # Optional, for CMake to find things in that folder
CONAN_CMAKE_SYSROOT=/usr/bin/x86_64-w64-mingw32 # Adjust this path  # Optional, if we want to define sysroot
CXX=x86_64-w64-mingw32-g++-posix
PKG_CONFIG=pkg-config
RANLIB=x86_64-w64-mingw32-ranlib
RC=x86_64-w64-mingw32-windres
STRIP=x86_64-w64-mingw32-strip
WARN: libtiff/4.2.0: requirement libwebp/1.1.0 overridden by opencv/4.5.2 to libwebp/1.2.0 
conanfile.py: Installing package
Requirements
    eigen/3.3.9 from 'conan-center' - Cache
    jasper/2.0.32 from 'conan-center' - Cache
    jbig/20160605 from 'conan-center' - Cache
    libdeflate/1.7 from 'conan-center' - Cache
    libjpeg/9d from 'conan-center' - Cache
    libpng/1.6.37 from 'conan-center' - Cache
    libtiff/4.2.0 from 'conan-center' - Cache
    libwebp/1.2.0 from 'conan-center' - Cache
    opencv/4.5.2 from 'conan-center' - Cache
    quirc/1.1 from 'conan-center' - Cache
    xz_utils/5.2.5 from 'conan-center' - Cache
    zlib/1.2.11 from 'conan-center' - Cache
    zstd/1.4.8 from 'conan-center' - Cache
Packages
    eigen/3.3.9:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    jasper/2.0.32:0b2b79209cb5a733c6f60939a011a2d5b9baba3e - Cache
    jbig/20160605:eb359adcb4224cf32a880f4840496998b718e67a - Cache
    libdeflate/1.7:344886eda55829e935447d0708e3b993938b32c8 - Cache
    libjpeg/9d:344886eda55829e935447d0708e3b993938b32c8 - Cache
    libpng/1.6.37:0ff33ddf098055bd06ad25e84c8ac73a7d386ae6 - Cache
    libtiff/4.2.0:9a66f421b7e2c46cae4d0544a209f0a41fce4717 - Cache
    libwebp/1.2.0:743b5bdc8f8a9eb56cece0880367af1603426c77 - Cache
    opencv/4.5.2:3c85fd5b9706d74ca80c0013b88789f0a882a76e - Cache
    quirc/1.1:923b659fe22255fc3db85bbda05de841448c924b - Cache
    xz_utils/5.2.5:344886eda55829e935447d0708e3b993938b32c8 - Cache
    zlib/1.2.11:344886eda55829e935447d0708e3b993938b32c8 - Cache
    zstd/1.4.8:344886eda55829e935447d0708e3b993938b32c8 - Cache

Cross-build from 'Linux:x86_64' to 'Windows:x86_64'
Installing (downloading, building) binaries...
eigen/3.3.9: Already installed!
jbig/20160605: Already installed!
jbig/20160605: Appending PATH environment variable: /home/vscode/.conan/data/jbig/20160605/_/_/package/eb359adcb4224cf32a880f4840496998b718e67a/bin
libdeflate/1.7: Already installed!
libjpeg/9d: Already installed!
libwebp/1.2.0: Already installed!
quirc/1.1: Already installed!
xz_utils/5.2.5: Already installed!
zlib/1.2.11: Already installed!
zstd/1.4.8: Already installed!
jasper/2.0.32: Already installed!
libpng/1.6.37: Already installed!
libtiff/4.2.0: Already installed!
opencv/4.5.2: Already installed!
conanfile.py: Generator pkg_config created opencv_core.pc
conanfile.py: Generator pkg_config created opencv_imgproc.pc
conanfile.py: Generator pkg_config created opencv_flann.pc
conanfile.py: Generator pkg_config created opencv_features2d.pc
conanfile.py: Generator pkg_config created opencv_calib3d.pc
conanfile.py: Generator pkg_config created opencv_video.pc
conanfile.py: Generator pkg_config created opencv_video_alias.pc
conanfile.py: Generator pkg_config created opencv_stitching.pc
conanfile.py: Generator pkg_config created opencv_stitching_alias.pc
conanfile.py: Generator pkg_config created opencv_objdetect.pc
conanfile.py: Generator pkg_config created opencv_objdetect_alias.pc
conanfile.py: Generator pkg_config created opencv_imgcodecs.pc
conanfile.py: Generator pkg_config created opencv_videoio.pc
conanfile.py: Generator pkg_config created opencv_highgui.pc
conanfile.py: Generator pkg_config created opencv_highgui_alias.pc
conanfile.py: Generator pkg_config created opencv_calib3d_alias.pc
conanfile.py: Generator pkg_config created opencv_videoio_alias.pc
conanfile.py: Generator pkg_config created opencv_imgcodecs_alias.pc
conanfile.py: Generator pkg_config created opencv_features2d_alias.pc
conanfile.py: Generator pkg_config created opencv_photo.pc
conanfile.py: Generator pkg_config created opencv_photo_alias.pc
conanfile.py: Generator pkg_config created opencv_ml.pc
conanfile.py: Generator pkg_config created opencv_ml_alias.pc
conanfile.py: Generator pkg_config created opencv_imgproc_alias.pc
conanfile.py: Generator pkg_config created opencv_flann_alias.pc
conanfile.py: Generator pkg_config created opencv_core_alias.pc
conanfile.py: Generator pkg_config created opencv.pc
conanfile.py: Generator pkg_config created jasper.pc
conanfile.py: Generator pkg_config created libpng.pc
conanfile.py: Generator pkg_config created libtiff-4.pc
conanfile.py: Generator pkg_config created eigen3.pc
conanfile.py: Generator pkg_config created quirc.pc
conanfile.py: Generator pkg_config created zlib.pc
conanfile.py: Generator pkg_config created libjpeg.pc
conanfile.py: Generator pkg_config created libdeflate.pc
conanfile.py: Generator pkg_config created liblzma.pc
conanfile.py: Generator pkg_config created jbig.pc
conanfile.py: Generator pkg_config created libzstd.pc
conanfile.py: Generator pkg_config created zstd.pc
conanfile.py: Generator pkg_config created libwebp.pc
conanfile.py: Generator pkg_config created libwebpmux.pc
conanfile.py: Generator pkg_config created libwebpdemux.pc
conanfile.py: Generator pkg_config created libwebpdecoder.pc
conanfile.py: Generator txt created conanbuildinfo.txt
conanfile.py: Calling generate()
conanfile.py: Generated conaninfo.txt
conanfile.py: Generated graphinfo
vscode ➜ /workspaces/tennisAnalysis (main ✗) $ conan build . -if install
Using lockfile: '/workspaces/tennisAnalysis/install/conan.lock'
Using cached profile from lockfile
conanfile.py: Calling build()
Could not find any valid candidate for cross files: conan_meson_cross.ini

ERROR: Cannot find specified cross file: conan_meson_cross.ini
ERROR: conanfile.py: Error in build() method, line 42
        meson.configure(source_folder="src")
        ConanException: Error 1 while executing meson setup --cross-file "conan_meson_cross.ini" "/workspaces/tennisAnalysis/build" "/workspaces/tennisAnalysis/src" -Dprefix="/workspaces/tennisAnalysis/package"
```


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `conan/tools/meson/meson.py`
Content:
```
1 import os
2 
3 from conan.tools.build import build_jobs
4 from conan.tools.meson import MesonToolchain
5 
6 
7 class Meson(object):
8     def __init__(self, conanfile):
9         self._conanfile = conanfile
10 
11     def configure(self, reconfigure=False):
12         source_folder = self._conanfile.source_folder
13         build_folder = self._conanfile.build_folder
14         cmd = "meson setup"
15         generators_folder = self._conanfile.generators_folder
16         cross = os.path.join(generators_folder, MesonToolchain.cross_filename)
17         native = os.path.join(generators_folder, MesonToolchain.native_filename)
18         if os.path.exists(cross):
19             cmd += ' --cross-file "{}"'.format(cross)
20         else:
21             cmd += ' --native-file "{}"'.format(native)
22         cmd += ' "{}" "{}"'.format(build_folder, source_folder)
23         if self._conanfile.package_folder:
24             cmd += ' -Dprefix="{}"'.format(self._conanfile.package_folder)
25         if reconfigure:
26             cmd += ' --reconfigure'
27         self._conanfile.output.info("Meson configure cmd: {}".format(cmd))
28         self._conanfile.run(cmd)
29 
30     def build(self, target=None):
31         meson_build_folder = self._conanfile.build_folder
32         cmd = 'meson compile -C "{}"'.format(meson_build_folder)
33         njobs = build_jobs(self._conanfile)
34         if njobs:
35             cmd += " -j{}".format(njobs)
36         if target:
37             cmd += " {}".format(target)
38         self._conanfile.output.info("Meson build cmd: {}".format(cmd))
39         self._conanfile.run(cmd)
40 
41     def install(self):
42         self.configure(reconfigure=True)  # To re-do the destination package-folder
43         meson_build_folder = self._conanfile.build_folder
44         cmd = 'meson install -C "{}"'.format(meson_build_folder)
45         self._conanfile.run(cmd)
46 
47     def test(self):
48         meson_build_folder = self._conanfile.build_folder
49         cmd = 'meson test -v -C "{}"'.format(meson_build_folder)
50         # TODO: Do we need vcvars for test?
51         # TODO: This should use conanrunenv, but what if meson itself is a build-require?
52         self._conanfile.run(cmd)
53
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/conan/tools/meson/meson.py b/conan/tools/meson/meson.py
--- a/conan/tools/meson/meson.py
+++ b/conan/tools/meson/meson.py
@@ -3,7 +3,6 @@
 from conan.tools.build import build_jobs
 from conan.tools.meson import MesonToolchain
 
-
 class Meson(object):
     def __init__(self, conanfile):
         self._conanfile = conanfile

{"golden_diff": "diff --git a/conan/tools/meson/meson.py b/conan/tools/meson/meson.py\n--- a/conan/tools/meson/meson.py\n+++ b/conan/tools/meson/meson.py\n@@ -3,7 +3,6 @@\n from conan.tools.build import build_jobs\n from conan.tools.meson import MesonToolchain\n \n-\n class Meson(object):\n     def __init__(self, conanfile):\n         self._conanfile = conanfile\n", "issue": "[bug] Meson cross-file is not looked up in the conan install-folder\n### Environment Details (include every applicable attribute)\r\n  * Operating System+version: Linux Ubuntu 20.04.2 LTS\r\n  * Compiler+version: x86_64-w64-mingw32 9.3\r\n  * Conan version: 1.36.0\r\n  * Python version: 3.8.5\r\n\r\n### Steps to reproduce (Include if Applicable)\r\n  - create a profile for cross compilation Linux to Windows (as from the documentation)\r\n  - create a cross-compiled meson project (generator pkg_config and generate MesonToolchain)\r\n  - `conan install . -if install` (conan_meson_cross.ini is generated inside the install directory)\r\n  - `conan build . -if install` (conan is not found in current directory)\r\n\r\n### Logs (Executed commands with output) (Include/Attach if Applicable)\r\n```\r\nvscode \u279c /workspaces/tennisAnalysis (main \u2717) $ conan install . -if install\r\nConfiguration:\r\n[settings]\r\narch=x86_64\r\nbuild_type=Release\r\ncompiler=gcc\r\ncompiler.libcxx=libstdc++11\r\ncompiler.version=9.3\r\nos=Windows\r\nos_build=Linux\r\n[options]\r\n[build_requires]\r\n[env]\r\nAR=x86_64-w64-mingw32-ar\r\nAS=x86_64-w64-mingw32-as\r\nCC=x86_64-w64-mingw32-gcc-posix\r\nCHOST=x86_64-w64-mingw32\r\nCONAN_CMAKE_FIND_ROOT_PATH=/usr/bin/x86_64-w64-mingw32 # Adjust this path  # Optional, for CMake to find things in that folder\r\nCONAN_CMAKE_SYSROOT=/usr/bin/x86_64-w64-mingw32 # Adjust this path  # Optional, if we want to define sysroot\r\nCXX=x86_64-w64-mingw32-g++-posix\r\nPKG_CONFIG=pkg-config\r\nRANLIB=x86_64-w64-mingw32-ranlib\r\nRC=x86_64-w64-mingw32-windres\r\nSTRIP=x86_64-w64-mingw32-strip\r\nWARN: libtiff/4.2.0: requirement libwebp/1.1.0 overridden by opencv/4.5.2 to libwebp/1.2.0 \r\nconanfile.py: Installing package\r\nRequirements\r\n    eigen/3.3.9 from 'conan-center' - Cache\r\n    jasper/2.0.32 from 'conan-center' - Cache\r\n    jbig/20160605 from 'conan-center' - Cache\r\n    libdeflate/1.7 from 'conan-center' - Cache\r\n    libjpeg/9d from 'conan-center' - Cache\r\n    libpng/1.6.37 from 'conan-center' - Cache\r\n    libtiff/4.2.0 from 'conan-center' - Cache\r\n    libwebp/1.2.0 from 'conan-center' - Cache\r\n    opencv/4.5.2 from 'conan-center' - Cache\r\n    quirc/1.1 from 'conan-center' - Cache\r\n    xz_utils/5.2.5 from 'conan-center' - Cache\r\n    zlib/1.2.11 from 'conan-center' - Cache\r\n    zstd/1.4.8 from 'conan-center' - Cache\r\nPackages\r\n    eigen/3.3.9:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache\r\n    jasper/2.0.32:0b2b79209cb5a733c6f60939a011a2d5b9baba3e - Cache\r\n    jbig/20160605:eb359adcb4224cf32a880f4840496998b718e67a - Cache\r\n    libdeflate/1.7:344886eda55829e935447d0708e3b993938b32c8 - Cache\r\n    libjpeg/9d:344886eda55829e935447d0708e3b993938b32c8 - Cache\r\n    libpng/1.6.37:0ff33ddf098055bd06ad25e84c8ac73a7d386ae6 - Cache\r\n    libtiff/4.2.0:9a66f421b7e2c46cae4d0544a209f0a41fce4717 - Cache\r\n    libwebp/1.2.0:743b5bdc8f8a9eb56cece0880367af1603426c77 - Cache\r\n    opencv/4.5.2:3c85fd5b9706d74ca80c0013b88789f0a882a76e - Cache\r\n    quirc/1.1:923b659fe22255fc3db85bbda05de841448c924b - Cache\r\n    xz_utils/5.2.5:344886eda55829e935447d0708e3b993938b32c8 - Cache\r\n    zlib/1.2.11:344886eda55829e935447d0708e3b993938b32c8 - Cache\r\n    zstd/1.4.8:344886eda55829e935447d0708e3b993938b32c8 - Cache\r\n\r\nCross-build from 'Linux:x86_64' to 'Windows:x86_64'\r\nInstalling (downloading, building) binaries...\r\neigen/3.3.9: Already installed!\r\njbig/20160605: Already installed!\r\njbig/20160605: Appending PATH environment variable: /home/vscode/.conan/data/jbig/20160605/_/_/package/eb359adcb4224cf32a880f4840496998b718e67a/bin\r\nlibdeflate/1.7: Already installed!\r\nlibjpeg/9d: Already installed!\r\nlibwebp/1.2.0: Already installed!\r\nquirc/1.1: Already installed!\r\nxz_utils/5.2.5: Already installed!\r\nzlib/1.2.11: Already installed!\r\nzstd/1.4.8: Already installed!\r\njasper/2.0.32: Already installed!\r\nlibpng/1.6.37: Already installed!\r\nlibtiff/4.2.0: Already installed!\r\nopencv/4.5.2: Already installed!\r\nconanfile.py: Generator pkg_config created opencv_core.pc\r\nconanfile.py: Generator pkg_config created opencv_imgproc.pc\r\nconanfile.py: Generator pkg_config created opencv_flann.pc\r\nconanfile.py: Generator pkg_config created opencv_features2d.pc\r\nconanfile.py: Generator pkg_config created opencv_calib3d.pc\r\nconanfile.py: Generator pkg_config created opencv_video.pc\r\nconanfile.py: Generator pkg_config created opencv_video_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_stitching.pc\r\nconanfile.py: Generator pkg_config created opencv_stitching_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_objdetect.pc\r\nconanfile.py: Generator pkg_config created opencv_objdetect_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_imgcodecs.pc\r\nconanfile.py: Generator pkg_config created opencv_videoio.pc\r\nconanfile.py: Generator pkg_config created opencv_highgui.pc\r\nconanfile.py: Generator pkg_config created opencv_highgui_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_calib3d_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_videoio_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_imgcodecs_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_features2d_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_photo.pc\r\nconanfile.py: Generator pkg_config created opencv_photo_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_ml.pc\r\nconanfile.py: Generator pkg_config created opencv_ml_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_imgproc_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_flann_alias.pc\r\nconanfile.py: Generator pkg_config created opencv_core_alias.pc\r\nconanfile.py: Generator pkg_config created opencv.pc\r\nconanfile.py: Generator pkg_config created jasper.pc\r\nconanfile.py: Generator pkg_config created libpng.pc\r\nconanfile.py: Generator pkg_config created libtiff-4.pc\r\nconanfile.py: Generator pkg_config created eigen3.pc\r\nconanfile.py: Generator pkg_config created quirc.pc\r\nconanfile.py: Generator pkg_config created zlib.pc\r\nconanfile.py: Generator pkg_config created libjpeg.pc\r\nconanfile.py: Generator pkg_config created libdeflate.pc\r\nconanfile.py: Generator pkg_config created liblzma.pc\r\nconanfile.py: Generator pkg_config created jbig.pc\r\nconanfile.py: Generator pkg_config created libzstd.pc\r\nconanfile.py: Generator pkg_config created zstd.pc\r\nconanfile.py: Generator pkg_config created libwebp.pc\r\nconanfile.py: Generator pkg_config created libwebpmux.pc\r\nconanfile.py: Generator pkg_config created libwebpdemux.pc\r\nconanfile.py: Generator pkg_config created libwebpdecoder.pc\r\nconanfile.py: Generator txt created conanbuildinfo.txt\r\nconanfile.py: Calling generate()\r\nconanfile.py: Generated conaninfo.txt\r\nconanfile.py: Generated graphinfo\r\nvscode \u279c /workspaces/tennisAnalysis (main \u2717) $ conan build . -if install\r\nUsing lockfile: '/workspaces/tennisAnalysis/install/conan.lock'\r\nUsing cached profile from lockfile\r\nconanfile.py: Calling build()\r\nCould not find any valid candidate for cross files: conan_meson_cross.ini\r\n\r\nERROR: Cannot find specified cross file: conan_meson_cross.ini\r\nERROR: conanfile.py: Error in build() method, line 42\r\n        meson.configure(source_folder=\"src\")\r\n        ConanException: Error 1 while executing meson setup --cross-file \"conan_meson_cross.ini\" \"/workspaces/tennisAnalysis/build\" \"/workspaces/tennisAnalysis/src\" -Dprefix=\"/workspaces/tennisAnalysis/package\"\r\n```\r\n\n", "before_files": [{"content": "import os\n\nfrom conan.tools.build import build_jobs\nfrom conan.tools.meson import MesonToolchain\n\n\nclass Meson(object):\n    def __init__(self, conanfile):\n        self._conanfile = conanfile\n\n    def configure(self, reconfigure=False):\n        source_folder = self._conanfile.source_folder\n        build_folder = self._conanfile.build_folder\n        cmd = \"meson setup\"\n        generators_folder = self._conanfile.generators_folder\n        cross = os.path.join(generators_folder, MesonToolchain.cross_filename)\n        native = os.path.join(generators_folder, MesonToolchain.native_filename)\n        if os.path.exists(cross):\n            cmd += ' --cross-file \"{}\"'.format(cross)\n        else:\n            cmd += ' --native-file \"{}\"'.format(native)\n        cmd += ' \"{}\" \"{}\"'.format(build_folder, source_folder)\n        if self._conanfile.package_folder:\n            cmd += ' -Dprefix=\"{}\"'.format(self._conanfile.package_folder)\n        if reconfigure:\n            cmd += ' --reconfigure'\n        self._conanfile.output.info(\"Meson configure cmd: {}\".format(cmd))\n        self._conanfile.run(cmd)\n\n    def build(self, target=None):\n        meson_build_folder = self._conanfile.build_folder\n        cmd = 'meson compile -C \"{}\"'.format(meson_build_folder)\n        njobs = build_jobs(self._conanfile)\n        if njobs:\n            cmd += \" -j{}\".format(njobs)\n        if target:\n            cmd += \" {}\".format(target)\n        self._conanfile.output.info(\"Meson build cmd: {}\".format(cmd))\n        self._conanfile.run(cmd)\n\n    def install(self):\n        self.configure(reconfigure=True)  # To re-do the destination package-folder\n        meson_build_folder = self._conanfile.build_folder\n        cmd = 'meson install -C \"{}\"'.format(meson_build_folder)\n        self._conanfile.run(cmd)\n\n    def test(self):\n        meson_build_folder = self._conanfile.build_folder\n        cmd = 'meson test -v -C \"{}\"'.format(meson_build_folder)\n        # TODO: Do we need vcvars for test?\n        # TODO: This should use conanrunenv, but what if meson itself is a build-require?\n        self._conanfile.run(cmd)\n", "path": "conan/tools/meson/meson.py"}], "after_files": [{"content": "import os\n\nfrom conan.tools.build import build_jobs\nfrom conan.tools.meson import MesonToolchain\n\nclass Meson(object):\n    def __init__(self, conanfile):\n        self._conanfile = conanfile\n\n    def configure(self, reconfigure=False):\n        source_folder = self._conanfile.source_folder\n        build_folder = self._conanfile.build_folder\n        cmd = \"meson setup\"\n        generators_folder = self._conanfile.generators_folder\n        cross = os.path.join(generators_folder, MesonToolchain.cross_filename)\n        native = os.path.join(generators_folder, MesonToolchain.native_filename)\n        if os.path.exists(cross):\n            cmd += ' --cross-file \"{}\"'.format(cross)\n        else:\n            cmd += ' --native-file \"{}\"'.format(native)\n        cmd += ' \"{}\" \"{}\"'.format(build_folder, source_folder)\n        if self._conanfile.package_folder:\n            cmd += ' -Dprefix=\"{}\"'.format(self._conanfile.package_folder)\n        if reconfigure:\n            cmd += ' --reconfigure'\n        self._conanfile.output.info(\"Meson configure cmd: {}\".format(cmd))\n        self._conanfile.run(cmd)\n\n    def build(self, target=None):\n        meson_build_folder = self._conanfile.build_folder\n        cmd = 'meson compile -C \"{}\"'.format(meson_build_folder)\n        njobs = build_jobs(self._conanfile)\n        if njobs:\n            cmd += \" -j{}\".format(njobs)\n        if target:\n            cmd += \" {}\".format(target)\n        self._conanfile.output.info(\"Meson build cmd: {}\".format(cmd))\n        self._conanfile.run(cmd)\n\n    def install(self):\n        self.configure(reconfigure=True)  # To re-do the destination package-folder\n        meson_build_folder = self._conanfile.build_folder\n        cmd = 'meson install -C \"{}\"'.format(meson_build_folder)\n        self._conanfile.run(cmd)\n\n    def test(self):\n        meson_build_folder = self._conanfile.build_folder\n        cmd = 'meson test -v -C \"{}\"'.format(meson_build_folder)\n        # TODO: Do we need vcvars for test?\n        # TODO: This should use conanrunenv, but what if meson itself is a build-require?\n        self._conanfile.run(cmd)\n", "path": "conan/tools/meson/meson.py"}]}