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") 15import("//build/ohos/ndk/ndk.gni") 16 17ohos_ndk_headers("native_drawing_header") { 18 dest_dir = "$ndk_headers_out_dir/native_drawing" 19 sources = [ 20 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/c/drawing_bitmap.h", 21 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/c/drawing_brush.h", 22 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/c/drawing_canvas.h", 23 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/c/drawing_color.h", 24 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/c/drawing_font_collection.h", 25 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/c/drawing_path.h", 26 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/c/drawing_pen.h", 27 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/c/drawing_text_declaration.h", 28 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/c/drawing_text_typography.h", 29 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/c/drawing_types.h", 30 ] 31} 32 33ohos_ndk_library("libnative_drawing_ndk") { 34 output_name = "native_drawing" 35 output_extension = "so" 36 ndk_description_file = "./libnative_drawing.ndk.json" 37 system_capability = "SystemCapability.Graphic.Graphic2D.NativeDrawing" 38 system_capability_headers = [ 39 "native_drawing/drawing_bitmap.h", 40 "native_drawing/drawing_brush.h", 41 "native_drawing/drawing_canvas.h", 42 "native_drawing/drawing_color.h", 43 "native_drawing/drawing_font_collection.h", 44 "native_drawing/drawing_path.h", 45 "native_drawing/drawing_pen.h", 46 "native_drawing/drawing_text_declaration.h", 47 "native_drawing/drawing_text_typography.h", 48 "native_drawing/drawing_types.h", 49 ] 50} 51