1#
2# Copyright (C) 2009 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17common_msm_dirs := libcopybit liblights libopencorehw librpc libstagefrighthw
18msm7k_dirs := $(common_msm_dirs) boot libgralloc libaudio
19qsd8k_dirs := $(common_msm_dirs) libgralloc-qsd8k libaudio-qsd8k dspcrashd
20msm7x30_dirs := liblights libgralloc-qsd8k librpc libaudio-qdsp5v2
21
22ifeq ($(TARGET_BOARD_PLATFORM),msm7k)
23  include $(call all-named-subdir-makefiles,$(msm7k_dirs))
24else
25  ifeq ($(TARGET_BOARD_PLATFORM),qsd8k)
26    include $(call all-named-subdir-makefiles,$(qsd8k_dirs))
27  else
28    ifeq ($(TARGET_BOARD_PLATFORM),msm7x30)
29      include $(call all-named-subdir-makefiles,$(msm7x30_dirs))
30    endif
31  endif
32endif
33