2022-01-25 02:10:12 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
*/
|
|
|
|
|
|
|
|
const vscode = acquireVsCodeApi();
|
|
|
|
|
|
|
|
document.getElementById('btn_submit').onclick = () => {
|
|
|
|
submitFunc();
|
|
|
|
};
|
|
|
|
|
|
|
|
function submitFunc() {
|
|
|
|
let outputFileName = document.getElementById('output_file_name').value;
|
2022-12-27 07:04:36 +00:00
|
|
|
let initMemSize = document.getElementById('initial_mem_size').value;
|
|
|
|
let maxMemSize = document.getElementById('max_mem_size').value;
|
2022-01-25 02:10:12 +00:00
|
|
|
let stackSize = document.getElementById('stack_size').value;
|
|
|
|
let exportedSymbols = document.getElementById('exported_symbols').value;
|
|
|
|
|
|
|
|
vscode.postMessage({
|
|
|
|
command: 'config_build_target',
|
|
|
|
outputFileName: outputFileName,
|
2022-12-27 07:04:36 +00:00
|
|
|
initMemSize: initMemSize,
|
|
|
|
maxMemSize: maxMemSize,
|
2022-01-25 02:10:12 +00:00
|
|
|
stackSize: stackSize,
|
|
|
|
exportedSymbols: exportedSymbols,
|
|
|
|
});
|
|
|
|
}
|