2009-03-04 11:28:42 +08: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
|
2015-07-09 04:13:37 +08:00
|
|
|
# them in Android.mk files. Not meant for header file include directories,
|
|
|
|
# despite the fact that it was historically used for that!
|
|
|
|
#
|
|
|
|
# If you want this for a library's header files, use LOCAL_EXPORT_C_INCLUDES
|
|
|
|
# instead. Then users of the library don't have to do anything --- they'll
|
|
|
|
# have the correct header files added to their include path automatically.
|
|
|
|
#
|
|
|
|
|
2009-03-04 11:28:42 +08:00
|
|
|
#
|
|
|
|
# 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 := \
|
2012-04-06 08:09:18 +08:00
|
|
|
camera:system/media/camera/include \
|
2009-03-04 11:28:42 +08:00
|
|
|
frameworks-base:frameworks/base/include \
|
2012-03-06 08:04:31 +08:00
|
|
|
frameworks-native:frameworks/native/include \
|
2009-03-04 11:28:42 +08:00
|
|
|
libhardware:hardware/libhardware/include \
|
|
|
|
libhardware_legacy:hardware/libhardware_legacy/include \
|
|
|
|
libril:hardware/ril/include \
|
2012-03-06 10:45:37 +08:00
|
|
|
opengl-tests-includes:frameworks/native/opengl/tests/include \
|
2009-03-04 11:28:42 +08:00
|
|
|
recovery:bootable/recovery \
|
2011-06-17 11:53:25 +08:00
|
|
|
system-core:system/core/include \
|
2015-04-04 06:09:11 +08:00
|
|
|
audio:system/media/audio/include \
|
2012-03-14 06:23:33 +08:00
|
|
|
audio-effects:system/media/audio_effects/include \
|
|
|
|
audio-utils:system/media/audio_utils/include \
|
2013-01-16 08:03:59 +08:00
|
|
|
audio-route:system/media/audio_route/include \
|
2012-03-27 08:50:44 +08:00
|
|
|
wilhelm:frameworks/wilhelm/include \
|
|
|
|
wilhelm-ut:frameworks/wilhelm/src/ut \
|
2016-09-13 07:10:20 +08:00
|
|
|
mediandk:frameworks/av/media/ndk/
|
2009-03-04 11:28:42 +08: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.
|
|
|
|
#
|
2015-09-25 00:02:19 +08:00
|
|
|
JNI_H_INCLUDE := libnativehelper/include/nativehelper
|
2009-03-04 11:28:42 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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-28 01:46:13 +08:00
|
|
|
media/mca/effect \
|
|
|
|
media/mca/filterfw \
|
|
|
|
media/mca/filterpacks \
|
2010-07-27 07:34:47 +08:00
|
|
|
drm \
|
2009-03-04 11:28:42 +08:00
|
|
|
opengl \
|
|
|
|
sax \
|
2013-12-18 12:26:30 +08:00
|
|
|
telecomm \
|
2009-03-04 11:28:42 +08:00
|
|
|
telephony \
|
|
|
|
wifi \
|
2009-06-10 23:08:03 +08:00
|
|
|
keystore \
|
2013-12-18 05:27:28 +08:00
|
|
|
rs \
|
2009-03-04 11:28:42 +08: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 07:13:49 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# A list of all source roots under frameworks/support.
|
|
|
|
#
|
|
|
|
FRAMEWORKS_SUPPORT_SUBDIRS := \
|
2014-03-27 01:50:38 +08:00
|
|
|
annotations \
|
2016-07-03 07:40:37 +08:00
|
|
|
compat \
|
|
|
|
media-compat \
|
|
|
|
fragment \
|
|
|
|
core-ui \
|
2016-07-18 22:26:46 +08:00
|
|
|
core-utils \
|
2014-06-18 03:12:41 +08:00
|
|
|
v7/gridlayout \
|
2014-09-29 00:08:40 +08:00
|
|
|
v7/cardview \
|
2013-07-09 08:35:00 +08:00
|
|
|
v7/mediarouter \
|
2014-09-29 00:08:40 +08:00
|
|
|
v7/palette \
|
2014-03-19 04:37:51 +08:00
|
|
|
v13 \
|
2015-04-28 19:01:49 +08:00
|
|
|
v17/leanback \
|
2015-05-12 02:58:01 +08:00
|
|
|
design \
|
2015-05-22 07:26:20 +08:00
|
|
|
percent \
|
2015-07-31 02:22:24 +08:00
|
|
|
recommendation \
|
2016-09-10 04:39:18 +08:00
|
|
|
transition \
|
2015-07-31 02:22:24 +08:00
|
|
|
v7/preference \
|
|
|
|
v14/preference \
|
2015-07-31 23:35:58 +08:00
|
|
|
v17/preference-leanback \
|
2016-05-14 02:17:33 +08:00
|
|
|
documents-archive \
|
2015-07-31 23:35:58 +08:00
|
|
|
customtabs
|
2013-10-17 05:30:42 +08:00
|
|
|
|
|
|
|
#
|
2014-07-17 22:52:58 +08:00
|
|
|
# A list of all source roots under frameworks/multidex.
|
2013-10-17 05:30:42 +08:00
|
|
|
#
|
|
|
|
FRAMEWORKS_MULTIDEX_SUBDIRS := \
|
2014-07-24 23:24:30 +08:00
|
|
|
multidex/library/src \
|
|
|
|
multidex/instrumentation/src
|
2011-11-18 07:13:49 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# A version of FRAMEWORKS_SUPPORT_SUBDIRS that is expanded to full paths from
|
|
|
|
# the root of the tree.
|
|
|
|
#
|
|
|
|
FRAMEWORKS_SUPPORT_JAVA_SRC_DIRS := \
|
2013-10-17 05:30:42 +08:00
|
|
|
$(addprefix frameworks/support/,$(FRAMEWORKS_SUPPORT_SUBDIRS)) \
|
2015-04-30 10:34:56 +08:00
|
|
|
$(addprefix frameworks/,$(FRAMEWORKS_MULTIDEX_SUBDIRS)) \
|
2016-07-27 01:06:37 +08:00
|
|
|
frameworks/rs/support \
|
2016-05-14 02:15:25 +08:00
|
|
|
frameworks/support/graphics/drawable/animated \
|
|
|
|
frameworks/support/graphics/drawable/static \
|
2015-08-13 16:38:12 +08:00
|
|
|
frameworks/support/v7/appcompat/src \
|
2015-04-30 10:34:56 +08:00
|
|
|
frameworks/support/v7/recyclerview/src
|
2013-04-25 11:36:07 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# A list of support library modules.
|
|
|
|
#
|
|
|
|
FRAMEWORKS_SUPPORT_JAVA_LIBRARIES := \
|
2013-10-17 05:30:42 +08:00
|
|
|
$(foreach dir,$(FRAMEWORKS_SUPPORT_SUBDIRS),android-support-$(subst /,-,$(dir))) \
|
2016-07-03 07:40:37 +08:00
|
|
|
android-support-v4 \
|
2016-05-14 02:15:25 +08:00
|
|
|
android-support-vectordrawable \
|
|
|
|
android-support-animatedvectordrawable \
|
2015-08-13 16:38:12 +08:00
|
|
|
android-support-v7-appcompat \
|
2015-04-30 10:34:56 +08:00
|
|
|
android-support-v7-recyclerview \
|
2016-07-27 01:06:37 +08:00
|
|
|
android-support-v8-renderscript \
|
2014-07-24 23:24:30 +08:00
|
|
|
android-support-multidex \
|
|
|
|
android-support-multidex-instrumentation
|
2013-04-25 11:36:07 +08:00
|
|
|
|
2015-07-14 07:44:44 +08:00
|
|
|
#
|
|
|
|
# A list of all documented source roots under frameworks/data-binding.
|
|
|
|
#
|
|
|
|
FRAMEWORKS_DATA_BINDING_SUBDIRS := \
|
|
|
|
baseLibrary/src/main \
|
2016-01-20 20:17:31 +08:00
|
|
|
extensions/library/src/main \
|
|
|
|
extensions/library/src/doc
|
2015-07-14 07:44:44 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# A version of FRAMEWORKS_DATA_BINDING_SUBDIRS that is expanded to full paths from
|
|
|
|
# the root of the tree.
|
|
|
|
#
|
|
|
|
FRAMEWORKS_DATA_BINDING_JAVA_SRC_DIRS := \
|
|
|
|
$(addprefix frameworks/data-binding/,$(FRAMEWORKS_DATA_BINDING_SUBDIRS))
|
|
|
|
|