1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-31 12:13:10 +00:00

Add clang-format under WITH_CLANG_EXTRAS.

Reviewed by:	dim
Approved by:	re (gjb)
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D6856
This commit is contained in:
Bryan Drewery 2016-06-17 16:46:58 +00:00
parent da64d1122d
commit bc2abcfdef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301993
10 changed files with 130 additions and 1 deletions

View File

@ -90,7 +90,9 @@ SUBDIR= libclanganalysis \
libllvmx86utils
.if ${MK_CLANG_EXTRAS} != "no"
SUBDIR+=libllvmdebuginfodwarf \
SUBDIR+=libclangformat \
libclangtoolingcore \
libllvmdebuginfodwarf \
libllvmdebuginfopdb \
libllvmlibdriver \
libllvmlto \

View File

@ -0,0 +1,20 @@
# $FreeBSD$
.include <bsd.own.mk>
LIB= clangformat
SRCDIR= tools/clang/lib/Format
SRCS= BreakableToken.cpp \
ContinuationIndenter.cpp \
Format.cpp \
FormatToken.cpp \
TokenAnnotator.cpp \
UnwrappedLineFormatter.cpp \
UnwrappedLineParser.cpp \
WhitespaceManager.cpp
TGHDRS= DiagnosticCommonKinds
.include "../clang.lib.mk"

View File

@ -0,0 +1,15 @@
# $FreeBSD$
# Autogenerated - do NOT edit!
DIRDEPS = \
include \
include/xlocale \
lib/libc++ \
lib/msun \
.include <dirdeps.mk>
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
# local dependencies - needed for -jN in clean tree
.endif

View File

@ -0,0 +1,19 @@
# $FreeBSD$
.include <bsd.own.mk>
LIB= clangtoolingcore
SRCDIR= tools/clang/lib/Tooling/Core
CFLAGS+= -I${LLVM_SRCS}/tools
SRCS= Lookup.cpp \
Replacement.cpp
TGHDRS= AttrList \
Attrs \
CommentCommandList \
DeclNodes \
DiagnosticCommonKinds \
StmtNodes
.include "../clang.lib.mk"

View File

@ -0,0 +1,15 @@
# $FreeBSD$
# Autogenerated - do NOT edit!
DIRDEPS = \
include \
include/xlocale \
lib/libc++ \
lib/msun \
.include <dirdeps.mk>
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
# local dependencies - needed for -jN in clean tree
.endif

View File

@ -21,6 +21,7 @@ DIRDEPS+= \
.if ${MK_CLANG_EXTRAS} == "yes"
DIRDEPS+= \
usr.bin/clang/bugpoint \
usr.bin/clang/clang-format \
usr.bin/clang/llc \
usr.bin/clang/lli \
usr.bin/clang/llvm-ar \

View File

@ -1237,6 +1237,7 @@ OLD_FILES+=usr/share/man/man1/llvm-tblgen.1.gz
.if ${MK_CLANG_EXTRAS} == no
OLD_FILES+=usr/bin/bugpoint
OLD_FILES+=usr/bin/clang-format
OLD_FILES+=usr/bin/llc
OLD_FILES+=usr/bin/lli
OLD_FILES+=usr/bin/llvm-ar

View File

@ -7,6 +7,7 @@ SUBDIR= clang clang-tblgen llvm-tblgen
.if !defined(TOOLS_PREFIX)
.if ${MK_CLANG_EXTRAS} != "no"
SUBDIR+=bugpoint \
clang-format \
llc \
lli \
llvm-ar \

View File

@ -0,0 +1,23 @@
# $FreeBSD$
MAN=
.include <bsd.own.mk>
PROG_CXX=clang-format
SRCDIR= tools/clang/tools/clang-format
SRCS= ClangFormat.cpp
LIBDEPS=clangrewrite \
clanglex \
clangformat \
clangbasic \
clangast \
clangtoolingcore \
llvmmc \
llvmcore \
llvmsupport \
TGHDRS= DiagnosticCommonKinds
.include "../clang.prog.mk"

View File

@ -0,0 +1,32 @@
# $FreeBSD$
# Autogenerated - do NOT edit!
DIRDEPS = \
gnu/lib/csu \
gnu/lib/libgcc \
include \
include/xlocale \
lib/${CSU_DIR} \
lib/clang/libclangast \
lib/clang/libclangbasic \
lib/clang/libclangformat \
lib/clang/libclanglex \
lib/clang/libclangrewrite \
lib/clang/libclangtoolingcore \
lib/clang/libllvmcore \
lib/clang/libllvmmc \
lib/clang/libllvmsupport \
lib/libc \
lib/libc++ \
lib/libcompiler_rt \
lib/libthr \
lib/msun \
lib/ncurses/ncursesw \
usr.bin/clang/clang-tblgen.host \
.include <dirdeps.mk>
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
# local dependencies - needed for -jN in clean tree
.endif