blob: b84bc511b2ec971ce75b97950ab664b9d88d37d2 [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
# For the host only
# =====================================================
include $(CLEAR_VARS)
include $(CLEAR_TBLGEN_VARS)
LOCAL_MODULE := libclangTidy
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
TBLGEN_TABLES += \
AttrList.inc \
AttrVisitor.inc \
Attrs.inc \
Checkers.inc \
CommentCommandList.inc \
CommentNodes.inc \
DeclNodes.inc \
DiagnosticASTKinds.inc \
DiagnosticCommonKinds.inc \
DiagnosticFrontendKinds.inc \
StmtNodes.inc \
LOCAL_SRC_FILES := \
ClangTidy.cpp \
ClangTidyModule.cpp \
ClangTidyDiagnosticConsumer.cpp \
ClangTidyOptions.cpp \
LOCAL_STATIC_LIBRARIES := \
libclangAST \
libclangASTMatchers \
libclangBasic \
libclangFormat \
libclangFrontend \
libclangLex \
libclangRewrite \
libclangSema \
libclangStaticAnalyzerCore \
libclangStaticAnalyzerFrontend \
libclangTooling \
libclangToolingCore \
LOCAL_LDLIBS += -lm
LOCAL_LDLIBS_windows := -limagehlp -lversion
LOCAL_LDLIBS_darwin := -lpthread -ldl
LOCAL_LDLIBS_linux := -lpthread -ldl
# remove when we can use PIE binaries in all places again
LOCAL_NO_FPIE := true
include $(CLANG_HOST_BUILD_MK)
include $(CLANG_TBLGEN_RULES_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
boost \
cert \
cppcoreguidelines \
google \
hicpp \
llvm \
misc \
mpi \
modernize \
performance \
readability \
tool \
utils \
))
include $(subdirs)