修改编译脚本独立构建

Signed-off-by: 刘昊苏 <liuhaosu@huawei.com>
This commit is contained in:
刘昊苏
2025-10-22 10:27:15 +08:00
parent 65286e78b1
commit 2acbc98088
3 changed files with 7 additions and 16 deletions
+3 -3
View File
@@ -13,11 +13,11 @@
import("//build/ohos.gni")
source_dir = "//third_party/third_party_sane-airscan"
source_dir = "//third_party/sane-airscan"
target_dir = "${target_gen_dir}/patches"
action("airscan_action") {
script = "//third_party/third_party_sane-airscan/patch_install.py"
script = "//third_party/sane-airscan/patch_install.py"
inputs = [ "${source_dir}/patches/oh-transplant.patch" ]
outputs = [
"${target_dir}/patches/airscan-conf.c",
@@ -104,7 +104,7 @@ ohos_shared_library("sane-airscan") {
ldflags = [ "-ldl" ]
subsystem_name = "thirdparty"
part_name = "third_party_sane-airscan"
part_name = "sane-airscan"
}
#the target group
+4 -4
View File
@@ -1,17 +1,17 @@
{
"name": "@ohos/third_party_sane-airscan",
"name": "@ohos/sane-airscan",
"description": "sane-airscan is an implementation of the AirScan/eSCL protocol in the SANE (Scanner Access Now Easy) framework. It allows access to scanner devices that support Apple AirScan or eSCL protocols through IP networks.",
"version": "0.99.35",
"license": "GPL v2",
"publishAs":"code-segment",
"segment":{
"destPath":"third_party/third_party_sane-airscan"
"destPath":"third_party/sane-airscan"
},
"dirs":{},
"scripts":{},
"licensePath": "COPYING",
"component": {
"name": "third_party_sane-airscan",
"name": "sane-airscan",
"subsystem": "thirdparty",
"syscap": [],
"features": [],
@@ -32,7 +32,7 @@
},
"build": {
"sub_component": [
"//third_party/third_party_sane-airscan:third_airscan"
"//third_party/sane-airscan:third_airscan"
],
"test": []
}
-9
View File
@@ -1,9 +0,0 @@
{
"patches": [
{
"project": "productdefine_common",
"path": "productdefine/common",
"pr_url": "https://gitee.com/openharmony/productdefine_common/pulls/1044"
}
]
}