summaryrefslogtreecommitdiff
path: root/simpleperf/Android.mk
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-04-14 16:35:00 -0700
committerYabin Cui <yabinc@google.com>2016-04-14 16:35:00 -0700
commit33754211ef441c29a33d58b946b4240521e8f46f (patch)
tree4d3578d916e4b0d42c75711e9692858651661170 /simpleperf/Android.mk
parent3952d8b5c84c1efcd1136a6d2dca0022cfefcf3a (diff)
downloadextras-33754211ef441c29a33d58b946b4240521e8f46f.tar.gz
simpleperf: always build static binary on device.
Bug: 28199918 Change-Id: I7008e6e7c0de60521bc7ae5f1b7ee4fd2d57cf04
Diffstat (limited to 'simpleperf/Android.mk')
-rw-r--r--simpleperf/Android.mk46
1 files changed, 5 insertions, 41 deletions
diff --git a/simpleperf/Android.mk b/simpleperf/Android.mk
index ac5ceda8..d5d38aa1 100644
--- a/simpleperf/Android.mk
+++ b/simpleperf/Android.mk
@@ -30,22 +30,8 @@ simpleperf_cppflags_host_windows := -I $(LOCAL_PATH)/nonlinux_support/include
LLVM_ROOT_PATH := external/llvm
include $(LLVM_ROOT_PATH)/llvm.mk
-simpleperf_shared_libraries_target := \
- libbacktrace \
- libunwind \
- libbase \
- liblog \
- libutils \
- libLLVM \
-
simpleperf_static_libraries_target := \
libbacktrace_offline \
- liblzma \
- libziparchive \
- libz \
-
-static_simpleperf_static_libraries_target := \
- libbacktrace_offline \
libbacktrace \
libunwind \
libziparchive \
@@ -134,21 +120,6 @@ LOCAL_SRC_FILES := \
$(libsimpleperf_src_files_linux) \
LOCAL_STATIC_LIBRARIES := $(simpleperf_static_libraries_target)
-LOCAL_SHARED_LIBRARIES := $(simpleperf_shared_libraries_target)
-LOCAL_MULTILIB := both
-include $(LLVM_DEVICE_BUILD_MK)
-include $(BUILD_STATIC_LIBRARY)
-
-# libsimpleperf_static target
-include $(CLEAR_VARS)
-LOCAL_CLANG := true
-LOCAL_MODULE := libsimpleperf_static
-LOCAL_CPPFLAGS := $(simpleperf_cppflags_target)
-LOCAL_SRC_FILES := \
- $(libsimpleperf_src_files) \
- $(libsimpleperf_src_files_linux) \
-
-LOCAL_STATIC_LIBRARIES := $(static_simpleperf_static_libraries_target)
LOCAL_MULTILIB := both
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_STATIC_LIBRARY)
@@ -192,18 +163,6 @@ LOCAL_MULTILIB := both
LOCAL_MODULE_STEM_32 := simpleperf32
LOCAL_MODULE_STEM_64 := simpleperf
endif
-include $(BUILD_EXECUTABLE)
-
-# simpleperf_static target
-include $(CLEAR_VARS)
-LOCAL_CLANG := true
-LOCAL_MODULE := simpleperf_static
-LOCAL_CPPFLAGS := $(simpleperf_cppflags_target)
-LOCAL_SRC_FILES := main.cpp
-LOCAL_STATIC_LIBRARIES := libsimpleperf_static $(static_simpleperf_static_libraries_target)
-LOCAL_MULTILIB := both
-LOCAL_MODULE_STEM_32 := simpleperf_static32
-LOCAL_MODULE_STEM_64 := simpleperf_static64
LOCAL_FORCE_STATIC_EXECUTABLE := true
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_EXECUTABLE)
@@ -263,6 +222,8 @@ LOCAL_POST_LINK_CMD = \
rm -f $$TMP_FILE
LOCAL_MULTILIB := first
+LOCAL_FORCE_STATIC_EXECUTABLE := true
+include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_NATIVE_TEST)
# simpleperf_unit_test host
@@ -297,6 +258,8 @@ LOCAL_SRC_FILES := $(simpleperf_cpu_hotplug_test_src_files)
LOCAL_STATIC_LIBRARIES := libsimpleperf $(simpleperf_static_libraries_target)
LOCAL_SHARED_LIBRARIES := $(simpleperf_shared_libraries_target)
LOCAL_MULTILIB := first
+LOCAL_FORCE_STATIC_EXECUTABLE := true
+include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_NATIVE_TEST)
# simpleperf_cpu_hotplug_test linux host
@@ -332,6 +295,7 @@ LOCAL_SRC_FILES := $(libsimpleperf_cts_test_src_files)
LOCAL_STATIC_LIBRARIES := $(simpleperf_static_libraries_target)
LOCAL_SHARED_LIBRARIES := $(simpleperf_shared_libraries_target)
LOCAL_MULTILIB := both
+LOCAL_FORCE_STATIC_EXECUTABLE := true
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_STATIC_TEST_LIBRARY)