Revert "[Tizen] Revert "Use touch consumed return to set whether we process a gesture...
[platform/core/uifw/dali-core.git] / build / tizen / linker-test.cpp
1 /*
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #include "dali/public-api/dali-core.h"
19
20 #include <stdarg.h>
21 #include <cstdio>
22
23 // Link with TET Test application, need to redefine TET functions
24 extern "C"
25 {
26   void tet_infoline(const char* str)
27   {
28     puts(str);
29   }
30
31   void tet_printf(const char* str, ...)
32   {
33     va_list args;
34     va_start(args, str);
35     vprintf(str, args);
36     va_end(args);
37   }
38 }
39
40 #include "test-application.h"
41
42 /*****************************************************************************
43  * Test to see if dali is linking correctly.
44  * Only really tests that the internal function/method definitions exist and
45  * links to functions/methods in other libraries linked by Dali-Core.
46  * If a definition of the Public or Integration API does not exist, then it
47  * will not be checked here.
48  * Also ensures TET Test Application is kept up-to-date.
49  */
50
51 int main(int argc, char** argv)
52 {
53 #ifndef _ARCH_ARM_
54   Dali::TestApplication application;
55 #endif
56   return 0;
57 }