Android.mk revision 28188e1c4986d9e4985f0f4a8ce268743eb94631
1# Only use this on the device or emulator. 2ifeq ($(TARGET_ARCH),arm) 3 4LOCAL_PATH:= $(call my-dir) 5 6transforms_scalar_SRC_FILES := \ 7 ABCD.cpp \ 8 ADCE.cpp \ 9 BasicBlockPlacement.cpp \ 10 CodeGenPrepare.cpp \ 11 ConstantProp.cpp \ 12 DCE.cpp \ 13 DeadStoreElimination.cpp \ 14 GEPSplitter.cpp \ 15 GVN.cpp \ 16 IndVarSimplify.cpp \ 17 JumpThreading.cpp \ 18 LICM.cpp \ 19 LoopDeletion.cpp \ 20 LoopIndexSplit.cpp \ 21 LoopRotation.cpp \ 22 LoopStrengthReduce.cpp \ 23 LoopUnrollPass.cpp \ 24 LoopUnswitch.cpp \ 25 MemCpyOptimizer.cpp \ 26 Reassociate.cpp \ 27 Reg2Mem.cpp \ 28 SCCP.cpp \ 29 Scalar.cpp \ 30 ScalarReplAggregates.cpp \ 31 SimplifyCFGPass.cpp \ 32 SimplifyHalfPowrLibCalls.cpp \ 33 SimplifyLibCalls.cpp \ 34 TailDuplication.cpp \ 35 TailRecursionElimination.cpp 36 37# For the host 38# ===================================================== 39include $(CLEAR_VARS) 40 41LOCAL_SRC_FILES := $(transforms_scalar_SRC_FILES) 42LOCAL_MODULE:= libLLVMScalarOpts 43 44include $(LLVM_HOST_BUILD_MK) 45include $(LLVM_GEN_INTRINSICS_MK) 46include $(BUILD_HOST_STATIC_LIBRARY) 47 48# For the device 49# ===================================================== 50include $(CLEAR_VARS) 51 52LOCAL_SRC_FILES := $(transforms_scalar_SRC_FILES) 53LOCAL_MODULE:= libLLVMScalarOpts 54 55include $(LLVM_DEVICE_BUILD_MK) 56include $(LLVM_GEN_INTRINSICS_MK) 57include $(BUILD_STATIC_LIBRARY) 58 59endif 60