mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
Use pkg-config for protobuf, it works also on FreeBSD.
Do not add sources/headers to OBJECT_FILES.
This commit is contained in:
10
SConstruct
10
SConstruct
@@ -49,6 +49,8 @@ else:
|
|||||||
|
|
||||||
# Use openssl
|
# Use openssl
|
||||||
env.ParseConfig('pkg-config --cflags --libs openssl')
|
env.ParseConfig('pkg-config --cflags --libs openssl')
|
||||||
|
# Use protobuf
|
||||||
|
env.ParseConfig('pkg-config --cflags --libs protobuf')
|
||||||
|
|
||||||
# The required version of boost is documented in the README file.
|
# The required version of boost is documented in the README file.
|
||||||
#
|
#
|
||||||
@@ -143,15 +145,9 @@ if not FreeBSD:
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
# Apparently, pkg-config --libs protobuf on bsd fails to provide this necessary include dir.
|
|
||||||
if FreeBSD:
|
|
||||||
env.Append(LINKFLAGS = ['-I/usr/local/include'])
|
|
||||||
env.Append(CXXFLAGS = ['-DOS_FREEBSD'])
|
|
||||||
|
|
||||||
env.Append(
|
env.Append(
|
||||||
LIBS = [
|
LIBS = [
|
||||||
'rt', # for clock_nanosleep in beast
|
'rt', # for clock_nanosleep in beast
|
||||||
'protobuf',
|
|
||||||
'z'
|
'z'
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
@@ -183,7 +179,7 @@ TAG_SRCS = copy.copy(COMPILED_FILES)
|
|||||||
# Derive the object files from the source files.
|
# Derive the object files from the source files.
|
||||||
OBJECT_FILES = []
|
OBJECT_FILES = []
|
||||||
|
|
||||||
OBJECT_FILES += PROTO_SRCS
|
OBJECT_FILES.append(PROTO_SRCS[0])
|
||||||
|
|
||||||
for file in COMPILED_FILES:
|
for file in COMPILED_FILES:
|
||||||
OBJECT_FILES.append('build/obj/' + file)
|
OBJECT_FILES.append('build/obj/' + file)
|
||||||
|
|||||||
Reference in New Issue
Block a user