mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Add support for ctags to scons.
This commit is contained in:
26
SConstruct
26
SConstruct
@@ -4,14 +4,29 @@
|
||||
|
||||
import glob
|
||||
|
||||
# Put objects files in their own directory.
|
||||
for dir in ['src', 'database', 'json', 'util']:
|
||||
VariantDir('obj/'+dir, dir, duplicate=0)
|
||||
CTAGS = '/usr/bin/exuberant-ctags'
|
||||
|
||||
#
|
||||
# scons tools
|
||||
#
|
||||
|
||||
env = Environment(
|
||||
tools = ['default', 'protoc']
|
||||
)
|
||||
|
||||
#
|
||||
# Builder for CTags
|
||||
#
|
||||
ctags = Builder(action = '$CTAGS $CTAGSOPTIONS -f $TARGET $SOURCES')
|
||||
env.Append(BUILDERS = { 'CTags' : ctags })
|
||||
env.Replace(CTAGS = CTAGS, CTAGSOPTIONS = '--tag-relative')
|
||||
|
||||
#
|
||||
# Put objects files in their own directory.
|
||||
#
|
||||
for dir in ['src', 'database', 'json', 'util']:
|
||||
VariantDir('obj/'+dir, dir, duplicate=0)
|
||||
|
||||
# Use openssl
|
||||
env.ParseConfig('pkg-config --cflags --libs openssl')
|
||||
|
||||
@@ -55,5 +70,8 @@ for file in NEWCOIN_SRCS:
|
||||
|
||||
NEWCOIN_OBJS += PROTO_SRCS
|
||||
|
||||
env.Program('newcoind', NEWCOIN_OBJS)
|
||||
newcoind = env.Program('newcoind', NEWCOIN_OBJS)
|
||||
|
||||
tags = env.CTags('obj/tags', NEWCOIN_SRCS)
|
||||
|
||||
Default(newcoind, tags)
|
||||
|
||||
Reference in New Issue
Block a user