• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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("preview_common.gni")
15
16# js engine common configs
17js_engines = []
18js_pa_support = false
19use_build_in_js_engine = true
20
21ark_engine = {
22  engine_name = "ark"
23  engine_path = "jsi"
24  engine_defines = [ "USE_ARK_ENGINE" ]
25}
26js_engines += [ ark_engine ]
27build_for_preview = true
28
29# windows platform defines and configs
30defines += [
31  "WINDOWS_PLATFORM",
32  "_USE_MATH_DEFINES",
33  "NOGDI",
34  "UNICODE",
35  "U_CHARSET_IS_UTF8=1",
36  "SK_BUILD_FOR_WIN",
37  "SK_BUILD_FONT_MGR_FOR_PREVIEW_WIN",
38]
39
40cflags_cc = [
41  "-std=c++17",
42  "-DWINVER=0x0601",
43  "-Wno-inconsistent-dllimport",
44  "-Wno-macro-redefined",
45  "-Wno-missing-braces",
46  "-Wno-thread-safety-attributes",
47  "-Wno-thread-safety-analysis",
48  "-Wno-ignored-attributes",
49  "-Wno-unknown-pragmas",
50  "-Wno-used-but-marked-unused",
51]
52
53platform_deps = [
54  "//foundation/arkui/ace_engine/adapter/preview/entrance:ace_preview_entrance_windows",
55  "//foundation/arkui/ace_engine/adapter/preview/external:preview_external_source_windows",
56  "//foundation/arkui/ace_engine/adapter/preview/inspector:ace_inspector_windows",
57  "//foundation/arkui/ace_engine/adapter/preview/osal:ace_osal_windows",
58]
59
60libace_target =
61    "//foundation/arkui/ace_engine/adapter/preview/build:libace_engine_windows"
62