18bf80f4bSopenharmony_ci/*
28bf80f4bSopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd.
38bf80f4bSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
48bf80f4bSopenharmony_ci * you may not use this file except in compliance with the License.
58bf80f4bSopenharmony_ci * You may obtain a copy of the License at
68bf80f4bSopenharmony_ci *
78bf80f4bSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
88bf80f4bSopenharmony_ci *
98bf80f4bSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
108bf80f4bSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
118bf80f4bSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
128bf80f4bSopenharmony_ci * See the License for the specific language governing permissions and
138bf80f4bSopenharmony_ci * limitations under the License.
148bf80f4bSopenharmony_ci */
158bf80f4bSopenharmony_ci
168bf80f4bSopenharmony_ci#ifndef CORE__ECS_HELPER__PROPERTY_TOOLS__PROPERTY_MACROS_H
178bf80f4bSopenharmony_ci#define CORE__ECS_HELPER__PROPERTY_TOOLS__PROPERTY_MACROS_H
188bf80f4bSopenharmony_ci
198bf80f4bSopenharmony_ci#ifndef BEGIN_PROPERTY
208bf80f4bSopenharmony_ci// Include actual macros, with the core property metadatas.
218bf80f4bSopenharmony_ci#include "PropertyTools/core_metadata.inl"
228bf80f4bSopenharmony_ci#endif
238bf80f4bSopenharmony_ci
248bf80f4bSopenharmony_ci#ifdef IMPLEMENT_MANAGER
258bf80f4bSopenharmony_ci// Override the component declaration macros for "inline include" metadata definitions.
268bf80f4bSopenharmony_ci#undef BEGIN_COMPONENT
278bf80f4bSopenharmony_ci#undef ARRAY_VALUE
288bf80f4bSopenharmony_ci#undef VALUE
298bf80f4bSopenharmony_ci#undef DEFINE_PROPERTY
308bf80f4bSopenharmony_ci#undef DEFINE_BITFIELD_PROPERTY
318bf80f4bSopenharmony_ci#undef DEFINE_ARRAY_PROPERTY
328bf80f4bSopenharmony_ci#undef BEGIN_COMPONENT_MANAGER
338bf80f4bSopenharmony_ci#undef END_COMPONENT_MANAGER
348bf80f4bSopenharmony_ci#undef END_COMPONENT
358bf80f4bSopenharmony_ci#undef END_COMPONENT_EXT
368bf80f4bSopenharmony_ci#undef END_COMPONENT2
378bf80f4bSopenharmony_ci
388bf80f4bSopenharmony_ci#define BEGIN_COMPONENT(a, b)
398bf80f4bSopenharmony_ci#define ARRAY_VALUE(...)
408bf80f4bSopenharmony_ci#define VALUE(val)
418bf80f4bSopenharmony_ci#define DEFINE_PROPERTY(type, name, displayname, flags, value) DECL_PROPERTY2(COMPTYPE, name, displayname, flags)
428bf80f4bSopenharmony_ci#define DEFINE_BITFIELD_PROPERTY(type, name, displayname, flags, value, enumeration) \
438bf80f4bSopenharmony_ci    DECL_BITFIELD_PROPERTY(COMPTYPE, name, displayname, flags, enumeration)
448bf80f4bSopenharmony_ci#define DEFINE_ARRAY_PROPERTY(type, count, name, displayname, flags, value) \
458bf80f4bSopenharmony_ci    DECL_PROPERTY2(COMPTYPE, name, displayname, flags)
468bf80f4bSopenharmony_ci#define BEGIN_COMPONENT_MANAGER(a, b, c)
478bf80f4bSopenharmony_ci#define END_COMPONENT_MANAGER(a, b, c)
488bf80f4bSopenharmony_ci#define END_COMPONENT(a, b, c)
498bf80f4bSopenharmony_ci#define END_COMPONENT_EXT(a, b, c, d)
508bf80f4bSopenharmony_ci#endif
518bf80f4bSopenharmony_ci
528bf80f4bSopenharmony_ci#endif // CORE__ECS_HELPER__PROPERTY_TOOLS__PROPERTY_MACROS_H
53