# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the LICENSE
# file in the root directory of this source tree.

set(LLVM_LINK_COMPONENTS
  Analysis
  Core
  Support
  )

add_llvm_tool(hbcdump
  hbcdump.cpp
  HBCParser.cpp
  ProfileAnalyzer.cpp
  StructuredPrinter.cpp
  ${ALL_HEADER_FILES}
  )

target_link_libraries(hbcdump
  hermesHBCBackend
  hermesSupport
)

hermes_link_icu(hbcdump)
