From f06c958f3c92d68e1a4216eb80fc228eac852db6 Mon Sep 17 00:00:00 2001 From: Raphael Moll Date: Thu, 26 Jan 2012 15:09:14 -0800 Subject: [PATCH] Merge "Projects whitelisted for Windows SDK compilation." This replaces the list maintained in build/core/main.mk There's a similar change in sdk.git at Change Ifa8111dbae (cherry-pick of 2b53ba58976db5696d65e95ce5c1968263976a71) Change-Id: I9ea5720291c9057aab3cd4f7f590fa2f7ae17444 --- build/sdk_only_whitelist.mk | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 build/sdk_only_whitelist.mk diff --git a/build/sdk_only_whitelist.mk b/build/sdk_only_whitelist.mk new file mode 100644 index 000000000..16bbe1bde --- /dev/null +++ b/build/sdk_only_whitelist.mk @@ -0,0 +1,70 @@ +# Whitelist of SDK projects that can be built for the SDK on Windows + +# The Windows SDK cannot build all the projects from the SDK tree, typically +# due to obvious compiler/architectures differences. When building the Windows +# SDK, we only care about a subset of projects (e.g. generally the SDK tools +# and a few platform-specific binaries.) +# +# This file defines a whitelist of projects that can be built in the Windows +# SDK case. Note that whitelisting a project directory will NOT actually build +# it -- it will only allow one to reference it as a make dependency. +# +# This file is included by build/core/main.mk. + +# Note that there are 2 flavors of this file: +# +# - The other file: sdk/build/sdk_only_whitelist.mk +# must list all projects that are that are NOT specific to a given platform. +# These binaries are the ones typically found in the SDK/tools directory. +# +# - This file: development/build/sdk_only_whitelist.mk +# must list all projects that are specific to a given platform. These +# projects generate files that are generally locates in SDK/platform-tools, +# or SDK/platforms/, etc. + +# ----- +# Whitelist of platform specific projects that do NOT need Java (e.g. C libraries) + +subdirs += \ + prebuilt \ + prebuilts \ + build/libs/host \ + build/tools/zipalign \ + dalvik/dexdump \ + dalvik/libdex \ + dalvik/tools/dmtracedump \ + dalvik/tools/hprof-conv \ + development/host \ + development/tools/etc1tool \ + development/tools/line_endings \ + development/tools/emulator/opengl \ + external/clang \ + external/easymock \ + external/expat \ + external/libpng \ + external/llvm \ + external/sqlite/dist \ + external/zlib \ + frameworks/base \ + frameworks/compile \ + system/core/adb \ + system/core/fastboot \ + system/core/libcutils \ + system/core/liblog \ + system/core/libzipfile + +# ----- +# Whitelist of platform specific projects that DO require Java + +ifneq (,$(shell which javac 2>/dev/null)) +subdirs += \ + build/tools/signapk \ + dalvik/dx \ + libcore \ + development/apps \ + development/tools/mkstubs \ + packages + +else +$(warning SDK_ONLY: javac not available.) +endif