diff --git a/display/bundle.json b/display/bundle.json old mode 100644 new mode 100755 index b69e6a25c5ae12e86cb380976f7f6560b1d9a7b1..af5f7e9e383ef0f6915a21f152dc9fee6a525bf8 --- a/display/bundle.json +++ b/display/bundle.json @@ -28,7 +28,8 @@ }, "build": { "sub_component": [ - "//drivers/peripheral/display/hdi_service/gralloc/client:hdi_gralloc_client" + "//drivers/peripheral/display/hdi_service/gralloc/client:hdi_gralloc_client", + "//drivers/interface/display/v1_0:display_device_client" ], "inner_kits": [ { @@ -40,6 +41,14 @@ ], "header_base": "//drivers/peripheral/display/hdi_service/gralloc/include" } + }, + { + "name": "//drivers/interface/display/v1_0:display_device_client", + "header": { + "header_files": [ + ], + "header_base": "//drivers/peripheral/display/interfaces/include" + } } ] } diff --git a/display/v1_0/BUILD.gn b/display/v1_0/BUILD.gn new file mode 100755 index 0000000000000000000000000000000000000000..c039c164a771acb98f8a6cafe6d7683c0ba056d5 --- /dev/null +++ b/display/v1_0/BUILD.gn @@ -0,0 +1,72 @@ +# 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. + +if (defined(ohos_lite)) { + group("display_device_client") { + } +} else { + import("//build/ohos.gni") + import("//build/ohos/native_stub/native_stub.gni") + + # + # exported include directories + # + config("libdisplay_exported_config") { + visibility = [ ":*" ] + include_dirs = [ + "//drivers/peripheral/base", + "//drivers/peripheral/display/interfaces/include", + ] + } + + # + # stub library for libdisplay_gralloc + # + ohos_native_stub_library("libdisplay_gralloc") { + public_configs = [ ":libdisplay_exported_config" ] + stub_description_file = "./stub/libdisplay_gralloc.stub.json" + } + + # + # stub library for libdisplay_device + # + ohos_native_stub_library("libdisplay_device") { + public_configs = [ ":libdisplay_exported_config" ] + stub_description_file = "./stub/libdisplay_device.stub.json" + } + + # + # stub library for libdisplay_gfx + # + ohos_native_stub_library("libdisplay_gfx") { + public_configs = [ ":libdisplay_exported_config" ] + stub_description_file = "./stub/libdisplay_gfx.stub.json" + } + + # + # stub library for libdisplay_layer + # + ohos_native_stub_library("libdisplay_layer") { + public_configs = [ ":libdisplay_exported_config" ] + stub_description_file = "./stub/libdisplay_layer.stub.json" + } + + group("display_device_client") { + deps = [ + ":libdisplay_device", + ":libdisplay_gfx", + ":libdisplay_layer", + ] + public_configs = [ ":libdisplay_exported_config" ] + } +} diff --git a/display/v1_0/stub/libdisplay_device.stub.json b/display/v1_0/stub/libdisplay_device.stub.json new file mode 100755 index 0000000000000000000000000000000000000000..2227fd8c650b3762962a4c94ff64fd01d6f10879 --- /dev/null +++ b/display/v1_0/stub/libdisplay_device.stub.json @@ -0,0 +1,4 @@ +[ + { "name": "DeviceInitialize" }, + { "name": "DeviceUninitialize" } +] diff --git a/display/v1_0/stub/libdisplay_gfx.stub.json b/display/v1_0/stub/libdisplay_gfx.stub.json new file mode 100755 index 0000000000000000000000000000000000000000..477c657de21d166e0c65d2556fe62ed4dd0bb8ae --- /dev/null +++ b/display/v1_0/stub/libdisplay_gfx.stub.json @@ -0,0 +1,4 @@ +[ + { "name": "GfxInitialize" }, + { "name": "GfxUninitialize" } +] diff --git a/display/v1_0/stub/libdisplay_gralloc.stub.json b/display/v1_0/stub/libdisplay_gralloc.stub.json new file mode 100755 index 0000000000000000000000000000000000000000..ce2a886457dddb038d5a5084ee0381ec288d777f --- /dev/null +++ b/display/v1_0/stub/libdisplay_gralloc.stub.json @@ -0,0 +1,4 @@ +[ + { "name": "GrallocInitialize" }, + { "name": "GrallocUninitialize" } +] diff --git a/display/v1_0/stub/libdisplay_layer.stub.json b/display/v1_0/stub/libdisplay_layer.stub.json new file mode 100755 index 0000000000000000000000000000000000000000..e3dd7ab37dae17692563788a5f7ab216c406070a --- /dev/null +++ b/display/v1_0/stub/libdisplay_layer.stub.json @@ -0,0 +1,4 @@ +[ + { "name": "LayerInitialize" }, + { "name": "LayerUninitialize" } +]