1 #ifndef DALI_ADAPTOR_COMMON_H
2 #define DALI_ADAPTOR_COMMON_H
5 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/common/dali-common.h>
25 * Definitions for shared library support.
27 * If a library is configured with --enable-exportall or --enable-debug
28 * then HIDE_DALI_INTERNALS is not defined, and nothing is hidden.
29 * If it is configured without these options (the default), then HIDE_INTERNALS
30 * is defined when building the library, visibility is automatically hidden, and the explicit
31 * defines below come into use.
32 * When building a library that uses DALI, HIDE_DALI_INTERNALS.
35 # ifndef HIDE_DALI_INTERNALS
36 # define DALI_ADAPTOR_API
38 # define DALI_ADAPTOR_API __attribute__ ((visibility ("default")))
42 #ifdef BUILDING_DALI_ADAPTOR
43 /** Visibility attribute to hide declarations */
44 # define DALI_ADAPTOR_API __declspec(dllexport)
46 /** Visibility attribute to hide declarations */
47 # define DALI_ADAPTOR_API __declspec(dllimport)
50 /** Visibility attribute to show declarations */
51 # define DALI_ADAPTOR_API
55 #endif //DALI_ADAPTOR_COMMON_H