• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2006 The Android Open Source Project
2
3# Setting LOCAL_PATH will mess up all-subdir-makefiles, so do it beforehand.
4SAVE_MAKEFILES := $(call all-subdir-makefiles)
5
6LOCAL_PATH:= $(call my-dir)
7include $(CLEAR_VARS)
8
9LOCAL_SHARED_LIBRARIES := libutils libbinder libcutils libwpa_client
10
11LOCAL_INCLUDES += $(LOCAL_PATH)
12
13ifneq ($(TARGET_SIMULATOR),true)
14  LOCAL_CFLAGS  += -DQEMU_HARDWARE
15  QEMU_HARDWARE := true
16endif
17
18ifneq ($(TARGET_SIMULATOR),true)
19LOCAL_SHARED_LIBRARIES += libdl
20endif
21
22include $(SAVE_MAKEFILES)
23
24# need "-lrt" on Linux simulator to pick up clock_gettime
25ifeq ($(TARGET_SIMULATOR),true)
26	ifeq ($(HOST_OS),linux)
27		LOCAL_LDLIBS += -lrt -lpthread -ldl
28	endif
29endif
30
31LOCAL_MODULE:= libhardware_legacy
32
33include $(BUILD_SHARED_LIBRARY)
34