Home | History | Annotate | Download | only in api
      1 Copyright (C) 2006 The Android Open Source Project
      2 
      3 Licensed under the Apache License, Version 2.0 (the "License");
      4 you may not use this file except in compliance with the License.
      5 You may obtain a copy of the License at
      6 
      7   http://www.apache.org/licenses/LICENSE-2.0
      8 
      9 Unless required by applicable law or agreed to in writing, software
     10 distributed under the License is distributed on an "AS IS" BASIS,
     11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 See the License for the specific language governing permissions and
     13 limitations under the License.
     14 
     15 In order to build a directory with a SOURCES file you will need to install
     16 the Windows Driver Kit, which can be obtained from Microsoft:
     17 
     18 Windows Driver Kit Version 7.1.0
     19 https://www.microsoft.com/en-us/download/details.aspx?id=11800
     20 md5: 8fe981a1706d43ad34bda496e6558f94
     21 sha1: de6abdb8eb4e08942add4aa270c763ed4e3d8242
     22 
     23 This old version is used because it can build for Windows Vista (WDK 8.1
     24 cannot), it includes compilers (so it doesn't require Visual Studio), and it is
     25 probably not too far from the WDK that this code was originally built with, so
     26 it should be less risky.
     27 
     28 When installing the WDK, uncheck `Device Simulation Framework' because it is
     29 unnecessary and it installs a kernel-mode driver that we don't need.
     30 
     31 Assuming that WDK is installed, you need to set one of the WDK's build
     32 environments (Start Menu -> Windows Driver Kits -> x86 Free Build Environment;
     33 choose the one for the oldest version of Windows you want to support),
     34 "cd" back into this directory, and execute "build -cbeEIFZ" to clean and rebuild
     35 this project, or you can execute "build -befEIF" to do a minimal build.
     36 
     37 When you're done with the WDK build environment, don't forget to right-click the
     38 OACR icon (in the lower-right notification area of the taskbar) and choose
     39 `Close'.
     40