1 Star 0 Fork 139

openharmony_wearable / graphic_utils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
BUILD.gn 3.82 KB
一键复制 编辑 原始数据 按行查看 历史
borne 提交于 2021-08-14 16:55 . temp modify for STM disco demo
# Copyright (c) 2020-2021 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.
import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/subsystem/graphic/config.gni")
import("//build/lite/ndk/ndk.gni")
lite_component("lite_graphic_utils") {
features = [ ":graphic_utils" ]
public_deps = features
}
ndk_lib("lite_graphic_utils_ndk") {
lib_extension = ".so"
deps = [ ":graphic_utils" ]
head_files = [ "interfaces/kits" ]
}
lite_component("lite_graphic_hals") {
features = [ ":graphic_hals" ]
public_deps = features
}
ndk_lib("lite_graphic_hals_ndk") {
lib_extension = ".so"
deps = [ ":graphic_hals" ]
head_files = []
}
lite_library("graphic_utils") {
if (ohos_kernel_type == "liteos_m") {
target_type = "static_library"
} else {
target_type = "shared_library"
}
defines = [
"ENABLE_MEMORY_HOOKS = 0",
]
if (enable_graphic_dualcore == true) {
defines += [
"HAL_CPU_NUM = 2",
]
}
sources = [
"frameworks/color.cpp",
"frameworks/geometry2d.cpp",
"frameworks/graphic_math.cpp",
"frameworks/graphic_timer.cpp",
"frameworks/graphic_performance.cpp",
"frameworks/hal_cpu.cpp",
"frameworks/hal_tick.cpp",
"frameworks/mem_api.cpp",
"frameworks/pixel_format_utils.cpp",
"frameworks/queue.c",
"frameworks/style.cpp",
"frameworks/transform.cpp",
"frameworks/version.cpp",
]
include_dirs = [ "frameworks" ]
public_configs = [ ":graphic_utils_public_config" ]
if (ohos_kernel_type == "liteos_m") {
deps = [
"//third_party/bounds_checking_function:libsec_static",
"//kernel/liteos_m/kal/posix"
]
#public_deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_static" ]
include_dirs += [
"//kernel/liteos_m/kernel/include",
"//kernel/liteos_m/utils",
"//kernel/liteos_m/kernel/arch/include",
]
} else {
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
public_deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" ]
}
cflags = [ "-Wall" ]
cflags_cc = cflags
}
config("graphic_utils_public_config") {
include_dirs = [
"interfaces/innerkits",
"interfaces/kits",
"//base/hiviewdfx/hilog_lite/interfaces/native/kits",
]
}
lite_library("graphic_hals") {
if (ohos_kernel_type == "liteos_m") {
target_type = "static_library"
} else {
target_type = "shared_library"
}
sources = [
# "frameworks/hals/gfx_engines.cpp",
# "frameworks/hals/hi_fbdev.cpp",
]
include_dirs = [
"//foundation/graphic/wms/interfaces/innerkits",
]
if (ohos_kernel_type == "liteos_m") {
include_dirs += [ "//third_party/musl/porting/liteos_m/kernel/include" ]
include_dirs += [
"//kernel/liteos_m/kernel/include",
"//kernel/liteos_m/utils",
"//kernel/liteos_m/kernel/arch/include",
]
} else {
include_dirs += [ "//third_party/musl/porting/liteos_a/kernel/include" ]
}
deps = [
":lite_graphic_utils",
# "//drivers/peripheral/display/hal:hdi_display",
]
public_configs = [ ":graphic_hals_public_config" ]
# ldflags = [
# "-ldisplay_gfx",
# "-ldisplay_gralloc",
# "-ldisplay_layer",
# ]
}
config("graphic_hals_public_config") {
include_dirs = [
"interfaces/innerkits",
"//drivers/peripheral/base",
"//drivers/peripheral/display/interfaces/include",
]
}
1
https://gitee.com/openharmony_wearable/graphic_utils.git
git@gitee.com:openharmony_wearable/graphic_utils.git
openharmony_wearable
graphic_utils
graphic_utils
master

搜索帮助