1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15 16## Build hello_composer {{{ 17config("hello_composer_config") { 18 visibility = [ ":*" ] 19 20 cflags = [ 21 "-Wall", 22 "-Werror", 23 "-g3", 24 ] 25} 26 27config("hello_composer_public_config") { 28 include_dirs = [ 29 "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include", 30 "//foundation/graphic/graphic_2d/rosen/include/common", 31 "//foundation/graphic/graphic_2d/rosen/modules/composer/vsync/include", 32 "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/src", 33 "//foundation/graphic/graphic_2d/interfaces/inner_api/composer", 34 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 35 ] 36} 37 38ohos_executable("hello_composer") { 39 install_enable = true 40 41 sources = [ 42 "hello_composer.cpp", 43 "layer_context.cpp", 44 "main.cpp", 45 ] 46 47 configs = [ ":hello_composer_config" ] 48 49 public_configs = [ ":hello_composer_public_config" ] 50 51 deps = [ 52 "//foundation/graphic/graphic_2d:libsurface", 53 "//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer", 54 "//foundation/graphic/graphic_2d/utils:sync_fence", 55 ] 56 57 external_deps = [ 58 "c_utils:utils", 59 "eventhandler:libeventhandler", 60 "hilog:libhilog", 61 ] 62 63 part_name = "graphic_2d" 64 subsystem_name = "graphic" 65} 66 67## Build hello_composer }}} 68 69