iwasm_interp.cmake 735 B

1234567891011121314151617181920212223242526272829
  1. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. set (IWASM_INTERP_DIR ${CMAKE_CURRENT_LIST_DIR})
  4. add_definitions (-DWASM_ENABLE_INTERP=1)
  5. include_directories(${IWASM_INTERP_DIR})
  6. if (WAMR_BUILD_FAST_INTERP EQUAL 1)
  7. set (INTERPRETER "wasm_interp_fast.c")
  8. else ()
  9. set (INTERPRETER "wasm_interp_classic.c")
  10. endif ()
  11. if (WAMR_BUILD_MINI_LOADER EQUAL 1)
  12. set (LOADER "wasm_mini_loader.c")
  13. else ()
  14. set (LOADER "wasm_loader.c")
  15. endif ()
  16. file (GLOB_RECURSE source_all
  17. ${IWASM_INTERP_DIR}/${LOADER}
  18. ${IWASM_INTERP_DIR}/wasm_runtime.c
  19. ${IWASM_INTERP_DIR}/${INTERPRETER}
  20. )
  21. set (IWASM_INTERP_SOURCE ${source_all})