Commit ee631d6b authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Remove boost (#2552)

Summary:
After reviewing the code for KenLM it turned out that we can build it without boost.

Pull Request resolved: https://github.com/pytorch/audio/pull/2552

Reviewed By: xiaohui-zhang

Differential Revision: D37949699

Pulled By: mthrok

fbshipit-source-id: 4a4ffae4220d0b764b53f52b93040670d91a84a3
parent 62854588
......@@ -106,7 +106,7 @@ def _parse_url(path):
def _parse_sources():
third_party_dir = ROOT_DIR / "third_party"
libs = ["zlib", "bzip2", "lzma", "boost", "sox"]
libs = ["zlib", "bzip2", "lzma", "sox"]
archive_dir = third_party_dir / "archives"
archive_dir.mkdir(exist_ok=True)
for lib in libs:
......
......@@ -21,6 +21,5 @@ if (BUILD_CTC_DECODER)
add_subdirectory(zlib)
add_subdirectory(bzip2)
add_subdirectory(lzma)
add_subdirectory(boost)
add_subdirectory(kenlm)
endif()
include(ExternalProject)
set(INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../install/include)
set(ARCHIVE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../archives)
ExternalProject_Add(boost
PREFIX ${CMAKE_CURRENT_BINARY_DIR}
DOWNLOAD_DIR ${ARCHIVE_DIR}
URL https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.tar.gz
URL_HASH SHA256=94ced8b72956591c4775ae2207a9763d3600b30d9d7446562c552f0a14a63be7
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory boost ${INCLUDE_DIR}/boost
DOWNLOAD_NO_PROGRESS ON
LOG_DOWNLOAD ON
LOG_UPDATE ON
LOG_CONFIGURE ON
LOG_BUILD ON
LOG_INSTALL ON
LOG_MERGED_STDOUTERR ON
LOG_OUTPUT_ON_FAILURE ON
)
......@@ -69,5 +69,3 @@ target_link_libraries(
bzip2
lzma
)
add_dependencies(kenlm boost)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment