mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
.
This commit is contained in:
83
SConstruct
83
SConstruct
@@ -89,86 +89,3 @@ tags = env.CTags('obj/tags', NEWCOIN_SRCS)
|
|||||||
|
|
||||||
Default(newcoind, tags)
|
Default(newcoind, tags)
|
||||||
|
|
||||||
#####################
|
|
||||||
|
|
||||||
#
|
|
||||||
# Newcoin - SConstruct
|
|
||||||
#
|
|
||||||
|
|
||||||
import glob
|
|
||||||
|
|
||||||
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')
|
|
||||||
|
|
||||||
env.Append(LIBS = [
|
|
||||||
'boost_date_time',
|
|
||||||
'boost_filesystem',
|
|
||||||
'boost_program_options',
|
|
||||||
'boost_regex',
|
|
||||||
'boost_system',
|
|
||||||
'boost_thread',
|
|
||||||
'protobuf',
|
|
||||||
'dl', # dynamic linking
|
|
||||||
'z'
|
|
||||||
])
|
|
||||||
|
|
||||||
DEBUGFLAGS = ['-g', '-DDEBUG']
|
|
||||||
BOOSTFLAGS = ['-DBOOST_TEST_DYN_LINK', '-DBOOST_FILESYSTEM_NO_DEPRECATED']
|
|
||||||
|
|
||||||
#env.Append(LINKFLAGS = ['-static', '-pthread','-L/home/ubuntu/boost_1_49_0/stage/lib'])
|
|
||||||
env.Append(LINKFLAGS = ['-rdynamic', '-pthread','-L/home/ubuntu/boost_1_49_0/stage/lib'])
|
|
||||||
env.Append(CCFLAGS = ['-I/home/ubuntu/boost_1_49_0','-pthread', '-Wall', '-Wno-sign-compare', '-Wno-char-subscripts', '-DSQLITE_THREADSAFE'])
|
|
||||||
env.Append(CXXFLAGS = ['-O0', '-pthread', '-Wno-invalid-offsetof', '-Wformat']+BOOSTFLAGS+DEBU GFLAGS)
|
|
||||||
|
|
||||||
DB_SRCS = glob.glob('database/*.c') + glob.glob('database/*.cpp')
|
|
||||||
JSON_SRCS = glob.glob('json/*.cpp')
|
|
||||||
NEWCOIN_SRCS = glob.glob('src/*.cpp')
|
|
||||||
PROTO_SRCS = env.Protoc([], 'src/newcoin.proto', PROTOCOUTDIR='obj', PROTOCPYTHONOUTDIR=N one)
|
|
||||||
|
|
||||||
env.Clean(PROTO_SRCS, 'site_scons/site_tools/protoc.pyc')
|
|
||||||
|
|
||||||
# Remove unused source files.
|
|
||||||
UNUSED_SRCS = ['src/HttpReply.cpp', 'src/ValidationCollection.cpp']
|
|
||||||
|
|
||||||
for file in UNUSED_SRCS:
|
|
||||||
NEWCOIN_SRCS.remove(file)
|
|
||||||
|
|
||||||
NEWCOIN_SRCS += DB_SRCS + JSON_SRCS
|
|
||||||
|
|
||||||
# Derive the object files from the source files.
|
|
||||||
NEWCOIN_OBJS = []
|
|
||||||
|
|
||||||
for file in NEWCOIN_SRCS:
|
|
||||||
NEWCOIN_OBJS.append('obj/' + file)
|
|
||||||
|
|
||||||
NEWCOIN_OBJS += PROTO_SRCS
|
|
||||||
|
|
||||||
newcoind = env.Program('newcoind', NEWCOIN_OBJS)
|
|
||||||
|
|
||||||
#tags = env.CTags('obj/tags', NEWCOIN_SRCS)
|
|
||||||
|
|
||||||
Default(newcoind)
|
|
||||||
|
|
||||||
|
|||||||
@@ -251,6 +251,7 @@
|
|||||||
</None>
|
</None>
|
||||||
<None Include="todo.txt" />
|
<None Include="todo.txt" />
|
||||||
<None Include="unl.xml" />
|
<None Include="unl.xml" />
|
||||||
|
<None Include="validators.txt" />
|
||||||
<None Include="wallet.xml" />
|
<None Include="wallet.xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
|||||||
@@ -485,6 +485,7 @@
|
|||||||
</None>
|
</None>
|
||||||
<None Include="SConstruct" />
|
<None Include="SConstruct" />
|
||||||
<None Include="newcoind.cfg" />
|
<None Include="newcoind.cfg" />
|
||||||
|
<None Include="validators.txt" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<CustomBuild Include="src\newcoin.proto" />
|
<CustomBuild Include="src\newcoin.proto" />
|
||||||
|
|||||||
Reference in New Issue
Block a user