diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-12-04 20:12:20 +0000 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2020-09-11 20:45:09 +0000 |
commit | 6a56291a2a7dc5ea1443f29f3715c7491152f034 (patch) | |
tree | 0c53e53a9b5ec4955699dc806690669467cc6d40 /cross | |
parent | a908404e6d2380ae6b10c290d1870ac6ede2965a (diff) | |
download | meson-6a56291a2a7dc5ea1443f29f3715c7491152f034.zip meson-6a56291a2a7dc5ea1443f29f3715c7491152f034.tar.gz meson-6a56291a2a7dc5ea1443f29f3715c7491152f034.tar.bz2 |
Add a test run of MSVC ARM64 cross on Windows x64
Add a cross-file for MSVC UWP ARM64.
Bump cidata tag to get an updated install.ps1 script (run by run.ps1)
which sets the vcvars environment correctly when cross-compiling.
Since arranging the correct environment for simultaneous cross and
native 'cl' use is hard, this is test run uses '--cross-only' so we
don't require a native compiler.
Extend '--cross-only' so it also explicitly uses a machine file which
makes all build machine compilers unusable.
Diffstat (limited to 'cross')
-rw-r--r-- | cross/arm64cl.txt | 17 | ||||
-rw-r--r-- | cross/none.txt | 18 |
2 files changed, 35 insertions, 0 deletions
diff --git a/cross/arm64cl.txt b/cross/arm64cl.txt new file mode 100644 index 0000000..2d7bf2d --- /dev/null +++ b/cross/arm64cl.txt @@ -0,0 +1,17 @@ +[binaries] +c = 'cl' +cpp = 'cl' +ar = 'lib' +windres = 'rc' + +[properties] +c_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP'] +c_link_args = ['-APPCONTAINER', 'WindowsApp.lib'] +cpp_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP'] +cpp_link_args = ['-APPCONTAINER', 'WindowsApp.lib'] + +[host_machine] +system = 'windows' +cpu_family = 'aarch64' +cpu = 'armv8' +endian = 'little' diff --git a/cross/none.txt b/cross/none.txt new file mode 100644 index 0000000..8727e27 --- /dev/null +++ b/cross/none.txt @@ -0,0 +1,18 @@ +# native file used to make the build machine compiler unusable + +[host_machine] +system = 'none' +cpu_family = 'none' +cpu = 'none' +endian = 'little' + +[properties] + +[binaries] +c = ['false'] +cpp = ['false'] +objc = ['false'] +objcpp = ['false'] +ar = ['false'] +pkgconfig = ['false'] +cmake = ['false'] |