Commit 956958b6 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Merge branch 'amiranda/110-refactor-api-rpc_types-c-h' into 'main'

Resolve "Refactor api/rpc_types.[c|h]"

Closes #110

See merge request !80
parents c6506535 98a7bcac
Loading
Loading
Loading
Loading
Loading
+2
Changes for CMakeLists.txt: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -83,6 +83,8 @@ set(CMAKE_SHARED_LINKER_FLAGS_ASAN
set_property(GLOBAL APPEND PROPERTY DEBUG_CONFIGURATIONS Debug)
set_property(GLOBAL APPEND PROPERTY DEBUG_CONFIGURATIONS ASan)

set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

+1 −1
Changes for examples/c/CMakeLists.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ list(APPEND examples_c

add_library(c_examples_common STATIC)
target_sources(c_examples_common PUBLIC common.h PRIVATE common.c)
target_link_libraries(c_examples_common common::api::types)
target_link_libraries(c_examples_common libscord_c_types)

foreach(example IN LISTS examples_c)
  add_executable(${example}_c)
+1 −1
Changes for examples/cxx/CMakeLists.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ list(APPEND examples_cxx

add_library(cxx_examples_common STATIC)
target_sources(cxx_examples_common PUBLIC common.hpp PRIVATE common.cpp)
target_link_libraries(cxx_examples_common common::api::types)
target_link_libraries(cxx_examples_common libscord_cxx_types)

foreach(example IN LISTS examples_cxx)
  add_executable(${example}_cxx)
−9
Changes for src/common/CMakeLists.txt: 0 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -45,15 +45,6 @@ target_include_directories(_rpc_client INTERFACE
  ${CMAKE_CURRENT_SOURCE_DIR})
add_library(common::network::rpc_client ALIAS _rpc_client)

target_include_directories(_rpc_types INTERFACE
  ${CMAKE_CURRENT_SOURCE_DIR})
add_library(common::network::rpc_types ALIAS _rpc_types)

add_subdirectory(api)
target_include_directories(_api_types INTERFACE
  ${CMAKE_CURRENT_SOURCE_DIR})
add_library(common::api::types ALIAS _api_types)

add_subdirectory(abt_cxx)
target_include_directories(_abt_cxx INTERFACE
  ${CMAKE_CURRENT_SOURCE_DIR})
−35

File deleted.

Loading