Add WAMR API bindings in Python (#1959)
Before adding the new bindings: 1. Moved wasm-c-api in a subfolder wasmcapi in the package. 2. Adapted the tests to be able to run in this new structure. New: 1. Added the WAMR API in another folder wamrapi in the same level as wasm-c-api. 2. Created an OOP proposal. 3. Added an example using this proposal.
This commit is contained in:
17
language-bindings/python/utils/create_lib.sh
Executable file
17
language-bindings/python/utils/create_lib.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
CUR_DIR=$(cd $(dirname $0) && pwd -P)
|
||||
ROOT_DIR=${CUR_DIR}/../../..
|
||||
|
||||
WAMR_BUILD_PLATFORM=${WAMR_BUILD_PLATFORM:-"linux"}
|
||||
|
||||
cd ${ROOT_DIR}/product-mini/platforms/${WAMR_BUILD_PLATFORM}
|
||||
|
||||
mkdir -p build && cd build
|
||||
cmake ..
|
||||
make -j
|
||||
|
||||
cp libiwasm.so ${CUR_DIR}/../src/wamr/libs
|
||||
Reference in New Issue
Block a user