diff options
author | Igor Murashkin <iam@google.com> | 2018-08-09 17:54:43 -0700 |
---|---|---|
committer | Igor Murashkin <iam@google.com> | 2018-08-10 11:59:25 -0700 |
commit | 5289ec110eaca1768c167e1b5fbe1a4602c3b49e (patch) | |
tree | d52b2960c70a980d3513cf51a820367a0a3693bf /configuration | |
parent | 7dfecaa23cfb56b360d683a301e6dd0144b15214 (diff) | |
download | google-fruit-5289ec110eaca1768c167e1b5fbe1a4602c3b49e.tar.gz |
android: Add build target 'libfruit'master-cuttlefish-testing-release
Also adds an android config (no rtti, no boost, no exceptions).
Change-Id: Ib7cce745ec009ca85e64420e8c7034c2e4bb7bdb
Diffstat (limited to 'configuration')
-rw-r--r-- | configuration/android/fruit/impl/fruit-config-base.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/configuration/android/fruit/impl/fruit-config-base.h b/configuration/android/fruit/impl/fruit-config-base.h new file mode 100644 index 0000000..678f7dd --- /dev/null +++ b/configuration/android/fruit/impl/fruit-config-base.h @@ -0,0 +1,72 @@ +/* + * Copyright 2014 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef FRUIT_CONFIG_BASE_H +#define FRUIT_CONFIG_BASE_H + +// Needed for all Clang versions (as of January 2016), not needed for GCC. +// This can also be defined for GCC, but it slightly slows down compile time of code using Fruit. +#define FRUIT_HAS_CLANG_ARBITRARY_OVERLOAD_RESOLUTION_BUG 1 + +// Whether the compiler defines std::max_align_t. +#define FRUIT_HAS_STD_MAX_ALIGN_T 1 + +// Whether the compiler defines ::max_align_t. +// Ignored if FRUIT_HAS_STD_MAX_ALIGN_T is set. +#define FRUIT_HAS_MAX_ALIGN_T 1 + +// Whether the compiler defines std::is_trivially_copyable. +#define FRUIT_HAS_STD_IS_TRIVIALLY_COPYABLE 1 + +// Whether the compiler defines __has_trivial_copy. +// Ignored if FRUIT_HAS_STD_IS_TRIVIALLY_COPYABLE is set. +#define FRUIT_HAS_HAS_TRIVIAL_COPY 1 + +// Whether the compiler defines __is_trivially_copyable. +// Ignored if FRUIT_HAS_STD_IS_TRIVIALLY_COPYABLE is set. +#define FRUIT_HAS_IS_TRIVIALLY_COPYABLE 1 + +// Whether the compiler defines std::is_trivially_copy_constructible. +#define FRUIT_HAS_STD_IS_TRIVIALLY_COPY_CONSTRUCTIBLE 1 + +// Whether typeid() is available. Typically, it is unless RTTI is disabled. +// Android-changed: Android does not use RTTI by default. +// #define FRUIT_HAS_TYPEID 1 + +// Whether typeid() is constexpr. Typically, it is except in MSVC. +#define FRUIT_HAS_CONSTEXPR_TYPEID 1 + +// Whether abi::__cxa_demangle() is available after including cxxabi.h. +#define FRUIT_HAS_CXA_DEMANGLE 1 + +// Android-changed: Android does not have boost library. +#define FRUIT_USES_BOOST 0 + +#define FRUIT_HAS_ALWAYS_INLINE_ATTRIBUTE 1 + +#define FRUIT_HAS_FORCEINLINE 0 + +#define FRUIT_HAS_ATTRIBUTE_DEPRECATED 0 + +#define FRUIT_HAS_GCC_ATTRIBUTE_DEPRECATED 1 + +#define FRUIT_HAS_DECLSPEC_DEPRECATED 0 + +#define FRUIT_HAS_MSVC_ASSUME 0 + +#define FRUIT_HAS_BUILTIN_UNREACHABLE 1 + +#endif // FRUIT_CONFIG_BASE_H |