-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate OSS build from custom to getdeps
Summary: X-link: facebookincubator/zstrong#1098 We have been manually syncing our builds when there is a change in builds of our dependencies (folly, thrift). This has been one of the major source of work in OSS maintenance. Migrating to getdeps will automatically sync the dependencies which means we only have to manage our own builds. NOTE: There is a dependency of getdeps on zlib which requires us to first run sudo dnf install -y zlib-devel before we successfully run getdeps. I don't think this should affect the OSS build as it is a getdeps dependency. Reviewed By: haowu14 Differential Revision: D65844211 fbshipit-source-id: 8e89e670cdec4a21ca7aba48ae58b5b72ddbf832
- Loading branch information
1 parent
f6f63a0
commit ee3655d
Showing
6 changed files
with
83 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# - Find NUMA | ||
# Find the NUMA library and includes | ||
# | ||
# NUMA_INCLUDE_DIRS - where to find numa.h, etc. | ||
# NUMA_LIBRARIES - List of libraries when using NUMA. | ||
# NUMA_FOUND - True if NUMA found. | ||
|
||
message(STATUS "looking numa in dir: : ${NUMA_INCLUDE_DIRS}") | ||
message(STATUS "root: : ${NUMA_ROOT_DIR}") | ||
|
||
find_path(NUMA_INCLUDE_DIRS | ||
NAMES numa.h numaif.h | ||
HINTS ${NUMA_ROOT_DIR}/include) | ||
|
||
message(STATUS "root: : ${NUMA_ROOT_DIR}") | ||
|
||
message(STATUS "looking numa in dir again : ${NUMA_INCLUDE_DIRS}") | ||
|
||
find_library(NUMA_LIBRARIES | ||
NAMES numa | ||
HINTS ${NUMA_ROOT_DIR}/lib) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(NUMA DEFAULT_MSG NUMA_LIBRARIES NUMA_INCLUDE_DIRS) | ||
|
||
mark_as_advanced( | ||
NUMA_LIBRARIES | ||
NUMA_INCLUDE_DIRS) | ||
|
||
if(NUMA_FOUND AND NOT (TARGET NUMA::NUMA)) | ||
add_library (NUMA::NUMA UNKNOWN IMPORTED) | ||
set_target_properties(NUMA::NUMA | ||
PROPERTIES | ||
IMPORTED_LOCATION ${NUMA_LIBRARIES} | ||
INTERFACE_INCLUDE_DIRECTORIES ${NUMA_INCLUDE_DIRS}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
find_path(SPARSEMAP_INCLUDE_DIRS NAMES tsl/sparse_map.h | ||
HINTS ${CMAKE_PREFIX_PATH} | ||
PATH_SUFFIXES include | ||
) | ||
include_directories(${SPARSEMAP_INCLUDE_DIRS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters