2019-03-05 21:05:34 +00:00
|
|
|
# Copyright (c) 2014-2019, The Monero Project
|
2014-10-21 15:13:59 +00:00
|
|
|
#
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without modification, are
|
|
|
|
# permitted provided that the following conditions are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
|
|
|
# conditions and the following disclaimer.
|
|
|
|
#
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
|
|
|
# of conditions and the following disclaimer in the documentation and/or other
|
|
|
|
# materials provided with the distribution.
|
|
|
|
#
|
|
|
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be
|
|
|
|
# used to endorse or promote products derived from this software without specific
|
|
|
|
# prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
|
|
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
|
|
# THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
|
|
|
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
2017-11-29 19:31:38 +00:00
|
|
|
set(rpc_base_sources
|
rpc: fix linking error of 6097472a, get_output_distribution
Undefined symbols for architecture x86_64:
"cryptonote::core::get_output_distribution(unsigned long long, unsigned long long, unsigned long long, unsigned long long&, std::__1::vector<unsigned long long, std::__1::allocator<unsigned long long> >&, unsigned long long&) const", referenced from:
cryptonote::rpc::RpcHandler::get_output_distribution(cryptonote::core&, unsigned long long, unsigned long long, unsigned long long, bool) in rpc_handler.cpp.o
2018-11-04 21:17:04 +00:00
|
|
|
rpc_args.cpp)
|
2017-11-29 19:31:38 +00:00
|
|
|
|
2014-10-21 15:13:59 +00:00
|
|
|
set(rpc_sources
|
2017-02-05 22:48:03 +00:00
|
|
|
core_rpc_server.cpp
|
rpc: fix linking error of 6097472a, get_output_distribution
Undefined symbols for architecture x86_64:
"cryptonote::core::get_output_distribution(unsigned long long, unsigned long long, unsigned long long, unsigned long long&, std::__1::vector<unsigned long long, std::__1::allocator<unsigned long long> >&, unsigned long long&) const", referenced from:
cryptonote::rpc::RpcHandler::get_output_distribution(cryptonote::core&, unsigned long long, unsigned long long, unsigned long long, bool) in rpc_handler.cpp.o
2018-11-04 21:17:04 +00:00
|
|
|
rpc_handler.cpp
|
2017-11-29 22:53:58 +00:00
|
|
|
instanciations)
|
2014-10-21 15:13:59 +00:00
|
|
|
|
2017-09-05 16:20:27 +00:00
|
|
|
set(daemon_messages_sources
|
|
|
|
message.cpp
|
|
|
|
daemon_messages.cpp)
|
|
|
|
|
|
|
|
set(daemon_rpc_server_sources
|
|
|
|
daemon_handler.cpp
|
|
|
|
zmq_server.cpp)
|
|
|
|
|
|
|
|
|
2017-11-29 19:31:38 +00:00
|
|
|
set(rpc_base_headers
|
rpc: fix linking error of 6097472a, get_output_distribution
Undefined symbols for architecture x86_64:
"cryptonote::core::get_output_distribution(unsigned long long, unsigned long long, unsigned long long, unsigned long long&, std::__1::vector<unsigned long long, std::__1::allocator<unsigned long long> >&, unsigned long long&) const", referenced from:
cryptonote::rpc::RpcHandler::get_output_distribution(cryptonote::core&, unsigned long long, unsigned long long, unsigned long long, bool) in rpc_handler.cpp.o
2018-11-04 21:17:04 +00:00
|
|
|
rpc_args.h)
|
2014-10-21 16:38:00 +00:00
|
|
|
|
rpc: fix linking error of 6097472a, get_output_distribution
Undefined symbols for architecture x86_64:
"cryptonote::core::get_output_distribution(unsigned long long, unsigned long long, unsigned long long, unsigned long long&, std::__1::vector<unsigned long long, std::__1::allocator<unsigned long long> >&, unsigned long long&) const", referenced from:
cryptonote::rpc::RpcHandler::get_output_distribution(cryptonote::core&, unsigned long long, unsigned long long, unsigned long long, bool) in rpc_handler.cpp.o
2018-11-04 21:17:04 +00:00
|
|
|
set(rpc_headers
|
|
|
|
rpc_handler.cpp)
|
2017-11-29 19:31:38 +00:00
|
|
|
|
2017-09-05 16:20:27 +00:00
|
|
|
set(daemon_rpc_server_headers)
|
|
|
|
|
|
|
|
|
|
|
|
set(rpc_daemon_private_headers
|
2014-10-21 15:13:59 +00:00
|
|
|
core_rpc_server.h
|
|
|
|
core_rpc_server_commands_defs.h
|
|
|
|
core_rpc_server_error_codes.h)
|
|
|
|
|
2017-09-05 16:20:27 +00:00
|
|
|
set(daemon_messages_private_headers
|
|
|
|
message.h
|
|
|
|
daemon_messages.h)
|
|
|
|
|
|
|
|
set(daemon_rpc_server_private_headers
|
|
|
|
message.h
|
|
|
|
daemon_messages.h
|
|
|
|
daemon_handler.h
|
|
|
|
zmq_server.h)
|
|
|
|
|
|
|
|
|
2016-09-26 14:42:29 +00:00
|
|
|
monero_private_headers(rpc
|
2014-10-21 16:38:00 +00:00
|
|
|
${rpc_private_headers})
|
2017-09-05 16:20:27 +00:00
|
|
|
|
|
|
|
monero_private_headers(daemon_rpc_server
|
|
|
|
${daemon_rpc_server_private_headers})
|
|
|
|
|
|
|
|
|
2017-11-29 19:31:38 +00:00
|
|
|
monero_add_library(rpc_base
|
|
|
|
${rpc_base_sources}
|
|
|
|
${rpc_base_headers}
|
|
|
|
${rpc_base_private_headers})
|
|
|
|
|
2016-09-26 14:42:29 +00:00
|
|
|
monero_add_library(rpc
|
2014-10-21 15:13:59 +00:00
|
|
|
${rpc_sources}
|
2014-10-21 16:38:00 +00:00
|
|
|
${rpc_headers}
|
|
|
|
${rpc_private_headers})
|
2017-09-05 16:20:27 +00:00
|
|
|
|
|
|
|
monero_add_library(daemon_messages
|
|
|
|
${daemon_messages_sources}
|
|
|
|
${daemon_messages_headers}
|
|
|
|
${daemon_messages_private_headers})
|
|
|
|
|
|
|
|
monero_add_library(daemon_rpc_server
|
|
|
|
${daemon_rpc_server_sources}
|
|
|
|
${daemon_rpc_server_headers}
|
|
|
|
${daemon_rpc_server_private_headers})
|
|
|
|
|
|
|
|
|
2017-11-29 19:31:38 +00:00
|
|
|
target_link_libraries(rpc_base
|
|
|
|
PUBLIC
|
|
|
|
common
|
|
|
|
epee
|
|
|
|
${Boost_REGEX_LIBRARY}
|
|
|
|
${Boost_THREAD_LIBRARY}
|
2017-12-21 15:22:25 +00:00
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
2017-11-29 19:31:38 +00:00
|
|
|
PRIVATE
|
|
|
|
${EXTRA_LIBRARIES})
|
|
|
|
|
2014-10-21 15:13:59 +00:00
|
|
|
target_link_libraries(rpc
|
2016-09-17 17:59:29 +00:00
|
|
|
PUBLIC
|
2017-11-29 19:31:38 +00:00
|
|
|
rpc_base
|
2017-02-05 22:48:03 +00:00
|
|
|
common
|
2014-10-21 15:13:59 +00:00
|
|
|
cryptonote_core
|
2015-04-01 17:00:45 +00:00
|
|
|
cryptonote_protocol
|
2018-12-16 17:57:44 +00:00
|
|
|
net
|
2018-11-20 18:18:08 +00:00
|
|
|
version
|
2017-01-26 15:07:23 +00:00
|
|
|
${Boost_REGEX_LIBRARY}
|
2014-10-21 15:13:59 +00:00
|
|
|
${Boost_THREAD_LIBRARY}
|
2016-09-17 17:59:29 +00:00
|
|
|
PRIVATE
|
2014-10-21 15:13:59 +00:00
|
|
|
${EXTRA_LIBRARIES})
|
2017-09-05 16:20:27 +00:00
|
|
|
|
|
|
|
target_link_libraries(daemon_messages
|
|
|
|
LINK_PRIVATE
|
|
|
|
cryptonote_core
|
|
|
|
cryptonote_protocol
|
2018-11-20 18:18:08 +00:00
|
|
|
version
|
2017-09-05 16:20:27 +00:00
|
|
|
serialization
|
|
|
|
${EXTRA_LIBRARIES})
|
|
|
|
|
|
|
|
target_link_libraries(daemon_rpc_server
|
|
|
|
LINK_PRIVATE
|
2017-12-21 15:22:25 +00:00
|
|
|
rpc
|
2017-09-05 16:20:27 +00:00
|
|
|
cryptonote_core
|
|
|
|
cryptonote_protocol
|
2018-11-20 18:18:08 +00:00
|
|
|
version
|
2017-09-05 16:20:27 +00:00
|
|
|
daemon_messages
|
|
|
|
serialization
|
|
|
|
${Boost_CHRONO_LIBRARY}
|
|
|
|
${Boost_REGEX_LIBRARY}
|
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
${Boost_THREAD_LIBRARY}
|
|
|
|
${ZMQ_LIB}
|
|
|
|
${EXTRA_LIBRARIES})
|
2017-09-05 16:20:40 +00:00
|
|
|
target_include_directories(daemon_rpc_server PUBLIC ${ZMQ_INCLUDE_PATH})
|
|
|
|
target_include_directories(obj_daemon_rpc_server PUBLIC ${ZMQ_INCLUDE_PATH})
|