Merge "Replace make file with soong"

This commit is contained in:
TreeHugger Robot
2017-04-11 22:15:39 +00:00
committed by Android (Google) Code Review
3 changed files with 33 additions and 35 deletions

View File

@@ -1,4 +1,5 @@
subdirs = [
"vr",
"vibrator",
"wifi_offload",
]

32
wifi_offload/Android.bp Normal file
View File

@@ -0,0 +1,32 @@
//
// Copyright (C) 2017 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.
cc_binary {
name: "android.hardware.wifi.offload@1.0-service",
relative_install_path: "hw",
init_rc: ["android.hardware.wifi.offload@1.0-service.rc"],
srcs: ["Offload.cpp", "service.cpp"],
cflags: ["-Wall", "-Wextra"],
shared_libs: [
"libbase",
"libhidlbase",
"libhidltransport",
"liblog",
"libutils",
"android.hardware.wifi.offload@1.0",
],
proprietary: true,
}

View File

@@ -1,35 +0,0 @@
# Copyright (C) 2016 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.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := android.hardware.wifi.offload@1.0-service
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_PROPRIETARY_MODULE := true
LOCAL_CPPFLAGS := -Wall -Werror -Wextra
LOCAL_SRC_FILES := \
Offload.cpp \
service.cpp
LOCAL_SHARED_LIBRARIES := \
android.hardware.wifi.offload@1.0 \
libbase \
libcutils \
libhidlbase \
libhidltransport \
liblog \
libutils
LOCAL_INIT_RC := android.hardware.wifi.offload@1.0-service.rc
include $(BUILD_EXECUTABLE)