Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

419 localization support redux #517

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion programs/eosc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@ if( GPERFTOOLS_FOUND )
list( APPEND PLATFORM_SPECIFIC_LIBS tcmalloc )
endif()

find_package(Intl)

set(LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale)
set(LOCALEDOMAIN eosc)
configure_file(config.hpp.in config.hpp ESCAPE_QUOTES)

target_include_directories(eosc PUBLIC ${Intl_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})

target_link_libraries( eosc
PRIVATE appbase chain_api_plugin producer_plugin chain_plugin net_plugin http_plugin eos_chain fc ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS} )
PRIVATE appbase chain_api_plugin producer_plugin chain_plugin net_plugin http_plugin eos_chain fc ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS} ${Intl_LIBRARIES} )

install( TARGETS
eosc
Expand Down
8 changes: 8 additions & 0 deletions programs/eosc/config.hpp.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @file
* @copyright defined in eos/LICENSE.txt
**/

namespace eos { namespace client { namespace config {
constexpr char locale_path[] = "${LOCALEDIR}";
constexpr char locale_domain[] = "${LOCALEDOMAIN}";
}}};
Loading