1#!/bin/bash
2# Copyright (c) Huawei Technologies Co., Ltd. 2023. All rights reserved.
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14set -e
15ext=""
16target_os="linux"
17gn_path="linux"
18is_debug="false"
19is_clean="false"
20target="trace_streamer"
21target_operator=""
22target_dir="linux"
23gn="gn"
24ninja="ninja"
25use_local_emsdk="false"
26PARAMS=""
27enable_plugin_array=("enable_hiperf" "enable_ebpf" "enable_native_hook" "enable_hilog" "enable_hisysevent"
28           "enable_arkts" "enable_bytrace" "enable_rawtrace" "enable_htrace" "enable_ffrt" "enable_memory"
29           "enable_hidump" "enable_cpudata" "enable_network" "enable_diskio" "enable_process")
30enable_extend_plugin_array=("enable_stream_extend")
31enable_all_plugins_str=""