# Copyright (c) 2022 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("//base/web/webview/web_aafwk.gni") import("//build/ohos.gni") config("nweb_test_config") { include_dirs = [ "ohos_nweb", "//base/web/webview/interfaces/innerkits/ohos_nweb", "//foundation/window/window_manager/interfaces/innerkits/wm", "//foundation/multimodalinput/input/interfaces/native/innerkits/event/include", "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include", ] cflags = [ "-Wall", "-Werror", "-g3", ] } ohos_executable("nweb_test") { install_enable = false sources = [ "ohos_nweb/nweb_downloadlistener_impl_test.cpp", "ohos_nweb/nweb_handler_impl_test.cpp", "ohos_nweb/nweb_handler_impl_test_for_intercept.cpp", "ohos_nweb/nweb_input_event_consumer_test.cpp", "ohos_nweb/nweb_javascript_result_callback_test.cpp", "ohos_nweb/nweb_js_dialog_impl_test.cpp", "ohos_nweb/ohos_nweb_test.cpp", ] configs = [ ":nweb_test_config" ] deps = [ "//base/web/webview/ohos_nweb:libnweb", "//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer", "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", "//foundation/window/window_manager/wm:libwm", "//third_party/zlib:libz", ] external_deps = [ "eventhandler:libeventhandler", "hiviewdfx_hilog_native:libhilog", "input:libmmi-client", ] part_name = "webview" subsystem_name = "web" } ohos_executable("web_render") { install_enable = false sources = [ "ohos_nweb/nweb_web_render.cpp" ] configs = [ ":nweb_test_config" ] external_deps = [ "hiviewdfx_hilog_native:libhilog" ] part_name = "webview" subsystem_name = "web" }