diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-05-09 16:26:42 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-05-09 16:39:41 -0700 |
commit | 9f022b4b5d6b7dde25290e793eb8b5c5239659af (patch) | |
tree | c9d82f2cc68caf511e8c1e47b3963e709173d818 /mmap-perf | |
parent | dc0191161cb4557535e89d45c8cfdd2305dcef4e (diff) | |
download | extras-9f022b4b5d6b7dde25290e793eb8b5c5239659af.tar.gz |
Convert more of system/extras 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; mma
Test: for the modules changing locations, check cs/ for references
Change-Id: I4ffd99d3dcf50e4d5cb2197824abc11973214133
Diffstat (limited to 'mmap-perf')
-rw-r--r-- | mmap-perf/Android.bp | 38 | ||||
-rw-r--r-- | mmap-perf/Android.mk | 30 |
2 files changed, 38 insertions, 30 deletions
diff --git a/mmap-perf/Android.bp b/mmap-perf/Android.bp new file mode 100644 index 00000000..4841bee1 --- /dev/null +++ b/mmap-perf/Android.bp @@ -0,0 +1,38 @@ +// +// Copyright (C) 2014 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_benchmark { + name: "mmapPerf", + + srcs: ["mmapPerf.cpp"], + test_suites: ["device-tests"], + multilib: { + lib64: { + suffix: "64", + }, + }, + cflags: [ + "-g", + "-Wall", + "-Werror", + "-Wno-missing-field-initializers", + "-Wno-sign-compare", + "-O3", + ], + static_executable: true, + stl: "libc++_static", + static_libs: ["libc"], +} diff --git a/mmap-perf/Android.mk b/mmap-perf/Android.mk deleted file mode 100644 index 96de5ea5..00000000 --- a/mmap-perf/Android.mk +++ /dev/null @@ -1,30 +0,0 @@ -# -# Copyright (C) 2014 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_SRC_FILES := mmapPerf.cpp -LOCAL_MODULE := mmapPerf -LOCAL_COMPATIBILITY_SUITE := device-tests -LOCAL_MULTILIB := both -LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE) -LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 -LOCAL_CFLAGS += -g -Wall -Werror -Wno-missing-field-initializers -Wno-sign-compare -O3 -LOCAL_FORCE_STATIC_EXECUTABLE := true -LOCAL_CXX_STL := libc++_static -LOCAL_STATIC_LIBRARIES := libc -include $(BUILD_NATIVE_BENCHMARK) |