mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
BUILD.gn、bundle.json整改
Signed-off-by: chenmingxing <chenmingxing4@huawei.com>
This commit is contained in:
parent
c1f581c655
commit
08592a0c78
14
BUILD.gn
14
BUILD.gn
@ -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" ]
|
||||
|
12
bundle.json
12
bundle.json
@ -26,7 +26,17 @@
|
||||
},
|
||||
"build": {
|
||||
"sub_component": [],
|
||||
"inner_kits": [],
|
||||
"inner_kits": [
|
||||
{
|
||||
"header":{
|
||||
"header_files":[
|
||||
""
|
||||
],
|
||||
"header_base": ""
|
||||
},
|
||||
"name": "//third_party/ffmpeg:libohosffmpeg"
|
||||
}
|
||||
],
|
||||
"test": []
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user