BUILD.gn、bundle.json整改

Signed-off-by: chenmingxing <chenmingxing4@huawei.com>
This commit is contained in:
chenmingxing 2024-01-25 12:01:54 +08:00
parent c1f581c655
commit 08592a0c78
2 changed files with 25 additions and 1 deletions

View File

@ -140,6 +140,19 @@ config("ffmpeg_config") {
}
}
config("libohosffmpeg_public_config"){
visibility = [":*"]
include_dirs = [
"//third_party/ffmpeg",
"//third_party/ffmpeg/libavformat/",
"//third_party/ffmpeg/libavcodec/",
"//third_party/ffmpeg/libswresample/",
"//third_party/ffmpeg/libswscale/",
"//third_party/ffmpeg/libavfilter/",
]
}
ohos_source_set("ffmpeg_dynamic") {
sources = [
# "//third_party/ffmpeg/libavcodec/012v.c",
@ -1652,6 +1665,7 @@ ohos_shared_library("libohosffmpeg") {
boundary_sanitize = true
}
deps = [ ":ffmpeg_dynamic" ]
public_configs = [ ":libohosffmpeg_public_config" ]
part_name = "ffmpeg"
subsystem_name = "thirdparty"
cflags = [ "-Wno-array-parameter" ]

View File

@ -26,7 +26,17 @@
},
"build": {
"sub_component": [],
"inner_kits": [],
"inner_kits": [
{
"header":{
"header_files":[
""
],
"header_base": ""
},
"name": "//third_party/ffmpeg:libohosffmpeg"
}
],
"test": []
}
}