1# Copyright (c) 2021-2024 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14# This is an entry point for Ark standalone build with gn. 15# It is ignored when Ark is built as a part of OpenHarmony source tree. 16 17buildconfig = "//build/config/BUILDCONFIG.gn" 18 19secondary_source = "//gn" 20script_executable = "/usr/bin/env" 21 22if (!defined(ark_standalone_build)) { 23 ark_standalone_build = false 24} 25 26if (!ark_standalone_build) { 27 third_party_script_args = [ "--node" ] 28 exec_script("//scripts/install-third-party", third_party_script_args) 29} else { 30 exec_script("//scripts/install-third-party") 31} 32 33exec_script("//gn/build/fixup-third-party.sh") 34