• 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("//foundation/graphic/graphic_3d/lume/lume_config.gni")
16
17config("runtime_utils_api") {
18  include_dirs = [ "Util/include" ]
19  configs = [
20    "${LUME_CORE_PATH}:lume_base_api",
21    "${LUME_CORE_PATH}:lume_engine_api",
22  ]
23
24  #defines = []
25}
26
27ohos_source_set("runtime_utils_src") {
28  configs = [ ":runtime_utils_api" ]
29
30  sources = [
31    "Util/src/util/io_util.cpp",
32    "Util/src/util/json.cpp",
33    "Util/src/util/path_util.cpp",
34  ]
35
36  deps = []
37
38  external_deps = []
39  part_name = "graphic_3d"
40  subsystem_name = "graphic"
41}
42
43#ohos_static_library("runtime_utils") {
44#deps = [ ":runtime_utils_src" ]
45
46#  part_name = "graphic_3d"
47#  subsystem_name = "graphic"
48#}
49
50config("ecs_serializer_api") {
51  include_dirs = [ "EcsSerializer/include" ]
52  configs = [ ":runtime_utils_api" ]
53
54  #defines = []
55}
56
57config("ecs_serializer_config") {
58  configs = [ ":ecs_serializer_api" ]
59  include_dirs = [ "src" ]
60
61  #defines = [ ]
62
63  ldflags = []
64
65  cflags = [
66    "-Wno-unused-function",
67    "-Wno-unused-parameter",
68    "-Wno-sign-compare",
69    "-Wno-unused-variable",
70    "-Wno-unused-private-field",
71    "-Wno-tautological-unsigned-zero-compare",
72    "-Wno-logical-op-parentheses",
73    "-Wno-unused-local-typedef",
74    "-fvisibility=hidden",
75    "-ffunction-sections",
76    "-fdata-sections",
77    "-Wno-ignored-qualifiers",
78    "-fno-rtti",
79  ]
80  cflags_cc = [
81    "-std=c++17",
82    "-Wno-overloaded-virtual",
83    "-Wno-thread-safety-attributes",
84    "-Wno-missing-braces",
85  ]
86}
87
88ohos_source_set("ecs_serializer_src") {
89  public_configs = [
90    ":ecs_serializer_config",
91    "${LUME_RENDER_PATH}:lume_render_api",
92    "${LUME_CORE3D_PATH}:lume_3d_api",
93    "${LUME_CORE_PATH}:lume_component_help_config",
94  ]
95
96  sources = [
97    "EcsSerializer/src/ecs_serializer/asset_migration.cpp",
98    "EcsSerializer/src/ecs_serializer/asset_migration.h",
99    "EcsSerializer/src/ecs_serializer/ecs_asset_loader.cpp",
100    "EcsSerializer/src/ecs_serializer/ecs_asset_manager.cpp",
101    "EcsSerializer/src/ecs_serializer/ecs_serializer.cpp",
102    "EcsSerializer/src/ecs_serializer/entity_collection.cpp",
103  ]
104
105  public_deps = []
106
107  deps = [
108    #":runtime_utils",
109    "${LUME_CORE_PATH}/ecshelper:libAGPEcshelper",
110  ]
111
112  external_deps = [
113    #    "c_utils:utils",
114  ]
115  part_name = "graphic_3d"
116  subsystem_name = "graphic"
117}
118
119ohos_static_library("EcsSerializer") {
120  public_configs = [
121    ":runtime_utils_api",
122    ":ecs_serializer_api",
123  ]
124  deps = [
125    ":ecs_serializer_src",
126    ":runtime_utils_src",
127  ]
128
129  part_name = "graphic_3d"
130  subsystem_name = "graphic"
131}
132