mirror of
https://github.com/openharmony/graphic_surface_lite.git
synced 2026-07-01 01:37:56 -04:00
@@ -12,12 +12,12 @@
|
||||
import("//build/lite/config/component/lite_component.gni")
|
||||
import("//build/lite/ndk/ndk.gni")
|
||||
|
||||
lite_component("lite_surface") {
|
||||
lite_component("surface_lite") {
|
||||
features = [ ":surface" ]
|
||||
public_deps = features
|
||||
}
|
||||
|
||||
ndk_lib("lite_surface_ndk") {
|
||||
ndk_lib("surface_lite_ndk") {
|
||||
lib_extension = ".so"
|
||||
deps = [ ":surface" ]
|
||||
head_files = [ "interfaces/kits" ]
|
||||
@@ -40,7 +40,7 @@ shared_library("surface") {
|
||||
"//drivers/peripheral/display/interfaces/include",
|
||||
]
|
||||
public_configs = [ ":surface_public_config" ]
|
||||
public_deps = [ "//foundation/graphic/utils:lite_graphic_utils" ]
|
||||
public_deps = [ "//foundation/graphic/utils:graphic_utils_lite" ]
|
||||
deps = [
|
||||
"//drivers/peripheral/display/hal:hdi_display",
|
||||
"//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
|
||||
|
||||
@@ -35,7 +35,7 @@ A surface transfers data across processes through control structures such as Int
|
||||
|
||||
```
|
||||
# Generate the libsurface.so file in the out directory of the product folder through GN compilation.
|
||||
hb build lite_surface
|
||||
hb build surface_lite
|
||||
```
|
||||
|
||||
## Description<a name="section1312121216216"></a>
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ Surface的跨进程传输使用IPC传输句柄等控制结构(有拷贝),
|
||||
|
||||
```
|
||||
# 通过gn编译,在out目录下对应产品的文件夹中生成libsurface.so
|
||||
hb build lite_surface
|
||||
hb build surface_lite
|
||||
```
|
||||
|
||||
## 说明<a name="section1312121216216"></a>
|
||||
|
||||
+2
-2
@@ -29,8 +29,8 @@
|
||||
},
|
||||
"build": {
|
||||
"sub_component": [
|
||||
"//foundation/graphic/surface:lite_surface",
|
||||
"//foundation/graphic/surface/test:lite_surface_test" ],
|
||||
"//foundation/graphic/surface:surface_lite",
|
||||
"//foundation/graphic/surface/test:surface_lite_test" ],
|
||||
"inner_kits": [],
|
||||
"test": []
|
||||
}
|
||||
|
||||
+3
-3
@@ -11,14 +11,14 @@
|
||||
|
||||
import("//build/lite/config/test.gni")
|
||||
|
||||
group("lite_surface_test") {
|
||||
group("surface_lite_test") {
|
||||
if (ohos_build_type == "debug") {
|
||||
deps = [ ":lite_surface_unittest_door" ]
|
||||
deps = [ ":surface_lite_unittest_door" ]
|
||||
}
|
||||
}
|
||||
|
||||
if (ohos_build_type == "debug") {
|
||||
unittest("lite_surface_unittest_door") {
|
||||
unittest("surface_lite_unittest_door") {
|
||||
output_extension = "bin"
|
||||
output_dir = "$root_out_dir/test/unittest/graphic"
|
||||
sources = [ "unittest/graphic_surface_test.cpp" ]
|
||||
|
||||
Reference in New Issue
Block a user