2018-01-06 22:05:16 -07:00
|
|
|
# Copyright (c) 2014-2018, The Monero Project
|
2014-10-21 09:13:59 -06: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 12:31:38 -07:00
|
|
|
set(rpc_base_sources
|
|
|
|
rpc_args.cpp)
|
|
|
|
|
2014-10-21 09:13:59 -06:00
|
|
|
set(rpc_sources
|
2017-02-05 15:48:03 -07:00
|
|
|
core_rpc_server.cpp
|
2017-11-29 15:53:58 -07:00
|
|
|
instanciations)
|
2014-10-21 09:13:59 -06:00
|
|
|
|
2017-09-05 10:20:27 -06:00
|
|
|
set(daemon_messages_sources
|
|
|
|
message.cpp
|
|
|
|
daemon_messages.cpp)
|
|
|
|
|
|
|
|
set(daemon_rpc_server_sources
|
|
|
|
daemon_handler.cpp
|
|
|
|
zmq_server.cpp)
|
|
|
|
|
|
|
|
|
2017-11-29 12:31:38 -07:00
|
|
|
set(rpc_base_headers
|
2017-02-05 15:48:03 -07:00
|
|
|
rpc_args.h)
|
2014-10-21 10:38:00 -06:00
|
|
|
|
2017-11-29 12:31:38 -07:00
|
|
|
set(rpc_headers)
|
|
|
|
|
2017-09-05 10:20:27 -06:00
|
|
|
set(daemon_rpc_server_headers)
|
|
|
|
|
|
|
|
|
|
|
|
set(rpc_daemon_private_headers
|
2014-10-21 09:13:59 -06:00
|
|
|
core_rpc_server.h
|
|
|
|
core_rpc_server_commands_defs.h
|
|
|
|
core_rpc_server_error_codes.h)
|
|
|
|
|
2017-09-05 10:20:27 -06: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
|
|
|
|
rpc_handler.h
|
|
|
|
zmq_server.h)
|
|
|
|
|
|
|
|
|
2016-09-26 08:42:29 -06:00
|
|
|
monero_private_headers(rpc
|
2014-10-21 10:38:00 -06:00
|
|
|
${rpc_private_headers})
|
2017-09-05 10:20:27 -06:00
|
|
|
|
|
|
|
monero_private_headers(daemon_rpc_server
|
|
|
|
${daemon_rpc_server_private_headers})
|
|
|
|
|
|
|
|
|
2017-11-29 12:31:38 -07:00
|
|
|
monero_add_library(rpc_base
|
|
|
|
${rpc_base_sources}
|
|
|
|
${rpc_base_headers}
|
|
|
|
${rpc_base_private_headers})
|
|
|
|
|
2016-09-26 08:42:29 -06:00
|
|
|
monero_add_library(rpc
|
2014-10-21 09:13:59 -06:00
|
|
|
${rpc_sources}
|
2014-10-21 10:38:00 -06:00
|
|
|
${rpc_headers}
|
|
|
|
${rpc_private_headers})
|
2017-09-05 10:20:27 -06: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 12:31:38 -07:00
|
|
|
target_link_libraries(rpc_base
|
|
|
|
PUBLIC
|
|
|
|
common
|
|
|
|
epee
|
|
|
|
${Boost_REGEX_LIBRARY}
|
|
|
|
${Boost_THREAD_LIBRARY}
|
2017-12-21 08:22:25 -07:00
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
2017-11-29 12:31:38 -07:00
|
|
|
PRIVATE
|
|
|
|
${EXTRA_LIBRARIES})
|
|
|
|
|
2014-10-21 09:13:59 -06:00
|
|
|
target_link_libraries(rpc
|
2016-09-17 11:59:29 -06:00
|
|
|
PUBLIC
|
2017-11-29 12:31:38 -07:00
|
|
|
rpc_base
|
2017-02-05 15:48:03 -07:00
|
|
|
common
|
2014-10-21 09:13:59 -06:00
|
|
|
cryptonote_core
|
2015-04-01 11:00:45 -06:00
|
|
|
cryptonote_protocol
|
2016-12-08 18:28:28 -07:00
|
|
|
epee
|
2017-01-26 08:07:23 -07:00
|
|
|
${Boost_REGEX_LIBRARY}
|
2014-10-21 09:13:59 -06:00
|
|
|
${Boost_THREAD_LIBRARY}
|
2016-09-17 11:59:29 -06:00
|
|
|
PRIVATE
|
2014-10-21 09:13:59 -06:00
|
|
|
${EXTRA_LIBRARIES})
|
2017-09-05 10:20:27 -06:00
|
|
|
|
|
|
|
target_link_libraries(daemon_messages
|
|
|
|
LINK_PRIVATE
|
|
|
|
cryptonote_core
|
|
|
|
cryptonote_protocol
|
|
|
|
serialization
|
|
|
|
${EXTRA_LIBRARIES})
|
|
|
|
|
|
|
|
target_link_libraries(daemon_rpc_server
|
|
|
|
LINK_PRIVATE
|
2017-12-21 08:22:25 -07:00
|
|
|
rpc
|
2017-09-05 10:20:27 -06:00
|
|
|
cryptonote_core
|
|
|
|
cryptonote_protocol
|
|
|
|
daemon_messages
|
|
|
|
serialization
|
|
|
|
${Boost_CHRONO_LIBRARY}
|
|
|
|
${Boost_REGEX_LIBRARY}
|
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
${Boost_THREAD_LIBRARY}
|
|
|
|
${ZMQ_LIB}
|
|
|
|
${EXTRA_LIBRARIES})
|
2017-09-05 10:20:40 -06:00
|
|
|
target_include_directories(daemon_rpc_server PUBLIC ${ZMQ_INCLUDE_PATH})
|
|
|
|
target_include_directories(obj_daemon_rpc_server PUBLIC ${ZMQ_INCLUDE_PATH})
|