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:
parent
da64d1122d
commit
bc2abcfdef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301993
@ -90,7 +90,9 @@ SUBDIR= libclanganalysis \
|
||||
libllvmx86utils
|
||||
|
||||
.if ${MK_CLANG_EXTRAS} != "no"
|
||||
SUBDIR+=libllvmdebuginfodwarf \
|
||||
SUBDIR+=libclangformat \
|
||||
libclangtoolingcore \
|
||||
libllvmdebuginfodwarf \
|
||||
libllvmdebuginfopdb \
|
||||
libllvmlibdriver \
|
||||
libllvmlto \
|
||||
|
20
lib/clang/libclangformat/Makefile
Normal file
20
lib/clang/libclangformat/Makefile
Normal 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"
|
15
lib/clang/libclangformat/Makefile.depend
Normal file
15
lib/clang/libclangformat/Makefile.depend
Normal 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
|
19
lib/clang/libclangtoolingcore/Makefile
Normal file
19
lib/clang/libclangtoolingcore/Makefile
Normal 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"
|
15
lib/clang/libclangtoolingcore/Makefile.depend
Normal file
15
lib/clang/libclangtoolingcore/Makefile.depend
Normal 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
|
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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 \
|
||||
|
23
usr.bin/clang/clang-format/Makefile
Normal file
23
usr.bin/clang/clang-format/Makefile
Normal 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"
|
32
usr.bin/clang/clang-format/Makefile.depend
Normal file
32
usr.bin/clang/clang-format/Makefile.depend
Normal 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
|
Loading…
Reference in New Issue
Block a user