xref: /aosp_15_r20/development/host/windows/usb/api/BUILDME.TXT (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard WorkerCopyright (C) 2006 The Android Open Source Project
2*90c8c64dSAndroid Build Coastguard Worker
3*90c8c64dSAndroid Build Coastguard WorkerLicensed under the Apache License, Version 2.0 (the "License");
4*90c8c64dSAndroid Build Coastguard Workeryou may not use this file except in compliance with the License.
5*90c8c64dSAndroid Build Coastguard WorkerYou may obtain a copy of the License at
6*90c8c64dSAndroid Build Coastguard Worker
7*90c8c64dSAndroid Build Coastguard Worker  http://www.apache.org/licenses/LICENSE-2.0
8*90c8c64dSAndroid Build Coastguard Worker
9*90c8c64dSAndroid Build Coastguard WorkerUnless required by applicable law or agreed to in writing, software
10*90c8c64dSAndroid Build Coastguard Workerdistributed under the License is distributed on an "AS IS" BASIS,
11*90c8c64dSAndroid Build Coastguard WorkerWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*90c8c64dSAndroid Build Coastguard WorkerSee the License for the specific language governing permissions and
13*90c8c64dSAndroid Build Coastguard Workerlimitations under the License.
14*90c8c64dSAndroid Build Coastguard Worker
15*90c8c64dSAndroid Build Coastguard WorkerIn order to build a directory with a SOURCES file you will need to install
16*90c8c64dSAndroid Build Coastguard Workerthe Windows Driver Kit, which can be obtained from Microsoft:
17*90c8c64dSAndroid Build Coastguard Worker
18*90c8c64dSAndroid Build Coastguard WorkerWindows Driver Kit Version 7.1.0
19*90c8c64dSAndroid Build Coastguard Workerhttps://www.microsoft.com/en-us/download/details.aspx?id=11800
20*90c8c64dSAndroid Build Coastguard Workermd5: 8fe981a1706d43ad34bda496e6558f94
21*90c8c64dSAndroid Build Coastguard Workersha1: de6abdb8eb4e08942add4aa270c763ed4e3d8242
22*90c8c64dSAndroid Build Coastguard Worker
23*90c8c64dSAndroid Build Coastguard WorkerThis old version is used because it can build for Windows Vista (WDK 8.1
24*90c8c64dSAndroid Build Coastguard Workercannot), it includes compilers (so it doesn't require Visual Studio), and it is
25*90c8c64dSAndroid Build Coastguard Workerprobably not too far from the WDK that this code was originally built with, so
26*90c8c64dSAndroid Build Coastguard Workerit should be less risky.
27*90c8c64dSAndroid Build Coastguard Worker
28*90c8c64dSAndroid Build Coastguard WorkerWhen installing the WDK, uncheck `Device Simulation Framework' because it is
29*90c8c64dSAndroid Build Coastguard Workerunnecessary and it installs a kernel-mode driver that we don't need.
30*90c8c64dSAndroid Build Coastguard Worker
31*90c8c64dSAndroid Build Coastguard WorkerAssuming that WDK is installed, you need to set one of the WDK's build
32*90c8c64dSAndroid Build Coastguard Workerenvironments (Start Menu -> Windows Driver Kits -> x86 Free Build Environment;
33*90c8c64dSAndroid Build Coastguard Workerchoose the one for the oldest version of Windows you want to support),
34*90c8c64dSAndroid Build Coastguard Worker"cd" back into this directory, and execute "build -cbeEIFZ" to clean and rebuild
35*90c8c64dSAndroid Build Coastguard Workerthis project, or you can execute "build -befEIF" to do a minimal build.
36*90c8c64dSAndroid Build Coastguard Worker
37*90c8c64dSAndroid Build Coastguard WorkerWhen you're done with the WDK build environment, don't forget to right-click the
38*90c8c64dSAndroid Build Coastguard WorkerOACR icon (in the lower-right notification area of the taskbar) and choose
39*90c8c64dSAndroid Build Coastguard Worker`Close'.
40