2009-03-04 04:28:42 +01:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# A central place to define mappings to paths, to avoid hard-coding
|
|
|
|
# them in Android.mk files.
|
|
|
|
#
|
|
|
|
# TODO: Allow each project to define stuff like this before the per-module
|
|
|
|
# Android.mk files are included, so we don't need to have a big central
|
|
|
|
# list.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# A mapping from shorthand names to include directories.
|
|
|
|
#
|
|
|
|
pathmap_INCL := \
|
|
|
|
bootloader:bootable/bootloader/legacy/include \
|
2012-04-06 02:09:18 +02:00
|
|
|
camera:system/media/camera/include \
|
2009-03-04 04:28:42 +01:00
|
|
|
corecg:external/skia/include/core \
|
|
|
|
frameworks-base:frameworks/base/include \
|
2012-03-06 01:04:31 +01:00
|
|
|
frameworks-native:frameworks/native/include \
|
2009-03-04 04:28:42 +01:00
|
|
|
graphics:external/skia/include/core \
|
|
|
|
libc:bionic/libc/include \
|
|
|
|
libhardware:hardware/libhardware/include \
|
|
|
|
libhardware_legacy:hardware/libhardware_legacy/include \
|
|
|
|
libhost:build/libs/host/include \
|
|
|
|
libm:bionic/libm/include \
|
2012-05-04 01:37:40 +02:00
|
|
|
libnativehelper:libnativehelper/include \
|
2009-03-04 04:28:42 +01:00
|
|
|
libpagemap:system/extras/libpagemap/include \
|
|
|
|
libril:hardware/ril/include \
|
|
|
|
libstdc++:bionic/libstdc++/include \
|
|
|
|
libthread_db:bionic/libthread_db/include \
|
|
|
|
mkbootimg:system/core/mkbootimg \
|
2012-03-06 03:45:37 +01:00
|
|
|
opengl-tests-includes:frameworks/native/opengl/tests/include \
|
2009-03-04 04:28:42 +01:00
|
|
|
recovery:bootable/recovery \
|
2011-06-17 05:53:25 +02:00
|
|
|
system-core:system/core/include \
|
2012-03-13 23:23:33 +01:00
|
|
|
audio-effects:system/media/audio_effects/include \
|
|
|
|
audio-utils:system/media/audio_utils/include \
|
2013-01-16 01:03:59 +01:00
|
|
|
audio-route:system/media/audio_route/include \
|
2012-03-27 02:50:44 +02:00
|
|
|
wilhelm:frameworks/wilhelm/include \
|
|
|
|
wilhelm-ut:frameworks/wilhelm/src/ut \
|
2011-06-17 05:53:25 +02:00
|
|
|
speex:external/speex/include
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Returns the path to the requested module's include directory,
|
|
|
|
# relative to the root of the source tree. Does not handle external
|
|
|
|
# modules.
|
|
|
|
#
|
|
|
|
# $(1): a list of modules (or other named entities) to find the includes for
|
|
|
|
#
|
|
|
|
define include-path-for
|
|
|
|
$(foreach n,$(1),$(patsubst $(n):%,%,$(filter $(n):%,$(pathmap_INCL))))
|
|
|
|
endef
|
|
|
|
|
|
|
|
#
|
|
|
|
# Many modules expect to be able to say "#include <jni.h>",
|
|
|
|
# so make it easy for them to find the correct path.
|
|
|
|
#
|
|
|
|
JNI_H_INCLUDE := $(call include-path-for,libnativehelper)/nativehelper
|
|
|
|
|
|
|
|
#
|
|
|
|
# A list of all source roots under frameworks/base, which will be
|
|
|
|
# built into the android.jar.
|
|
|
|
#
|
|
|
|
FRAMEWORKS_BASE_SUBDIRS := \
|
|
|
|
$(addsuffix /java, \
|
|
|
|
core \
|
|
|
|
graphics \
|
|
|
|
location \
|
|
|
|
media \
|
2012-03-27 19:46:13 +02:00
|
|
|
media/mca/effect \
|
|
|
|
media/mca/filterfw \
|
|
|
|
media/mca/filterpacks \
|
2010-07-27 01:34:47 +02:00
|
|
|
drm \
|
2009-03-04 04:28:42 +01:00
|
|
|
opengl \
|
|
|
|
sax \
|
|
|
|
telephony \
|
|
|
|
wifi \
|
2009-06-10 17:08:03 +02:00
|
|
|
keystore \
|
2009-03-04 04:28:42 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
#
|
|
|
|
# A version of FRAMEWORKS_BASE_SUBDIRS that is expanded to full paths from
|
|
|
|
# the root of the tree. This currently needs to be here so that other libraries
|
|
|
|
# and apps can find the .aidl files in the framework, though we should really
|
|
|
|
# figure out a better way to do this.
|
|
|
|
#
|
|
|
|
FRAMEWORKS_BASE_JAVA_SRC_DIRS := \
|
|
|
|
$(addprefix frameworks/base/,$(FRAMEWORKS_BASE_SUBDIRS))
|
2011-11-18 00:13:49 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# A list of all source roots under frameworks/support.
|
|
|
|
#
|
|
|
|
FRAMEWORKS_SUPPORT_SUBDIRS := \
|
2013-05-28 23:53:22 +02:00
|
|
|
v4 \
|
|
|
|
v7/gridlayout \
|
|
|
|
v7/appcompat \
|
2013-07-09 02:35:00 +02:00
|
|
|
v7/mediarouter \
|
2013-08-21 14:19:44 +02:00
|
|
|
v13 \
|
|
|
|
multidex
|
2011-11-18 00:13:49 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# A version of FRAMEWORKS_SUPPORT_SUBDIRS that is expanded to full paths from
|
|
|
|
# the root of the tree.
|
|
|
|
#
|
|
|
|
FRAMEWORKS_SUPPORT_JAVA_SRC_DIRS := \
|
|
|
|
$(addprefix frameworks/support/,$(FRAMEWORKS_SUPPORT_SUBDIRS))
|
2013-04-25 05:36:07 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# A list of support library modules.
|
|
|
|
#
|
|
|
|
FRAMEWORKS_SUPPORT_JAVA_LIBRARIES := \
|
|
|
|
$(foreach dir,$(FRAMEWORKS_SUPPORT_SUBDIRS),android-support-$(subst /,-,$(dir)))
|
|
|
|
|