• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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")
15
16rosen_is_ohos = current_os == "ohos"
17rosen_is_android = current_os == "android"
18rosen_is_ios = current_os == "ios" || current_os == "tvos"
19rosen_is_mac = current_os == "mac"
20rosen_is_win = current_os == "win" || current_os == "mingw"
21rosen_is_linux = current_os == "linux"
22
23rs_common_define = []
24
25rosen_cross_platform =
26    current_os == "mac" || current_os == "mingw" || current_os == "linux"
27if (rosen_cross_platform) {
28  rs_common_define += [
29    "ROSEN_CROSS_PLATFORM",
30    "ROSEN_TRACE_DISABLE",
31  ]
32}
33
34if (rosen_is_ohos) {
35  rs_common_define += [ "ROSEN_OHOS" ]
36}
37
38if (rosen_is_android) {
39  rs_common_define += [ "ROSEN_ANDROID" ]
40}
41
42if (rosen_is_ios) {
43  rs_common_define += [ "ROSEN_IOS" ]
44}
45
46if (rosen_is_mac) {
47  rs_common_define += [ "ROSEN_MAC" ]
48}
49
50if (rosen_is_win) {
51  rs_common_define += [ "ROSEN_WIN" ]
52}
53
54if (rosen_is_linux) {
55  rs_common_define += [ "ROSEN_LINUX" ]
56}
57enable_export_macro = true
58
59rosen_root = "//foundation/graphic/graphic_2d/rosen"
60
61accessibility_root = "//foundation/barrierfree/accessibility"
62resourceschedule_root = "//foundation/resourceschedule/frame_aware_sched"
63