mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 15:44:27 +03:00
8dc58acda1
Summary: Drop the `2` from the `fb303_thrift_cpp2` rule name. The old `cpp` version of fbthrift is gone, `cpp2` is the only supported C++ version, so lets drop the `2` from this build rule name. I plan to change some of the CMake thrift rule generation code soon, to support multiple languages (namely Python). As part of this I plan to automatically add a language-specific suffix(`_py` or `_cpp`) to the build rules. It seems better to use `_cpp` rather than `_cpp2` for C++ libraries. Changing the name for this fb303 rule will make it fit this planned naming scheme. Reviewed By: chadaustin Differential Revision: D16653264 fbshipit-source-id: e4da70c79ff14e9981717ab909d982770d104512
37 lines
695 B
CMake
37 lines
695 B
CMake
add_thrift_cpp2_library(
|
|
fb303_thrift_cpp
|
|
fb303/if/fb303.thrift
|
|
SERVICES
|
|
FacebookService
|
|
)
|
|
|
|
add_library(
|
|
common_stats STATIC
|
|
stats/ServiceData.cpp
|
|
)
|
|
set_property(
|
|
TARGET common_stats
|
|
PROPERTY PUBLIC_HEADER
|
|
stats/ExportedHistogramMap.h
|
|
stats/ExportedHistogramMapImpl.h
|
|
stats/ExportedStatMap.h
|
|
stats/ExportedStatMapImpl.h
|
|
stats/ExportType.h
|
|
stats/DynamicCounters.h
|
|
stats/MonotonicCounter.h
|
|
stats/ServiceData.h
|
|
stats/ThreadCachedServiceData.h
|
|
stats/ThreadLocalStats.h
|
|
)
|
|
target_include_directories(
|
|
common_stats
|
|
PUBLIC
|
|
${CMAKE_SOURCE_DIR}
|
|
${CMAKE_BINARY_DIR}
|
|
)
|
|
target_link_libraries(
|
|
common_stats
|
|
PUBLIC
|
|
Folly::folly
|
|
)
|