• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("../gn/config.gni")
16config("jsapp_config") {
17  cflags = [
18    "-std=c++17",
19    "-Wall",
20    "-Wno-deprecated-declarations",
21  ]
22  cflags_cc = cflags
23}
24
25ohos_static_library("jsapp_rich") {
26  configs = [ ":jsapp_config" ]
27  sources = [
28    "JsApp.cpp",
29    "rich/JsAppImpl.cpp",
30  ]
31  include_dirs = [
32    ".",
33    "rich/",
34    "../mock/rich/",
35    "../util/",
36    "../mock/",
37    "//third_party/jsoncpp/include/json/",
38  ]
39  include_dirs += os_include_dirs
40  deps = [ "//third_party/libwebsockets:websockets_static" ]
41}
42
43ohos_static_library("jsapp_lite") {
44  configs = [ ":jsapp_config" ]
45  sources = [
46    "JsApp.cpp",
47    "lite/JsAppImpl.cpp",
48    "lite/TimerTaskHandler.cpp",
49    "lite/ui_text_language.cpp",
50  ]
51  include_dirs = [
52    ".",
53    "lite/",
54    "../mock/lite/",
55    "../util/",
56    "../mock/",
57    "../cli",
58    "//third_party/jsoncpp/include/json/",
59    "//foundation/graphic/ui/interfaces/innerkits/",
60    "//foundation/graphic/ui/interfaces/kits/",
61    "//foundation/graphic/utils/interfaces/innerkits/",
62    "//foundation/graphic/utils/interfaces/kits/",
63    "//foundation/graphic/ui/frameworks/",
64    "//foundation/graphic/ui/frameworks/dock/",
65    "//foundation/graphic/ui/interfaces/innerkits/dock/",
66  ]
67  deps = [
68    "//foundation/arkui/ace_engine_lite/frameworks/targets/simulator:ace_lite",
69    "//third_party/libwebsockets:websockets_static",
70  ]
71}
72