From 1077052b25a70646b82adb823f8ae4f62b63f4a6 Mon Sep 17 00:00:00 2001 From: zhanghaibo Date: Thu, 27 Jan 2022 17:25:04 +0800 Subject: [PATCH] copy node header Signed-off-by: zhanghaibo Change-Id: I3ea22c436714e89f5235d88ee6cb413246010a36 --- BUILD.gn | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 BUILD.gn diff --git a/BUILD.gn b/BUILD.gn new file mode 100644 index 00000000..254f3855 --- /dev/null +++ b/BUILD.gn @@ -0,0 +1,24 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/ohos.gni") + +ohos_ndk_headers("node_header") { + dest_dir = "$ndk_headers_out_dir" + sources = [ + "//third_party/node/src/js_native_api.h", + "//third_party/node/src/js_native_api_types.h", + "//third_party/node/src/node_api.h", + "//third_party/node/src/node_api_types.h", + ] +} -- Gitee