hardware/libhardware_legacy
Revision | 4d4047b7e9ca1d312825df150fe952ac4b78b851 (tree) |
---|---|
Zeit | 2017-04-15 01:05:25 |
Autor | Steven Moreland <smoreland@goog...> |
Commiter | Steven Moreland |
libhardware_legacy: Android.mk -> Android.bp
Test: builds with BOARD_VNDK_VERSION := current
Test: (sanity) Boots and works on internal marlin.
Bug: 33241851
Bug: 29915755
Change-Id: Ic355174a67860afa13377bc9d8f0a140f59ec34e
@@ -1,9 +1,50 @@ | ||
1 | 1 | // Copyright 2006 The Android Open Source Project |
2 | 2 | |
3 | +subdirs = [ | |
4 | + "audio", | |
5 | +] | |
6 | + | |
7 | +cc_library_headers { | |
8 | + name: "libhardware_legacy_headers", | |
9 | + export_include_dirs: ["include"], | |
10 | + | |
11 | + header_libs: ["libcutils_headers"], | |
12 | + export_header_lib_headers: ["libcutils_headers"], | |
13 | +} | |
14 | + | |
3 | 15 | cc_library { |
4 | 16 | name: "libpower", |
5 | 17 | |
6 | - srcs: ["power/power.c"], | |
18 | + srcs: ["power.c"], | |
7 | 19 | export_include_dirs: ["include"], |
8 | 20 | shared_libs: ["libcutils", "liblog"], |
9 | 21 | } |
22 | + | |
23 | +cc_library_shared { | |
24 | + name: "libhardware_legacy", | |
25 | + | |
26 | + shared_libs: [ | |
27 | + "libbase", | |
28 | + "libdl", | |
29 | + "libcutils", | |
30 | + "liblog", | |
31 | + ], | |
32 | + | |
33 | + header_libs: [ | |
34 | + "libhardware_legacy_headers", | |
35 | + ], | |
36 | + export_header_lib_headers: ["libhardware_legacy_headers"], | |
37 | + | |
38 | + export_include_dirs: ["include"], | |
39 | + | |
40 | + cflags: [ | |
41 | + "-DQEMU_HARDWARE", | |
42 | + "-Wno-unused-parameter", | |
43 | + "-Wno-gnu-designator", | |
44 | + ], | |
45 | + | |
46 | + srcs: [ | |
47 | + "power.c", | |
48 | + "uevent.c", | |
49 | + ], | |
50 | +} |
@@ -1,41 +0,0 @@ | ||
1 | -# Copyright 2006 The Android Open Source Project | |
2 | - | |
3 | -# Setting LOCAL_PATH will mess up all-subdir-makefiles, so do it beforehand. | |
4 | -legacy_modules := power uevent | |
5 | - | |
6 | -SAVE_MAKEFILES := $(call all-named-subdir-makefiles,$(legacy_modules)) | |
7 | -LEGACY_AUDIO_MAKEFILES := $(call all-named-subdir-makefiles,audio) | |
8 | - | |
9 | -LOCAL_PATH:= $(call my-dir) | |
10 | -include $(CLEAR_VARS) | |
11 | - | |
12 | -LOCAL_SHARED_LIBRARIES := libbase libcutils liblog | |
13 | -LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := libmedia | |
14 | - | |
15 | -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include | |
16 | -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include | |
17 | - | |
18 | -LOCAL_CFLAGS += -DQEMU_HARDWARE -Wno-unused-parameter -Wno-gnu-designator | |
19 | -QEMU_HARDWARE := true | |
20 | - | |
21 | -LOCAL_SHARED_LIBRARIES += libdl | |
22 | - | |
23 | -include $(SAVE_MAKEFILES) | |
24 | - | |
25 | -# TODO: Remove this line b/29915755 | |
26 | -ifndef BRILLO | |
27 | -LOCAL_WHOLE_STATIC_LIBRARIES := libwifi-hal-common | |
28 | -endif | |
29 | - | |
30 | -LOCAL_MODULE:= libhardware_legacy | |
31 | - | |
32 | -include $(BUILD_SHARED_LIBRARY) | |
33 | - | |
34 | -include $(CLEAR_VARS) | |
35 | -LOCAL_MODULE := libhardware_legacy_headers | |
36 | -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include | |
37 | -include $(BUILD_HEADER_LIBRARY) | |
38 | - | |
39 | -# legacy_audio builds it's own set of libraries that aren't linked into | |
40 | -# hardware_legacy | |
41 | -include $(LEGACY_AUDIO_MAKEFILES) |
@@ -0,0 +1,25 @@ | ||
1 | +// Copyright 2011 The Android Open Source Project | |
2 | + | |
3 | +//AUDIO_POLICY_TEST := true | |
4 | +//ENABLE_AUDIO_DUMP := true | |
5 | + | |
6 | +cc_library_static { | |
7 | + | |
8 | + srcs: [ | |
9 | + "AudioHardwareInterface.cpp", | |
10 | + "audio_hw_hal.cpp", | |
11 | + ], | |
12 | + | |
13 | + name: "libaudiohw_legacy", | |
14 | + static_libs: ["libmedia_helper"], | |
15 | + cflags: [ | |
16 | + "-Wno-unused-parameter", | |
17 | + "-Wno-gnu-designator", | |
18 | + ], | |
19 | + | |
20 | + header_libs: [ | |
21 | + "libbase_headers", | |
22 | + "libhardware_legacy_headers", | |
23 | + ], | |
24 | + export_header_lib_headers: ["libhardware_legacy_headers"], | |
25 | +} |
@@ -1,22 +0,0 @@ | ||
1 | -# Copyright 2011 The Android Open Source Project | |
2 | - | |
3 | -#AUDIO_POLICY_TEST := true | |
4 | -#ENABLE_AUDIO_DUMP := true | |
5 | - | |
6 | -LOCAL_PATH := $(call my-dir) | |
7 | -include $(CLEAR_VARS) | |
8 | - | |
9 | -LOCAL_SRC_FILES := \ | |
10 | - AudioHardwareInterface.cpp \ | |
11 | - audio_hw_hal.cpp | |
12 | - | |
13 | -LOCAL_MODULE := libaudiohw_legacy | |
14 | -LOCAL_SHARED_LIBRARIES := libmedia | |
15 | -LOCAL_STATIC_LIBRARIES := libmedia_helper | |
16 | -LOCAL_CFLAGS := -Wno-unused-parameter -Wno-gnu-designator | |
17 | -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include | |
18 | -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include | |
19 | - | |
20 | -include $(BUILD_STATIC_LIBRARY) | |
21 | - | |
22 | - |
@@ -1,3 +0,0 @@ | ||
1 | -# Copyright 2006 The Android Open Source Project | |
2 | - | |
3 | -LOCAL_SRC_FILES += power/power.c |
@@ -1,3 +0,0 @@ | ||
1 | -# Copyright 2008 The Android Open Source Project | |
2 | - | |
3 | -LOCAL_SRC_FILES += uevent/uevent.c |