diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-05-09 16:26:42 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-05-14 23:40:05 +0000 |
commit | 212e1bb7593e5e6ad1156e8a38be5aeb74715117 (patch) | |
tree | 947326f04280812da5efc955278493df6575f632 /ioshark | |
parent | a13ed3bcb1e1cc3c16cd4eabb568ecafc9af8118 (diff) | |
download | extras-212e1bb7593e5e6ad1156e8a38be5aeb74715117.tar.gz |
Convert ioshark to Soong
See build/soong/README.md for more information.
Some modules are no longer installed by default on eng/debug builds, but
I didn't see any automatic references to them. If they're commonly used
by users, they can be added into build/make with PRODUCT_PACKAGES_ENG /
PRODUCT_PACKAGES_DEBUG. Otherwise everyone's compiles get a little
smaller.
Some modules also moved from /system/xbin to /system/bin, as we've
deprecated xbin. I checked codesearch for references to the full paths
and couldn't find any.
Test: cd system/extras/ioshark; mma
Test: for the modules changing locations, check cs/ for references
Change-Id: I0e84e9d5adfef2cd7a7e717462c0364489c3d70d
Diffstat (limited to 'ioshark')
-rw-r--r-- | ioshark/Android.bp | 66 | ||||
-rw-r--r-- | ioshark/Android.mk | 48 |
2 files changed, 66 insertions, 48 deletions
diff --git a/ioshark/Android.bp b/ioshark/Android.bp new file mode 100644 index 00000000..0f9ba29b --- /dev/null +++ b/ioshark/Android.bp @@ -0,0 +1,66 @@ +// 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. + +cc_defaults { + name: "ioshark_defaults", + + cflags: [ + "-g", + "-O2", + "-Wall", + "-Werror", + ], + + target: { + darwin: { + enabled: false, + }, + host: { + cflags: [ + "-D_GNU_SOURCE", + ], + }, + }, +} + +cc_binary { + name: "ioshark_bench", + defaults: ["ioshark_defaults"], + srcs: [ + "ioshark_bench.c", + "ioshark_bench_subr.c", + "ioshark_bench_mmap.c", + ], +} + +cc_binary_host { + name: "compile_ioshark", + defaults: ["ioshark_defaults"], + srcs: [ + "compile_ioshark.c", + "compile_ioshark_subr.c", + ], +} + +cc_binary_host { + name: "dump_ioshark_filenames", + defaults: ["ioshark_defaults"], + srcs: ["dump_ioshark_filenames.c"], +} + +cc_binary_host { + name: "convert_format", + defaults: ["ioshark_defaults"], + srcs: ["convert_format.c"], +} diff --git a/ioshark/Android.mk b/ioshark/Android.mk deleted file mode 100644 index b15d64a0..00000000 --- a/ioshark/Android.mk +++ /dev/null @@ -1,48 +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_HOST_OS := linux -LOCAL_SRC_FILES := ioshark_bench.c ioshark_bench_subr.c ioshark_bench_mmap.c -LOCAL_CFLAGS := -g -O2 -Wall -Werror -LOCAL_MODULE := ioshark_bench -LOCAL_MODULE_TAGS := debug -LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) -include $(BUILD_EXECUTABLE) - -include $(CLEAR_VARS) -LOCAL_MODULE_HOST_OS := linux -LOCAL_SRC_FILES := compile_ioshark.c compile_ioshark_subr.c -LOCAL_CFLAGS := -g -O2 -Wall -Werror -D_GNU_SOURCE -LOCAL_MODULE := compile_ioshark -LOCAL_MODULE_TAGS := debug -include $(BUILD_HOST_EXECUTABLE) - -include $(CLEAR_VARS) -LOCAL_MODULE_HOST_OS := linux -LOCAL_SRC_FILES := dump_ioshark_filenames.c -LOCAL_CFLAGS := -g -O2 -Wall -Werror -D_GNU_SOURCE -LOCAL_MODULE := dump_ioshark_filenames -LOCAL_MODULE_TAGS := debug -include $(BUILD_HOST_EXECUTABLE) - -include $(CLEAR_VARS) -LOCAL_MODULE_HOST_OS := linux -LOCAL_SRC_FILES := convert_format.c -LOCAL_CFLAGS := -g -O2 -Wall -Werror -D_GNU_SOURCE -LOCAL_MODULE := convert_format -LOCAL_MODULE_TAGS := debug -include $(BUILD_HOST_EXECUTABLE) |