1# Copyright (c) 2021-2024 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("//foundation/arkui/ace_engine/ace_config.gni") 16import("//foundation/arkui/ace_engine/build/ace_ext.gni") 17 18# build core sources 19template("ace_core_source_set") { 20 forward_variables_from(invoker, "*") 21 22 ohos_source_set(target_name) { 23 if (current_os == "ohos") { 24 sanitize = { 25 integer_overflow = true 26 boundary_sanitize = true 27 debug = ace_sanitize_debug 28 } 29 } 30 subsystem_name = ace_engine_subsystem 31 part_name = ace_engine_part 32 defines += invoker.defines 33 platform = invoker.platform 34 include_dirs = [] 35 36 if (ace_engine_feature_enable_split_mode && 37 defined(vendor_configs.ace_engine_advanced_split_mode_dirs)) { 38 include_dirs += vendor_configs.ace_engine_advanced_split_mode_dirs 39 } 40 41 # add common source file needed by all product platform here 42 sources = [ 43 # accessibility 44 "accessibility/accessibility_manager_ng.cpp", 45 "accessibility/accessibility_node.cpp", 46 "accessibility/accessibility_session_adapter.cpp", 47 "accessibility/accessibility_utils.cpp", 48 "accessibility/native_interface_accessibility_impl.cpp", 49 "accessibility/native_interface_accessibility_provider.cpp", 50 51 # animation 52 "animation/animatable_data.cpp", 53 "animation/animatable_properties.cpp", 54 "animation/animation_pub.cpp", 55 "animation/animation_util.cpp", 56 "animation/animator.cpp", 57 "animation/animator_group.cpp", 58 "animation/anticipate_curve.cpp", 59 "animation/bilateral_spring_adapter.cpp", 60 "animation/bilateral_spring_node.cpp", 61 "animation/card_transition_controller.cpp", 62 "animation/chain_animation.cpp", 63 "animation/cubic_curve.cpp", 64 "animation/curves.cpp", 65 "animation/friction_motion.cpp", 66 "animation/property_animation.cpp", 67 "animation/scheduler.cpp", 68 "animation/scroll_motion.cpp", 69 "animation/shared_transition_controller.cpp", 70 "animation/shared_transition_effect.cpp", 71 "animation/simple_spring_adapter.cpp", 72 "animation/simple_spring_chain.cpp", 73 "animation/simple_spring_node.cpp", 74 "animation/spring_animation.cpp", 75 "animation/spring_curve.cpp", 76 "animation/spring_model.cpp", 77 "animation/spring_motion.cpp", 78 "animation/svg_animate.cpp", 79 80 # common 81 "common/ace_application_info.cpp", 82 "common/ace_engine.cpp", 83 "common/ace_engine_ext.cpp", 84 "common/agingadapation/aging_adapation_dialog_util.cpp", 85 "common/anr_thread.cpp", 86 "common/asset_manager_impl.cpp", 87 "common/card_scope.cpp", 88 "common/clipboard/clipboard_proxy.cpp", 89 "common/container.cpp", 90 "common/container_scope.cpp", 91 "common/environment/environment_proxy.cpp", 92 "common/event_dump.cpp", 93 "common/event_manager.cpp", 94 "common/event_manager_pen.cpp", 95 "common/focus_animation_manager.cpp", 96 "common/font_loader.cpp", 97 "common/font_manager.cpp", 98 "common/frontend.cpp", 99 "common/platform_bridge.cpp", 100 "common/render_boundary_manager.cpp", 101 "common/resource/resource_manager.cpp", 102 "common/resource/resource_wrapper.cpp", 103 "common/sharedata/share_data.cpp", 104 "common/storage/storage_proxy.cpp", 105 "common/task_executor_impl.cpp", 106 "common/task_runner_adapter_factory.cpp", 107 "common/task_runner_adapter_impl.cpp", 108 "common/task_runners.cpp", 109 "common/text_field_manager.cpp", 110 "common/thread_checker.cpp", 111 "common/thread_container.cpp", 112 "common/thread_model_impl.cpp", 113 "common/vibrator/vibrator_proxy.cpp", 114 "common/watch_dog.cpp", 115 "common/window.cpp", 116 117 # declaration 118 "components/declaration/badge/badge_declaration.cpp", 119 "components/declaration/button/button_declaration.cpp", 120 "components/declaration/canvas/canvas_declaration.cpp", 121 "components/declaration/clock/clock_declaration.cpp", 122 "components/declaration/common/declaration.cpp", 123 "components/declaration/common/declaration_constants.cpp", 124 "components/declaration/common/declaration_creator_manager.cpp", 125 "components/declaration/common/event.cpp", 126 "components/declaration/div/div_declaration.cpp", 127 "components/declaration/image/image_animator_declaration.cpp", 128 "components/declaration/input/input_declaration.cpp", 129 "components/declaration/piece/piece_declaration.cpp", 130 "components/declaration/qrcode/qrcode_declaration.cpp", 131 "components/declaration/richtext/rich_text_declaration.cpp", 132 "components/declaration/search/search_declaration.cpp", 133 "components/declaration/side_bar/side_bar_declaration.cpp", 134 "components/declaration/span/span_declaration.cpp", 135 "components/declaration/svg/svg_animate_declaration.cpp", 136 "components/declaration/svg/svg_base_declaration.cpp", 137 "components/declaration/svg/svg_circle_declaration.cpp", 138 "components/declaration/svg/svg_declaration.cpp", 139 "components/declaration/svg/svg_ellipse_declaration.cpp", 140 "components/declaration/svg/svg_fe_blend_declaration.cpp", 141 "components/declaration/svg/svg_fe_colormatrix_declaration.cpp", 142 "components/declaration/svg/svg_fe_component_transfer_declaration.cpp", 143 "components/declaration/svg/svg_fe_composite_declaration.cpp", 144 "components/declaration/svg/svg_fe_declaration.cpp", 145 "components/declaration/svg/svg_fe_flood_declaration.cpp", 146 "components/declaration/svg/svg_fe_func_declaration.cpp", 147 "components/declaration/svg/svg_fe_gaussianblur_declaration.cpp", 148 "components/declaration/svg/svg_fe_merge_declaration.cpp", 149 "components/declaration/svg/svg_fe_merge_node_declaration.cpp", 150 "components/declaration/svg/svg_fe_offset_declaration.cpp", 151 "components/declaration/svg/svg_filter_declaration.cpp", 152 "components/declaration/svg/svg_gradient_declaration.cpp", 153 "components/declaration/svg/svg_image_declaration.cpp", 154 "components/declaration/svg/svg_line_declaration.cpp", 155 "components/declaration/svg/svg_mask_declaration.cpp", 156 "components/declaration/svg/svg_path_declaration.cpp", 157 "components/declaration/svg/svg_pattern_declaration.cpp", 158 "components/declaration/svg/svg_polygon_declaration.cpp", 159 "components/declaration/svg/svg_rect_declaration.cpp", 160 "components/declaration/svg/svg_stop_declaration.cpp", 161 "components/declaration/svg/svg_text_declaration.cpp", 162 "components/declaration/svg/svg_text_path_declaration.cpp", 163 "components/declaration/swiper/swiper_declaration.cpp", 164 "components/declaration/text/text_declaration.cpp", 165 "components/declaration/textarea/textarea_declaration.cpp", 166 "components/declaration/textfield/textfield_declaration.cpp", 167 "components/declaration/texttimer/texttimer_declaration.cpp", 168 "components/declaration/web/web_declaration.cpp", 169 "components/declaration/xcomponent/xcomponent_declaration.cpp", 170 171 # gestures 172 "gestures/click_recognizer.cpp", 173 "gestures/drag_event.cpp", 174 "gestures/drag_recognizer.cpp", 175 "gestures/exclusive_recognizer.cpp", 176 "gestures/gesture_recognizer.cpp", 177 "gestures/gesture_referee.cpp", 178 "gestures/long_press_recognizer.cpp", 179 "gestures/multi_fingers_recognizer.cpp", 180 "gestures/pan_recognizer.cpp", 181 "gestures/parallel_recognizer.cpp", 182 "gestures/pinch_recognizer.cpp", 183 "gestures/press_recognizer.cpp", 184 "gestures/raw_recognizer.cpp", 185 "gestures/rotation_recognizer.cpp", 186 "gestures/sequenced_recognizer.cpp", 187 "gestures/single_child_gesture.cpp", 188 "gestures/slide_recognizer.cpp", 189 "gestures/swipe_recognizer.cpp", 190 "gestures/timeout_recognizer.cpp", 191 "gestures/velocity_tracker.cpp", 192 193 # declarative 194 "gestures/gesture_group.cpp", 195 "gestures/long_press_gesture.cpp", 196 "gestures/pan_gesture.cpp", 197 "gestures/pinch_gesture.cpp", 198 "gestures/rotation_gesture.cpp", 199 "gestures/slide_gesture.cpp", 200 "gestures/tap_gesture.cpp", 201 "gestures/timeout_gesture.cpp", 202 203 # event 204 "event/back_end_event_manager.cpp", 205 "event/event_convertor.cpp", 206 "event/key_event.cpp", 207 "event/key_event_recognizer.cpp", 208 "event/mouse_event.cpp", 209 "event/mouse_raw_recognizer.cpp", 210 211 # focus 212 "focus/focus_node.cpp", 213 214 # image 215 "image/animated_image_player.cpp", 216 "image/image_cache.cpp", 217 "image/image_compressor.cpp", 218 "image/image_file_cache.cpp", 219 "image/image_loader.cpp", 220 "image/image_object.cpp", 221 "image/image_object_animated.cpp", 222 "image/image_object_svg.cpp", 223 "image/image_provider.cpp", 224 "image/image_source_info.cpp", 225 226 # textfield 227 "common/ime/text_editing_value.cpp", 228 "common/ime/text_input_action.cpp", 229 "common/ime/text_input_client.cpp", 230 "common/ime/text_input_configuration.cpp", 231 "common/ime/text_input_connection.cpp", 232 "common/ime/text_input_formatter.cpp", 233 "common/ime/text_input_proxy.cpp", 234 "common/ime/text_input_type.cpp", 235 236 # recorder 237 "common/recorder/event_config.cpp", 238 "common/recorder/event_controller.cpp", 239 "common/recorder/event_recorder.cpp", 240 "common/recorder/exposure_processor.cpp", 241 "common/recorder/node_data_cache.cpp", 242 243 # text 244 "text/text_emoji_processor.cpp", 245 ] 246 247 if (platform == "ohos" || platform == "ohos_ng") { 248 sources -= [ "common/anr_thread.cpp" ] 249 } 250 251 # add sources needed by phone and TV. wearable like watch do not need them 252 if (!is_wearable_product) { 253 sources += [ 254 "event/multimodal/multimodal_manager.cpp", 255 "event/multimodal/multimodal_scene.cpp", 256 ] 257 } 258 259 # add sources needed by phone, tv and wearable. previews do not need them 260 if (defined(config.connect_server_support) && 261 config.connect_server_support) { 262 if (use_ios) { 263 include_dirs += [ "$ark_toolchain_path" ] 264 } 265 sources += [ "common/connect_server_manager.cpp" ] 266 } 267 268 if (defined(config.hdc_register_support) && config.hdc_register_support) { 269 sources += [ "common/hdc_register.cpp" ] 270 } 271 272 configs = [ "$ace_root:ace_config" ] 273 274 deps = [ 275 "pipeline:ace_core_pipeline_$platform", 276 "pipeline_ng:ace_core_pipeline_ng_$platform", 277 ] 278 279 external_deps = [] 280 if (use_hilog) { 281 external_deps += [ "hilog:libhilog" ] 282 } 283 if (defined(config.build_for_preview) && config.build_for_preview) { 284 sources -= [ "common/task_runner_adapter_impl.cpp" ] 285 } 286 287 deps += [ 288 "$ace_root/frameworks/core/components/ability_component:ace_core_components_ability_$platform", 289 "$ace_root/frameworks/core/components/align:ace_core_components_align_$platform", 290 "$ace_root/frameworks/core/components/arc:ace_core_components_arc_$platform", 291 "$ace_root/frameworks/core/components/badge:ace_core_components_badge_$platform", 292 "$ace_root/frameworks/core/components/box:ace_core_components_box_$platform", 293 "$ace_root/frameworks/core/components/bubble:ace_core_components_bubble_$platform", 294 "$ace_root/frameworks/core/components/button:ace_core_components_button_$platform", 295 "$ace_root/frameworks/core/components/calendar:ace_core_components_calendar_$platform", 296 "$ace_root/frameworks/core/components/chart:ace_core_components_chart_$platform", 297 "$ace_root/frameworks/core/components/checkable:ace_core_components_checkable_$platform", 298 "$ace_root/frameworks/core/components/clip:ace_core_components_clip_$platform", 299 "$ace_root/frameworks/core/components/clock:ace_core_components_clock_$platform", 300 "$ace_root/frameworks/core/components/common:ace_core_components_common_$platform", 301 "$ace_root/frameworks/core/components/container_modal:ace_core_components_container_modal_$platform", 302 "$ace_root/frameworks/core/components/counter:ace_core_components_counter_$platform", 303 "$ace_root/frameworks/core/components/coverage:ace_core_components_coverage_$platform", 304 "$ace_root/frameworks/core/components/custom_dialog:ace_core_components_custom_dialog_$platform", 305 "$ace_root/frameworks/core/components/custom_paint:ace_core_components_custom_paint_$platform", 306 "$ace_root/frameworks/core/components/data_panel:ace_core_components_data_panel_$platform", 307 "$ace_root/frameworks/core/components/dialog:ace_core_components_dialog_$platform", 308 "$ace_root/frameworks/core/components/dialog_modal:ace_core_components_dialog_modal_$platform", 309 "$ace_root/frameworks/core/components/dialog_tween:ace_core_components_dialog_tween_$platform", 310 "$ace_root/frameworks/core/components/display:ace_core_components_display_$platform", 311 "$ace_root/frameworks/core/components/divider:ace_core_components_divider_$platform", 312 "$ace_root/frameworks/core/components/drag_bar:ace_core_components_drag_bar_$platform", 313 "$ace_root/frameworks/core/components/drop_filter:ace_core_components_drop_filter_$platform", 314 "$ace_root/frameworks/core/components/flex:ace_core_components_flex_$platform", 315 "$ace_root/frameworks/core/components/focus_animation:ace_core_components_focus_animation_$platform", 316 "$ace_root/frameworks/core/components/focus_collaboration:ace_core_components_focus_collaboration_$platform", 317 "$ace_root/frameworks/core/components/focusable:ace_core_components_focusable_$platform", 318 "$ace_root/frameworks/core/components/font:ace_core_components_font_$platform", 319 "$ace_root/frameworks/core/components/foreach:ace_core_components_foreach_$platform", 320 "$ace_root/frameworks/core/components/gesture_listener:ace_core_components_gesture_listener_$platform", 321 "$ace_root/frameworks/core/components/grid:ace_core_components_grid_$platform", 322 "$ace_root/frameworks/core/components/grid_layout:ace_core_components_grid_layout_$platform", 323 "$ace_root/frameworks/core/components/hyperlink:ace_core_components_hyperlink_$platform", 324 "$ace_root/frameworks/core/components/ifelse:ace_core_components_ifelse_$platform", 325 "$ace_root/frameworks/core/components/image:ace_core_components_image_$platform", 326 "$ace_root/frameworks/core/components/indexer:ace_core_components_indexer_$platform", 327 "$ace_root/frameworks/core/components/list:ace_core_components_list_$platform", 328 "$ace_root/frameworks/core/components/marquee:ace_core_components_marquee_$platform", 329 "$ace_root/frameworks/core/components/menu:ace_core_components_menu_$platform", 330 "$ace_root/frameworks/core/components/mouse_listener:ace_core_components_mouse_listener_$platform", 331 "$ace_root/frameworks/core/components/navigation_bar:ace_core_components_navigation_bar_$platform", 332 "$ace_root/frameworks/core/components/navigator:ace_core_components_navigator_$platform", 333 "$ace_root/frameworks/core/components/option:ace_core_components_option_$platform", 334 "$ace_root/frameworks/core/components/overlay:ace_core_components_overlay_$platform", 335 "$ace_root/frameworks/core/components/padding:ace_core_components_padding_$platform", 336 "$ace_root/frameworks/core/components/page:ace_core_components_page_$platform", 337 "$ace_root/frameworks/core/components/page_transition:ace_core_components_page_transition_$platform", 338 "$ace_root/frameworks/core/components/panel:ace_core_components_panel_$platform", 339 "$ace_root/frameworks/core/components/picker:ace_core_components_picker_$platform", 340 "$ace_root/frameworks/core/components/positioned:ace_core_components_positioned_$platform", 341 "$ace_root/frameworks/core/components/progress:ace_core_components_progress_$platform", 342 "$ace_root/frameworks/core/components/proxy:ace_core_components_proxy_$platform", 343 "$ace_root/frameworks/core/components/qrcode:ace_core_components_qrcode_$platform", 344 "$ace_root/frameworks/core/components/refresh:ace_core_components_refresh_$platform", 345 "$ace_root/frameworks/core/components/relative_container:ace_core_components_relative_container_$platform", 346 "$ace_root/frameworks/core/components/root:ace_core_components_root_$platform", 347 "$ace_root/frameworks/core/components/scoring:ace_core_components_scoring_$platform", 348 "$ace_root/frameworks/core/components/scroll:ace_core_components_scroll_$platform", 349 "$ace_root/frameworks/core/components/scroll_bar:ace_core_components_scroll_bar_$platform", 350 "$ace_root/frameworks/core/components/search:ace_core_components_search_$platform", 351 "$ace_root/frameworks/core/components/select_popup:ace_core_components_select_popup_$platform", 352 "$ace_root/frameworks/core/components/semi_modal:ace_core_components_semi_modal_$platform", 353 "$ace_root/frameworks/core/components/shadow:ace_core_components_shadow_$platform", 354 "$ace_root/frameworks/core/components/shape:ace_core_components_shape_$platform", 355 "$ace_root/frameworks/core/components/shared_transition:ace_core_components_shared_transition_$platform", 356 "$ace_root/frameworks/core/components/sheet:ace_core_components_sheet_$platform", 357 "$ace_root/frameworks/core/components/side_bar:ace_core_components_side_bar_$platform", 358 "$ace_root/frameworks/core/components/slider:ace_core_components_slider_$platform", 359 "$ace_root/frameworks/core/components/split_container:ace_core_components_split_container_$platform", 360 "$ace_root/frameworks/core/components/stack:ace_core_components_stack_$platform", 361 "$ace_root/frameworks/core/components/stage:ace_core_components_stage_$platform", 362 "$ace_root/frameworks/core/components/stepper:ace_core_components_stepper_$platform", 363 "$ace_root/frameworks/core/components/svg:ace_core_components_svg_$platform", 364 "$ace_root/frameworks/core/components/swiper:ace_core_components_swiper_$platform", 365 "$ace_root/frameworks/core/components/tab_bar:ace_core_components_tab_bar_$platform", 366 "$ace_root/frameworks/core/components/text:ace_core_components_text_$platform", 367 "$ace_root/frameworks/core/components/text_clock:ace_core_components_text_clock_$platform", 368 "$ace_root/frameworks/core/components/text_field:ace_core_components_text_field_$platform", 369 "$ace_root/frameworks/core/components/text_span:ace_core_components_text_span_$platform", 370 "$ace_root/frameworks/core/components/texttimer:ace_core_components_texttimer_$platform", 371 "$ace_root/frameworks/core/components/texttimer:ace_core_components_texttimer_$platform", 372 "$ace_root/frameworks/core/components/theme:ace_core_components_theme_$platform", 373 "$ace_root/frameworks/core/components/tip:ace_core_components_tip_$platform", 374 "$ace_root/frameworks/core/components/toast:ace_core_components_toast_$platform", 375 "$ace_root/frameworks/core/components/toggle:ace_core_components_toggle_$platform", 376 "$ace_root/frameworks/core/components/touch_listener:ace_core_components_touch_listener_$platform", 377 "$ace_root/frameworks/core/components/track:ace_core_components_track_$platform", 378 "$ace_root/frameworks/core/components/transform:ace_core_components_transform_$platform", 379 "$ace_root/frameworks/core/components/transition:ace_core_components_transition_$platform", 380 "$ace_root/frameworks/core/components/triangle:ace_core_components_triangle_$platform", 381 "$ace_root/frameworks/core/components/tween:ace_core_components_tween_$platform", 382 "$ace_root/frameworks/core/components/watch_slider:ace_core_components_watch_slider_$platform", 383 "$ace_root/frameworks/core/components/wrap:ace_core_components_wrap_$platform", 384 ] 385 386 deps += [ 387 "$ace_root/frameworks/core/components_v2/common:ace_core_components_common_v2_$platform", 388 "$ace_root/frameworks/core/components_v2/foreach:ace_core_components_foreach_v2_$platform", 389 "$ace_root/frameworks/core/components_v2/grid:ace_core_components_grid_v2_$platform", 390 "$ace_root/frameworks/core/components_v2/grid_layout:ace_core_components_grid_layout_v2_$platform", 391 "$ace_root/frameworks/core/components_v2/indexer:ace_core_components_indexer_v2_$platform", 392 "$ace_root/frameworks/core/components_v2/inspector:ace_core_components_inspector_v2_$platform", 393 "$ace_root/frameworks/core/components_v2/list:ace_core_components_list_v2_$platform", 394 "$ace_root/frameworks/core/components_v2/pattern_lock:ace_core_components_pattern_lock_$platform", 395 "$ace_root/frameworks/core/components_v2/swiper:ace_core_components_swiper_v2_$platform", 396 "$ace_root/frameworks/core/components_v2/tabs:ace_core_components_tabs_v2_$platform", 397 "$ace_root/frameworks/core/components_v2/water_flow:ace_core_components_water_flow_v2_$platform", 398 ] 399 400 deps += [ "$ace_root/frameworks/core/components_part_upd/foreach:ace_core_components_foreach_part_upd_$platform" ] 401 402 deps += [ 403 "$ace_root/frameworks/core/components_ng/animation:ace_core_components_animation_ng_$platform", 404 "$ace_root/frameworks/core/components_ng/base:ace_core_components_base_ng_$platform", 405 "$ace_root/frameworks/core/components_ng/event:ace_core_components_event_ng_$platform", 406 "$ace_root/frameworks/core/components_ng/gestures:ace_core_components_gestures_ng_$platform", 407 "$ace_root/frameworks/core/components_ng/image_provider:ace_core_components_image_provider_ng_$platform", 408 "$ace_root/frameworks/core/components_ng/layout:ace_core_components_layout_ng_$platform", 409 "$ace_root/frameworks/core/components_ng/manager:ace_core_components_manager_ng_$platform", 410 "$ace_root/frameworks/core/components_ng/pattern:ace_core_components_pattern_ng_$platform", 411 "$ace_root/frameworks/core/components_ng/property:ace_core_components_property_ng_$platform", 412 "$ace_root/frameworks/core/components_ng/render:ace_core_components_render_ng_$platform", 413 "$ace_root/frameworks/core/components_ng/svg:ace_core_components_svg_ng_$platform", 414 "$ace_root/frameworks/core/components_ng/syntax:ace_core_components_syntax_ng_$platform", 415 ] 416 417 deps += [ 418 "$ace_root/frameworks/core/components_ng/pattern/patternlock:ace_core_components_patternlock_pattern_ng_$platform", 419 "$ace_root/frameworks/core/components_ng/pattern/qrcode:ace_core_components_qrcode_pattern_ng_$platform", 420 "$ace_root/frameworks/core/components_ng/pattern/rich_editor:ace_core_components_rich_editor_pattern_ng_$platform", 421 "$ace_root/frameworks/core/components_ng/pattern/security_component:ace_core_components_security_component_pattern_ng_$platform", 422 "$ace_root/frameworks/core/components_ng/pattern/text_field:ace_core_components_text_field_pattern_ng_$platform", 423 ] 424 425 if (defined(config.model_component_support) && 426 config.model_component_support) { 427 deps += [ "$ace_root/frameworks/core/components_ng/pattern/model:ace_core_components_model_pattern_ng_$platform" ] 428 } 429 430 if (defined(config.enable_ability_component) && 431 config.enable_ability_component) { 432 deps += [ "$ace_root/frameworks/core/components_ng/pattern/ability_component:ace_core_components_ability_component_pattern_ng_$platform" ] 433 } 434 if (defined(config.enable_image_compression) && 435 config.enable_image_compression) { 436 external_deps += [ "opencl-headers:libcl" ] 437 defines += [ "ENABLE_OPENCL" ] 438 } 439 440 if (current_os == "mingw" || current_os == "mac") { 441 sources -= [ "common/watch_dog.cpp" ] 442 sources += [ "common/watch_dog_mingw.cpp" ] 443 } 444 445 if (defined(config.enable_rosen_backend) && config.enable_rosen_backend) { 446 sources += [ 447 "animation/native_curve_helper.cpp", 448 "common/rosen/rosen_convert_helper.cpp", 449 ] 450 if (is_ohos) { 451 external_deps += [ "graphic_2d:libtexgine" ] 452 if (enable_graphic_text_gine) { 453 external_deps += [ "graphic_2d:rosen_text" ] 454 } 455 defines += [ "TEXGINE_SUPPORT_FOR_OHOS" ] 456 } 457 if (is_arkui_x) { 458 deps += [ 459 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics_source_$platform", 460 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client_static", 461 ] 462 } else { 463 if (ace_use_rosen_drawing) { 464 external_deps += [ "graphic_2d:2d_graphics" ] 465 } 466 external_deps += [ "graphic_2d:librender_service_client" ] 467 } 468 } 469 470 if (!use_mingw_win && !use_mac && !is_wearable_product && 471 !is_ohos_standard_system && !use_linux) { 472 deps += [ "$ace_root/frameworks/core/components/rich_text:ace_core_components_rich_text_$platform" ] 473 } 474 475 if (defined(config.web_components_support) && 476 config.web_components_support && !is_arkui_x) { 477 deps += [ 478 "$ace_root/frameworks/core/components/text_overlay:ace_core_components_text_overlay_for_web_$platform", 479 "$ace_root/frameworks/core/components/web:ace_core_components_web_$platform", 480 "$ace_root/frameworks/core/components_ng/pattern/web:ace_core_components_web_pattern_ng_$platform", 481 ] 482 } else { 483 deps += [ "$ace_root/frameworks/core/components/text_overlay:ace_core_components_text_overlay_$platform" ] 484 } 485 486 # xcomponent components supports phone, TV and wearable except PC Preview 487 if (defined(config.xcomponent_components_support) && 488 config.xcomponent_components_support) { 489 deps += [ "$ace_root/frameworks/core/components/xcomponent:ace_core_components_xcomponent_$platform" ] 490 deps += [ "$ace_root/frameworks/core/components_ng/pattern/xcomponent:ace_core_components_xcomponent_pattern_ng_$platform" ] 491 } 492 493 if (defined(config.enable_ability_component) && 494 config.enable_ability_component) { 495 deps += [ "$ace_root/frameworks/core/components_v2/ability_component:ace_core_components_ability_v2_$platform" ] 496 } 497 498 if (defined(config.apng_image_support) && config.apng_image_support) { 499 defines += [ "APNG_IMAGE_SUPPORT" ] 500 deps += [ "$ace_root/frameworks/core/image/apng:ace_core_apng_$platform" ] 501 } 502 503 if (defined(config.form_components_support) && 504 config.form_components_support) { 505 if (!use_mingw_win && !use_mac && !use_linux) { 506 sources += [ "common/form_manager.cpp" ] 507 deps += [ 508 "$ace_root/frameworks/core/components/form:ace_core_components_form_$platform", 509 "$ace_root/frameworks/core/components_ng/pattern/form:ace_core_components_form_pattern_ng_$platform", 510 ] 511 external_deps += [ 512 "ability_base:base", 513 "ability_base:want", 514 "form_fwk:form_manager", 515 ] 516 } 517 } 518 519 if (defined(config.remote_window_support) && config.remote_window_support) { 520 if (!use_mingw_win && !use_mac && !use_linux) { 521 deps += [ 522 "$ace_root/frameworks/core/components/remote_window:ace_core_components_remote_window_$platform", 523 "$ace_root/frameworks/core/components_ng/pattern/remote_window:ace_core_components_remote_window_pattern_ng_$platform", 524 ] 525 } 526 } 527 528 if (defined(config.build_container_scope_lib) && 529 config.build_container_scope_lib) { 530 sources -= [ "common/container_scope.cpp" ] 531 if (is_arkui_x) { 532 deps += [ "$ace_napi:ace_container_scope_static" ] 533 } else { 534 external_deps += [ "napi:ace_container_scope" ] 535 } 536 } 537 538 if (defined(config.plugin_components_support) && 539 config.plugin_components_support) { 540 deps += [ 541 "$ace_root/frameworks/core/components/plugin:ace_core_components_plugin_$platform", 542 "$ace_root/frameworks/core/components_ng/pattern/plugin:ace_core_components_plugin_pattern_ng_$platform", 543 ] 544 sources += [ "common/plugin_manager.cpp" ] 545 external_deps += [ "c_utils:utils" ] 546 } 547 548 if (defined(config.preview_support) && config.preview_support) { 549 deps += [ "$ace_root/frameworks/core/components_ng/pattern/preview_mock:ace_core_components_preview_mock_pattern_ng_$platform" ] 550 } 551 552 if (is_arkui_x) { 553 include_dirs += [ 554 "//foundation/appframework/ability/ability_runtime/cross_platform/frameworks/native/base/event_handler/include", 555 "//foundation/appframework/ability/ability_runtime/cross_platform/interfaces/inner_api/error", 556 ] 557 } 558 if (!is_wearable_product) { 559 deps += [ 560 "$ace_root/frameworks/core/components/multimodal:ace_core_components_multimodal_$platform", 561 "$ace_root/frameworks/core/components/piece:ace_core_components_piece_$platform", 562 "$ace_root/frameworks/core/components/popup:ace_core_components_popup_$platform", 563 "$ace_root/frameworks/core/components/rating:ace_core_components_rating_$platform", 564 "$ace_root/frameworks/core/components/select:ace_core_components_select_$platform", 565 "$ace_root/frameworks/core/components/tool_bar:ace_core_components_tool_bar_$platform", 566 ] 567 if (enable_player_framework) { 568 deps += [ "$ace_root/frameworks/core/components/video:ace_core_components_video_$platform" ] 569 if (enable_camera_framework) { 570 deps += [ "$ace_root/frameworks/core/components/camera:ace_core_components_camera_$platform" ] 571 } 572 } 573 } 574 575 if ((current_os == "mingw" || current_os == "mac" || 576 current_os == "linux") && defined(config.enable_rosen_backend) && 577 config.enable_rosen_backend) { 578 sources += [ 579 # rs impl 580 "common/rosen/rosen_asset_manager.cpp", 581 "common/rosen/rosen_window.cpp", 582 ] 583 external_deps += [ "libuv:uv" ] 584 } 585 586 if (defined(config.window_scene_support) && config.window_scene_support) { 587 deps += [ 588 "$ace_root/frameworks/core/components_ng/pattern/ui_extension:ace_core_components_ui_extension_pattern_ng_$platform", 589 "$ace_root/frameworks/core/components_ng/pattern/window_scene:ace_core_components_window_scene_$platform", 590 ] 591 } 592 593 if (defined(config.use_platform_font) && config.use_platform_font) { 594 defines += [ "USE_PLATFORM_FONT" ] 595 sources += [ "common/font/font_platform_proxy.cpp" ] 596 } 597 598 # arkoala C interface 599 deps += [ "$ace_root/frameworks/core/interfaces/native:ace_core_interfaces_native_node_$platform" ] 600 601 cflags_cc = [] 602 cflags_cc += invoker.cflags_cc 603 } 604} 605 606# build ng core sources 607template("ace_core_ng_source_set") { 608 forward_variables_from(invoker, "*") 609 610 ohos_source_set(target_name) { 611 if (current_os == "ohos") { 612 sanitize = { 613 integer_overflow = true 614 boundary_sanitize = true 615 debug = ace_sanitize_debug 616 } 617 } 618 subsystem_name = ace_engine_subsystem 619 part_name = ace_engine_part 620 defines += invoker.defines 621 platform = invoker.platform 622 623 # add common source file needed by all product platform here 624 sources = [ 625 # accessibility 626 "accessibility/accessibility_manager_ng.cpp", 627 "accessibility/accessibility_node.cpp", 628 "accessibility/accessibility_session_adapter.cpp", 629 "accessibility/accessibility_utils.cpp", 630 "accessibility/native_interface_accessibility_impl.cpp", 631 "accessibility/native_interface_accessibility_provider.cpp", 632 633 # animation 634 "animation/animatable_data.cpp", 635 "animation/animatable_properties.cpp", 636 "animation/animation_pub.cpp", 637 "animation/animation_util.cpp", 638 "animation/animator.cpp", 639 "animation/animator_group.cpp", 640 "animation/anticipate_curve.cpp", 641 "animation/bilateral_spring_adapter.cpp", 642 "animation/bilateral_spring_node.cpp", 643 "animation/chain_animation.cpp", 644 "animation/cubic_curve.cpp", 645 "animation/curves.cpp", 646 "animation/friction_motion.cpp", 647 "animation/property_animation.cpp", 648 "animation/scheduler.cpp", 649 "animation/scroll_motion.cpp", 650 "animation/simple_spring_adapter.cpp", 651 "animation/simple_spring_chain.cpp", 652 "animation/simple_spring_node.cpp", 653 "animation/spring_animation.cpp", 654 "animation/spring_curve.cpp", 655 "animation/spring_model.cpp", 656 "animation/spring_motion.cpp", 657 "animation/svg_animate.cpp", 658 659 # common 660 "common/ace_application_info.cpp", 661 "common/ace_engine.cpp", 662 "common/ace_engine_ext.cpp", 663 "common/agingadapation/aging_adapation_dialog_util.cpp", 664 "common/anr_thread.cpp", 665 "common/asset_manager_impl.cpp", 666 "common/card_scope.cpp", 667 "common/clipboard/clipboard_proxy.cpp", 668 "common/container.cpp", 669 "common/container_scope.cpp", 670 "common/environment/environment_proxy.cpp", 671 "common/event_dump.cpp", 672 "common/event_manager.cpp", 673 "common/event_manager_pen.cpp", 674 "common/focus_animation_manager.cpp", 675 "common/font_loader.cpp", 676 "common/font_manager.cpp", 677 "common/frontend.cpp", 678 "common/platform_bridge.cpp", 679 "common/render_boundary_manager.cpp", 680 "common/resource/resource_manager.cpp", 681 "common/resource/resource_wrapper.cpp", 682 "common/sharedata/share_data.cpp", 683 "common/storage/storage_proxy.cpp", 684 "common/task_executor_impl.cpp", 685 "common/task_runner_adapter_factory.cpp", 686 "common/task_runner_adapter_impl.cpp", 687 "common/task_runners.cpp", 688 "common/text_field_manager.cpp", 689 "common/thread_checker.cpp", 690 "common/thread_container.cpp", 691 "common/thread_model_impl.cpp", 692 "common/vibrator/vibrator_proxy.cpp", 693 "common/watch_dog.cpp", 694 "common/window.cpp", 695 696 # event 697 "event/back_end_event_manager.cpp", 698 "event/event_convertor.cpp", 699 "event/key_event.cpp", 700 "event/key_event_recognizer.cpp", 701 "event/mouse_event.cpp", 702 "event/mouse_raw_recognizer.cpp", 703 704 # gestures 705 "gestures/click_recognizer.cpp", 706 "gestures/drag_event.cpp", 707 "gestures/drag_recognizer.cpp", 708 "gestures/exclusive_recognizer.cpp", 709 "gestures/gesture_recognizer.cpp", 710 "gestures/gesture_referee.cpp", 711 "gestures/long_press_recognizer.cpp", 712 "gestures/multi_fingers_recognizer.cpp", 713 "gestures/pan_recognizer.cpp", 714 "gestures/parallel_recognizer.cpp", 715 "gestures/pinch_recognizer.cpp", 716 "gestures/press_recognizer.cpp", 717 "gestures/raw_recognizer.cpp", 718 "gestures/rotation_recognizer.cpp", 719 "gestures/sequenced_recognizer.cpp", 720 "gestures/single_child_gesture.cpp", 721 "gestures/slide_recognizer.cpp", 722 "gestures/swipe_recognizer.cpp", 723 "gestures/timeout_recognizer.cpp", 724 "gestures/velocity_tracker.cpp", 725 726 # declarative gestures 727 "gestures/gesture_group.cpp", 728 "gestures/long_press_gesture.cpp", 729 "gestures/pan_gesture.cpp", 730 "gestures/pinch_gesture.cpp", 731 "gestures/rotation_gesture.cpp", 732 "gestures/slide_gesture.cpp", 733 "gestures/tap_gesture.cpp", 734 "gestures/timeout_gesture.cpp", 735 736 # pipeline 737 "pipeline/base/constants.cpp", 738 "pipeline/base/element_register.cpp", 739 "pipeline/base/related_node.cpp", 740 "pipeline/pipeline_base.cpp", 741 742 # image 743 "image/animated_image_player.cpp", 744 "image/image_cache.cpp", 745 "image/image_compressor.cpp", 746 "image/image_file_cache.cpp", 747 "image/image_loader.cpp", 748 "image/image_object.cpp", 749 "image/image_object_animated.cpp", 750 "image/image_object_svg.cpp", 751 "image/image_provider.cpp", 752 "image/image_source_info.cpp", 753 754 # textfield 755 "common/ime/text_editing_value.cpp", 756 "common/ime/text_input_action.cpp", 757 "common/ime/text_input_client.cpp", 758 "common/ime/text_input_configuration.cpp", 759 "common/ime/text_input_connection.cpp", 760 "common/ime/text_input_formatter.cpp", 761 "common/ime/text_input_proxy.cpp", 762 "common/ime/text_input_type.cpp", 763 764 # properties 765 "components/common/painter/rosen_decoration_painter.cpp", 766 "components/common/properties/alignment.cpp", 767 "components/common/properties/border.cpp", 768 "components/common/properties/border_edge.cpp", 769 "components/common/properties/border_image.cpp", 770 "components/common/properties/clip_path.cpp", 771 "components/common/properties/color.cpp", 772 "components/common/properties/decoration.cpp", 773 "components/common/properties/motion_path_evaluator.cpp", 774 "components/common/properties/shadow.cpp", 775 "components/common/properties/shadow_config.cpp", 776 "components/common/properties/text_style.cpp", 777 "components/common/properties/text_style_parser.cpp", 778 779 # layout 780 "components/common/layout/grid_column_info.cpp", 781 "components/common/layout/grid_container_info.cpp", 782 "components/common/layout/grid_system_manager.cpp", 783 "components/common/layout/screen_system_manager.cpp", 784 785 # v1 deps 786 "$root_out_dir/arkui/framework/core/components/theme/theme_constants_default.cpp", 787 "$root_out_dir/arkui/framework/core/components/theme/theme_constants_tv.cpp", 788 "components/common/painter/rosen_svg_painter.cpp", 789 "components/custom_paint/render_custom_paint_creator.cpp", 790 "components/custom_paint/render_offscreen_canvas_creator.cpp", 791 "components/custom_paint/rosen_render_custom_paint.cpp", 792 "components/dialog/dialog_theme.cpp", 793 "components/font/constants_converter.cpp", 794 "components/font/font_loader_creator.cpp", 795 "components/font/font_manager_creator.cpp", 796 "components/font/rosen_font_collection.cpp", 797 "components/font/rosen_font_loader.cpp", 798 "components/font/rosen_font_manager.cpp", 799 "components/panel/sliding_events.cpp", 800 "components/picker/picker_animation.cpp", 801 "components/picker/picker_data.cpp", 802 "components/picker/picker_theme.cpp", 803 "components/scroll/scrollable.cpp", 804 "components/theme/app_theme.cpp", 805 "components/theme/blur_style_theme.cpp", 806 "components/theme/icon_theme.cpp", 807 "components/theme/theme_attributes.cpp", 808 "components/theme/theme_constants.cpp", 809 "components/theme/theme_manager_impl.cpp", 810 "components/theme/theme_utils.cpp", 811 "components/video/resource/player.cpp", 812 813 # v2 inspector 814 "components_v2/grid/grid_event.cpp", 815 "components_v2/grid_layout/grid_container_utils.cpp", 816 "components_v2/inspector/inspector_constants.cpp", 817 "components_v2/inspector/utils.cpp", 818 819 #declaration 820 "components/declaration/common/declaration.cpp", 821 822 # recorder 823 "common/recorder/event_config.cpp", 824 "common/recorder/event_controller.cpp", 825 "common/recorder/event_recorder.cpp", 826 "common/recorder/exposure_processor.cpp", 827 "common/recorder/node_data_cache.cpp", 828 829 # text 830 "text/text_emoji_processor.cpp", 831 ] 832 include_dirs = [] 833 if (is_arkui_x) { 834 include_dirs += [ 835 "//foundation/appframework/ability/ability_runtime/cross_platform/frameworks/native/base/event_handler/include", 836 "//foundation/appframework/ability/ability_runtime/cross_platform/interfaces/inner_api/error", 837 "//foundation/graphic/graphic_2d/utils/color_manager/export", 838 "//foundation/multimedia/image_framework/interfaces/innerkits/include", 839 "//foundation/graphic/graphic_surface/interfaces/inner_api/surface", 840 ] 841 sources -= [ "components/declaration/common/declaration.cpp" ] 842 sources += [ 843 "animation/card_transition_controller.cpp", 844 "common/platformview/platform_view_proxy.cpp", 845 "components/common/properties/animatable_path.cpp", 846 "components/common/properties/border_image_edge.cpp", 847 "components/common/properties/color_factory.cpp", 848 "components/common/properties/edge.cpp", 849 "components/common/properties/page_transition_option.cpp", 850 "components/common/properties/scroll_bar.cpp", 851 "components/custom_paint/rosen_render_offscreen_canvas.cpp", 852 "components/declaration/common/event.cpp", 853 "components/svg/svg_transform.cpp", 854 "components/video/resource/ext_surface.cpp", 855 "components/video/resource/ext_texture.cpp", 856 "components/video/resource/resource.cpp", 857 ] 858 } 859 860 if (platform == "ohos" || platform == "ohos_ng") { 861 sources -= [ "common/anr_thread.cpp" ] 862 } 863 864 configs = [ "$ace_root:ace_config" ] 865 866 deps = [ 867 "$ace_root/frameworks/core/components/theme:build_theme_code", 868 "pipeline_ng:ace_core_pipeline_ng_$platform", 869 ] 870 871 if (defined(config.build_for_preview) && config.build_for_preview) { 872 sources -= [ "common/task_runner_adapter_impl.cpp" ] 873 } 874 875 external_deps = [] 876 if (use_hilog) { 877 external_deps += [ "hilog:libhilog" ] 878 } 879 if (defined(config.remote_window_support) && config.remote_window_support) { 880 if (!use_mingw_win && !use_mac && !use_linux) { 881 deps += [ "$ace_root/frameworks/core/components_ng/pattern/remote_window:ace_core_components_remote_window_pattern_ng_$platform" ] 882 } 883 } 884 885 if (defined(config.build_container_scope_lib) && 886 config.build_container_scope_lib) { 887 sources -= [ "common/container_scope.cpp" ] 888 if (is_arkui_x) { 889 deps += [ "$ace_napi:ace_container_scope_static" ] 890 } else { 891 external_deps += [ "napi:ace_container_scope" ] 892 } 893 } 894 deps += [ 895 "$ace_root/frameworks/core/components_ng/animation:ace_core_components_animation_ng_$platform", 896 "$ace_root/frameworks/core/components_ng/base:ace_core_components_base_ng_$platform", 897 "$ace_root/frameworks/core/components_ng/event:ace_core_components_event_ng_$platform", 898 "$ace_root/frameworks/core/components_ng/gestures:ace_core_components_gestures_ng_$platform", 899 "$ace_root/frameworks/core/components_ng/image_provider:ace_core_components_image_provider_ng_$platform", 900 "$ace_root/frameworks/core/components_ng/layout:ace_core_components_layout_ng_$platform", 901 "$ace_root/frameworks/core/components_ng/manager:ace_core_components_manager_ng_$platform", 902 "$ace_root/frameworks/core/components_ng/pattern:ace_core_components_pattern_ng_$platform", 903 "$ace_root/frameworks/core/components_ng/pattern/rich_editor:ace_core_components_rich_editor_pattern_ng_$platform", 904 "$ace_root/frameworks/core/components_ng/pattern/text_field:ace_core_components_text_field_pattern_ng_$platform", 905 "$ace_root/frameworks/core/components_ng/property:ace_core_components_property_ng_$platform", 906 "$ace_root/frameworks/core/components_ng/render:ace_core_components_render_ng_$platform", 907 "$ace_root/frameworks/core/components_ng/svg:ace_core_components_svg_ng_$platform", 908 "$ace_root/frameworks/core/components_ng/syntax:ace_core_components_syntax_ng_$platform", 909 ] 910 911 if (defined(config.use_components_lib) && config.use_components_lib) { 912 deps += [ "$ace_root/frameworks/core/components_ng/common_napi_utils:ace_core_components_common_napi_utils_$platform" ] 913 } else { 914 deps += [ 915 "$ace_root/frameworks/core/components_ng/pattern/patternlock:ace_core_components_patternlock_pattern_ng_$platform", 916 "$ace_root/frameworks/core/components_ng/pattern/qrcode:ace_core_components_qrcode_pattern_ng_$platform", 917 ] 918 } 919 920 if (defined(config.enable_ability_component) && 921 config.enable_ability_component) { 922 deps += [ "$ace_root/frameworks/core/components_ng/pattern/ability_component:ace_core_components_ability_component_pattern_ng_$platform" ] 923 } 924 if (defined(config.web_components_support) && 925 config.web_components_support) { 926 if (!is_arkui_x) { 927 deps += [ "$ace_root/frameworks/core/components_ng/pattern/web:ace_core_components_web_pattern_ng_$platform" ] 928 sources += [ 929 "components/web/resource/web_client_impl.cpp", 930 "components/web/resource/web_configuration_observer.cpp", 931 "components/web/resource/web_delegate.cpp", 932 "components/web/resource/web_javascript_execute_callback.cpp", 933 "components/web/resource/web_javascript_result_callback.cpp", 934 "components/web/resource/web_resource.cpp", 935 "components/web/web_component.cpp", 936 ] 937 938 external_deps += [ 939 "ability_runtime:abilitykit_native", 940 "ability_runtime:app_context", 941 "ability_runtime:app_manager", 942 "c_utils:utils", 943 "init:libbegetutil", 944 "ipc:ipc_core", 945 "napi:ace_napi", 946 "webview:libnweb", 947 "window_manager:libwm", 948 ] 949 } 950 } 951 952 if (defined(config.form_components_support) && 953 config.form_components_support) { 954 if (!use_mingw_win && !use_mac && !use_linux) { 955 deps += [ "$ace_root/frameworks/core/components_ng/pattern/form:ace_core_components_form_pattern_ng_$platform" ] 956 } 957 } 958 if (defined(config.enable_rosen_backend) && config.enable_rosen_backend) { 959 sources += [ 960 "animation/native_curve_helper.cpp", 961 "common/rosen/rosen_convert_helper.cpp", 962 ] 963 if (is_ohos) { 964 external_deps += [ "graphic_2d:libtexgine" ] 965 if (enable_graphic_text_gine) { 966 external_deps += [ "graphic_2d:rosen_text" ] 967 } 968 defines += [ "TEXGINE_SUPPORT_FOR_OHOS" ] 969 } 970 if (is_arkui_x) { 971 deps += [ "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client_static" ] 972 } else { 973 external_deps += [ "graphic_2d:librender_service_client" ] 974 if (ace_use_rosen_drawing) { 975 external_deps += [ "graphic_2d:2d_graphics" ] 976 } 977 } 978 } 979 if (defined(config.window_scene_support) && config.window_scene_support) { 980 deps += [ 981 "$ace_root/frameworks/core/components_ng/pattern/ui_extension:ace_core_components_ui_extension_pattern_ng_$platform", 982 "$ace_root/frameworks/core/components_ng/pattern/window_scene:ace_core_components_window_scene_$platform", 983 ] 984 } 985 986 if (defined(config.xcomponent_components_support) && 987 config.xcomponent_components_support) { 988 deps += [ "$ace_root/frameworks/core/components_ng/pattern/xcomponent:ace_core_components_xcomponent_pattern_ng_$platform" ] 989 } 990 991 # add sources needed by phone, tv and wearable. previews do not need them 992 if (defined(config.connect_server_support) && 993 config.connect_server_support) { 994 if (use_ios) { 995 include_dirs += [ "$ark_toolchain_path" ] 996 } 997 sources += [ "common/connect_server_manager.cpp" ] 998 } 999 1000 if (defined(config.hdc_register_support) && config.hdc_register_support) { 1001 sources += [ "common/hdc_register.cpp" ] 1002 } 1003 1004 if (defined(config.plugin_components_support) && 1005 config.plugin_components_support) { 1006 deps += [ "$ace_root/frameworks/core/components_ng/pattern/plugin:ace_core_components_plugin_pattern_ng_$platform" ] 1007 sources += [ "common/plugin_manager.cpp" ] 1008 external_deps += [ "c_utils:utils" ] 1009 } 1010 1011 deps += [ "$ace_root/frameworks/core/components_ng/pattern/security_component:ace_core_components_security_component_pattern_ng_$platform" ] 1012 1013 if (defined(config.model_component_support) && 1014 config.model_component_support) { 1015 deps += [ "$ace_root/frameworks/core/components_ng/pattern/model:ace_core_components_model_pattern_ng_$platform" ] 1016 } 1017 1018 if (defined(config.enable_image_compression) && 1019 config.enable_image_compression) { 1020 external_deps += [ "opencl-headers:libcl" ] 1021 defines += [ "ENABLE_OPENCL" ] 1022 } 1023 1024 if (defined(config.use_platform_font) && config.use_platform_font) { 1025 defines += [ "USE_PLATFORM_FONT" ] 1026 sources += [ "common/font/font_platform_proxy.cpp" ] 1027 } 1028 1029 cflags_cc = [] 1030 cflags_cc += invoker.cflags_cc 1031 } 1032} 1033 1034foreach(item, ace_platforms) { 1035 ace_core_source_set("ace_core_" + item.name) { 1036 platform = item.name 1037 1038 if (defined(item.config)) { 1039 config = item.config 1040 } else { 1041 config = { 1042 } 1043 } 1044 1045 if (defined(config.defines)) { 1046 defines = config.defines 1047 } else { 1048 defines = [] 1049 } 1050 1051 if (defined(config.cflags_cc)) { 1052 cflags_cc = config.cflags_cc 1053 } else { 1054 cflags_cc = [] 1055 } 1056 } 1057 1058 ace_core_ng_source_set("ace_core_ng_" + item.name) { 1059 platform = item.name 1060 1061 if (defined(item.config)) { 1062 config = item.config 1063 } else { 1064 config = { 1065 } 1066 } 1067 1068 if (defined(config.defines)) { 1069 defines = config.defines 1070 } else { 1071 defines = [] 1072 } 1073 1074 if (defined(config.cflags_cc)) { 1075 cflags_cc = config.cflags_cc 1076 } else { 1077 cflags_cc = [] 1078 } 1079 } 1080} 1081