create_lib.sh 403 B

1234567891011121314151617
  1. #!/bin/sh
  2. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. CUR_DIR=$(cd $(dirname $0) && pwd -P)
  5. ROOT_DIR=${CUR_DIR}/../../..
  6. WAMR_BUILD_PLATFORM=${WAMR_BUILD_PLATFORM:-"linux"}
  7. cd ${ROOT_DIR}/product-mini/platforms/${WAMR_BUILD_PLATFORM}
  8. mkdir -p build && cd build
  9. cmake ..
  10. make -j
  11. cp libiwasm.so ${CUR_DIR}/../src/wamr/libs