mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2025-03-03 18:21:45 +00:00
feat: add graphic_chipsetsdk for chipset compiling.
1)增加graphic_chipsetsdk部件支撑芯片组件独立编译构建。 Signed-off-by: handyohos <zhangxiaotian@huawei.com> Change-Id: I950405699ac884c606b5bc97c89bfaae51d45153
This commit is contained in:
parent
3234e715ac
commit
5829ede881
8
BUILD.gn
8
BUILD.gn
@ -38,7 +38,7 @@ group("graphic_standard_test") {
|
||||
testonly = true
|
||||
|
||||
public_deps = [
|
||||
"frameworks/surface:test",
|
||||
"frameworks/surface/test:test",
|
||||
"frameworks/wmtest:wmtest",
|
||||
"rosen/modules/composer:test",
|
||||
"rosen/modules/effect/test/unittest:test",
|
||||
@ -90,11 +90,7 @@ group("libfence") {
|
||||
}
|
||||
|
||||
group("libgl") {
|
||||
public_deps = [
|
||||
"//third_party/EGL:libEGL",
|
||||
"//third_party/openGLES:libGLES",
|
||||
]
|
||||
public_deps += libgl
|
||||
public_deps = libgl
|
||||
}
|
||||
|
||||
group("libgraphic_dumper_client") {
|
||||
|
@ -13,16 +13,17 @@
|
||||
|
||||
import("//build/ohos/native_stub/native_stub.gni")
|
||||
|
||||
ohos_native_stub_headers("EGL_header") {
|
||||
sources = [
|
||||
"//third_party/EGL/api/EGL/egl.h",
|
||||
"//third_party/EGL/api/EGL/eglext.h",
|
||||
"//third_party/EGL/api/EGL/eglplatform.h",
|
||||
config("egl_configs") {
|
||||
include_dirs = [ "//third_party/EGL/api" ]
|
||||
defines = [
|
||||
"ENABLE_EGL",
|
||||
"OHOS_PLATFORM",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_native_stub_library("libEGL_stub") {
|
||||
output_name = "EGL"
|
||||
output_extension = "so"
|
||||
public_configs = [ ":egl_configs" ]
|
||||
stub_description_file = "./libEGL.stub.json"
|
||||
}
|
||||
|
@ -13,17 +13,13 @@
|
||||
|
||||
import("//build/ohos/native_stub/native_stub.gni")
|
||||
|
||||
ohos_native_stub_headers("GLES3_header") {
|
||||
sources = [
|
||||
"//third_party/openGLES/api/GLES3/gl3.h",
|
||||
"//third_party/openGLES/api/GLES3/gl31.h",
|
||||
"//third_party/openGLES/api/GLES3/gl32.h",
|
||||
"//third_party/openGLES/api/GLES3/gl3platform.h",
|
||||
]
|
||||
config("glesv3_configs") {
|
||||
include_dirs = [ "//third_party/openGLES/api" ]
|
||||
}
|
||||
|
||||
ohos_native_stub_library("libGLESv3_stub") {
|
||||
output_name = "GLESv3"
|
||||
output_extension = "so"
|
||||
public_configs = [ ":glesv3_configs" ]
|
||||
stub_description_file = "./libGLESv3.stub.json"
|
||||
}
|
||||
|
25
frameworks/surface/BUILD.gn
Normal file → Executable file
25
frameworks/surface/BUILD.gn
Normal file → Executable file
@ -28,8 +28,10 @@ config("surface_config") {
|
||||
}
|
||||
|
||||
config("surface_public_config") {
|
||||
include_dirs =
|
||||
[ "//foundation/graphic/standard/interfaces/inner_api/surface" ]
|
||||
include_dirs = [
|
||||
"//foundation/graphic/standard/interfaces/inner_api/surface",
|
||||
"//foundation/graphic/standard/interfaces/inner_api/common",
|
||||
]
|
||||
|
||||
if (ace_enable_gpu) {
|
||||
defines = [ "ACE_ENABLE_GPU" ]
|
||||
@ -86,13 +88,17 @@ ohos_shared_library("surface") {
|
||||
"//drivers/peripheral/display/hal:hdi_display_gralloc",
|
||||
"//drivers/peripheral/display/hdi_service/gralloc/client:hdi_gralloc_client",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
|
||||
"//foundation/graphic/standard:libgl",
|
||||
"//foundation/graphic/standard/utils:buffer_handle",
|
||||
"//foundation/graphic/standard/utils:libgraphic_utils",
|
||||
"//foundation/graphic/standard/utils:sync_fence",
|
||||
"//foundation/graphic/standard/utils/buffer_handle:buffer_handle",
|
||||
"//foundation/graphic/standard/utils/gslogger:libgslogger",
|
||||
"//foundation/graphic/standard/utils/scoped_bytrace:scoped_bytrace",
|
||||
"//foundation/graphic/standard/utils/sync_fence:sync_fence",
|
||||
"//third_party/EGL:libEGL",
|
||||
"//third_party/openGLES:libGLES",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
public_deps += libgl
|
||||
|
||||
external_deps = [ "hitrace_native:hitrace_meter" ]
|
||||
|
||||
symlink_target_name = [ "libnative_window.so" ]
|
||||
@ -100,11 +106,4 @@ ohos_shared_library("surface") {
|
||||
part_name = "graphic_standard"
|
||||
subsystem_name = "graphic"
|
||||
}
|
||||
|
||||
## Build surface.so }}}
|
||||
|
||||
group("test") {
|
||||
testonly = true
|
||||
|
||||
deps = [ "test:test" ]
|
||||
}
|
||||
|
73
frameworks/surface/bundle.json
Normal file
73
frameworks/surface/bundle.json
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"name": "@ohos/graphic_chipsetsdk",
|
||||
"description": "graphic chipset sdk",
|
||||
"version": "3.1",
|
||||
"license": "Apache License 2.0",
|
||||
"publishAs": "code-segment",
|
||||
"segment": {
|
||||
"destPath": "foundation/graphic/standard"
|
||||
},
|
||||
"dirs": {},
|
||||
"scripts": {},
|
||||
"component": {
|
||||
"name": "graphic_chipsetsdk",
|
||||
"subsystem": "graphic",
|
||||
"adapted_system_type": [ "standard" ],
|
||||
"rom": "10000KB",
|
||||
"ram": "10000KB",
|
||||
"deps": {
|
||||
"components": [
|
||||
"libhilog",
|
||||
"ipc_core",
|
||||
"samgr_proxy",
|
||||
"utils",
|
||||
"libeventhandler",
|
||||
"hdi_display_device",
|
||||
"bytrace_core"
|
||||
],
|
||||
"third_party": [
|
||||
"libz",
|
||||
"libdrm"
|
||||
]
|
||||
},
|
||||
"build": {
|
||||
"sub_component": [
|
||||
"//foundation/graphic/standard/frameworks/surface:surface",
|
||||
"//foundation/graphic/standard/utils/buffer_handle:buffer_handle"
|
||||
],
|
||||
"inner_kits": [
|
||||
{
|
||||
"type": "so",
|
||||
"name": "//foundation/graphic/standard/frameworks/surface:surface",
|
||||
"header": {
|
||||
"header_files": [
|
||||
"buffer_extra_data.h",
|
||||
"egl_data.h",
|
||||
"egl_surface.h",
|
||||
"external_window.h",
|
||||
"ibuffer_consumer_listener.h",
|
||||
"ibuffer_producer.h",
|
||||
"surface.h",
|
||||
"surface_buffer.h",
|
||||
"surface_type.h",
|
||||
"surface_utils.h",
|
||||
"window.h"
|
||||
],
|
||||
"header_base": "//foundation/graphic/standard/interfaces/inner_api/surface"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "so",
|
||||
"name": "//foundation/graphic/standard/utils/buffer_handle:buffer_handle",
|
||||
"header": {
|
||||
"header_files": [
|
||||
"buffer_handle_parcel.h",
|
||||
"buffer_handle_utils.h"
|
||||
],
|
||||
"header_base": "//foundation/graphic/standard/utils/buffer_handle/export"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -49,7 +49,7 @@ ohos_static_library("sync_fence_common") {
|
||||
|
||||
public_configs = [ ":sync_fence_common_public_config" ]
|
||||
|
||||
public_deps = [ "//foundation/graphic/standard/utils:sync_fence" ]
|
||||
public_deps = [ "//foundation/graphic/standard/utils/sync_fence:sync_fence" ]
|
||||
subsystem_name = "graphic"
|
||||
part_name = "graphic_standard"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user