aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Moll <raphael@google.com>2012-01-26 16:01:50 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-01-26 16:01:50 -0800
commit0a4b210031ea375a6493e7d2dd3d9f935c46c134 (patch)
treefb3ad34e58df6cd596460f19e459df57818e62c2
parent0b9096131c0260560eefce376a77f031a0818766 (diff)
parent274f77fecc330c13bc3eea7a65989262a0b7521a (diff)
downloadsdk-0a4b210031ea375a6493e7d2dd3d9f935c46c134.zip
sdk-0a4b210031ea375a6493e7d2dd3d9f935c46c134.tar.gz
sdk-0a4b210031ea375a6493e7d2dd3d9f935c46c134.tar.bz2
Merge "Projects whitelisted for Windows SDK compilation."
-rw-r--r--build/sdk_only_whitelist.mk62
1 files changed, 62 insertions, 0 deletions
diff --git a/build/sdk_only_whitelist.mk b/build/sdk_only_whitelist.mk
new file mode 100644
index 0000000..7c2a2ae
--- /dev/null
+++ b/build/sdk_only_whitelist.mk
@@ -0,0 +1,62 @@
+# 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:
+#
+# - This 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.
+#
+# - The other 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 SDK specific projects that do NOT need Java (e.g. C libraries)
+
+subdirs += \
+ external/qemu \
+ prebuilts/tools \
+ sdk/avdlauncher \
+ sdk/emulator/mksdcard \
+ sdk/find_java \
+ sdk/sdklauncher
+
+# -----
+# Whitelist of SDK specific projects that DO require Java
+
+ifneq (,$(shell which javac 2>/dev/null))
+subdirs += \
+ sdk/archquery \
+ sdk/androidprefs \
+ sdk/apkbuilder \
+ sdk/assetstudio \
+ sdk/common \
+ sdk/ddms \
+ sdk/hierarchyviewer2 \
+ sdk/ide_common \
+ sdk/jarutils \
+ sdk/layoutlib_api \
+ sdk/manifmerger \
+ sdk/ninepatch \
+ sdk/rule_api \
+ sdk/lint \
+ sdk/sdkstats \
+ sdk/sdkmanager \
+ sdk/swtmenubar \
+ sdk/traceview
+
+else
+$(warning SDK_ONLY: javac not available.)
+endif