Merge "logcat: transition to Android.bp"
This commit is contained in:
commit
ad7f1bc0b3
|
@ -0,0 +1,71 @@
|
|||
//
|
||||
// Copyright (C) 2006-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_defaults {
|
||||
name: "logcat_defaults",
|
||||
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Werror",
|
||||
],
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
"libcutils",
|
||||
"liblog",
|
||||
"libpcrecpp",
|
||||
],
|
||||
logtags: ["event.logtags"],
|
||||
}
|
||||
|
||||
cc_library {
|
||||
name: "liblogcat",
|
||||
|
||||
defaults: ["logcat_defaults"],
|
||||
srcs: [
|
||||
"logcat.cpp",
|
||||
"getopt_long.cpp",
|
||||
"logcat_system.cpp",
|
||||
],
|
||||
export_include_dirs: ["include"],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "logcat",
|
||||
|
||||
defaults: ["logcat_defaults"],
|
||||
shared_libs: ["liblogcat"],
|
||||
srcs: [
|
||||
"logcat_main.cpp",
|
||||
],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "logcatd",
|
||||
|
||||
defaults: ["logcat_defaults"],
|
||||
shared_libs: ["liblogcat"],
|
||||
srcs: [
|
||||
"logcatd_main.cpp",
|
||||
],
|
||||
}
|
||||
|
||||
cc_prebuilt_binary {
|
||||
name: "logpersist.start",
|
||||
srcs: ["logpersist"],
|
||||
init_rc: ["logcatd.rc"],
|
||||
symlinks: ["logpersist.stop", "logpersist.cat"],
|
||||
}
|
|
@ -2,48 +2,4 @@
|
|||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
logcatLibs := liblog libbase libcutils libpcrecpp
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := logcat
|
||||
LOCAL_SRC_FILES := logcat_main.cpp event.logtags
|
||||
LOCAL_SHARED_LIBRARIES := liblogcat $(logcatLibs)
|
||||
LOCAL_CFLAGS := -Werror
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := logcatd
|
||||
LOCAL_MODULE_TAGS := debug
|
||||
LOCAL_SRC_FILES := logcatd_main.cpp event.logtags
|
||||
LOCAL_SHARED_LIBRARIES := liblogcat $(logcatLibs)
|
||||
LOCAL_CFLAGS := -Werror
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := liblogcat
|
||||
LOCAL_SRC_FILES := logcat.cpp getopt_long.cpp logcat_system.cpp
|
||||
LOCAL_SHARED_LIBRARIES := $(logcatLibs)
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
||||
LOCAL_CFLAGS := -Werror
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := logpersist.start
|
||||
LOCAL_MODULE_TAGS := debug
|
||||
LOCAL_MODULE_CLASS := EXECUTABLES
|
||||
LOCAL_INIT_RC := logcatd.rc
|
||||
LOCAL_MODULE_PATH := $(bin_dir)
|
||||
LOCAL_SRC_FILES := logpersist
|
||||
ALL_TOOLS := logpersist.start logpersist.stop logpersist.cat
|
||||
LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(filter-out $(LOCAL_MODULE),$(ALL_TOOLS)),ln -sf $(LOCAL_MODULE) $(TARGET_OUT)/bin/$(t);)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(call first-makefiles-under,$(LOCAL_PATH))
|
||||
|
|
Loading…
Reference in New Issue