README.MD
1# AOSP Toolchain Compatibility Layer for Windows
2
3This directory provides header files and a compatibility library to ensure QEMU compilation using the AOSP clang-cl toolchain.
4
5Though clang-cl accepts clang like compiler flags, it does not provide a set of posix compliant headers (like mingw does). In this directory you will find header files with constant definitions and functions that are used by QEMU. For some functions an implementations is provided.
6
7Note that the current functionality is not (yet) utf-8 compliant so you will likely encounter issues when using unicode paths.
8
9
10## Package Details
11
12Some of the code used here is lifted from other packages:
13
14- Dirent: This implementation is lifted from mingw runtime, the source has been taking from the AOSP version of [glib](https://android.googlesource.com/platform/external/bluetooth/glib/+/refs/heads/emu-dev/glib/dirent/).
15- Getopt: The implementation we use was taken from netbsd, with the following license:
16
17```
18 * Copyright (c) 2002 Todd C. Miller <[email protected]>
19 *
20 * Permission to use, copy, modify, and distribute this software for any
21 * purpose with or without fee is hereby granted, provided that the above
22 * copyright notice and this permission notice appear in all copies.
23```
24
25- We have a series of missing compiler directives that we have brought in from llvm, which are release under the Apache-2.0 license with an llvm exception. The exact license can be obtained [here](https://llvm.org/LICENSE.txt)
26