Remove RenderSurface from Core
[platform/core/uifw/dali-adaptor.git] / build / tizen / linker-test.cpp
1 /*
2  * Copyright (c) 2020 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 // EXTERNAL INCLUDES
19 #include <iostream>
20 #include <dali/public-api/dali-core.h>
21 #include <dali/devel-api/adaptor-framework/orientation.h>
22
23 // INTERNAL INCLUDES
24 #include <dali/public-api/adaptor-framework/timer.h>
25 #include <dali/public-api/adaptor-framework/application.h>
26 #include <dali/integration-api/adaptor-framework/adaptor.h>
27
28 using namespace Dali;
29
30 /*****************************************************************************
31  * Test to see if the dali-adaptor is linking correctly.
32  */
33
34 class LinkerApp : public ConnectionTracker
35 {
36 public:
37   LinkerApp(Application &app)
38   {
39     app.InitSignal().Connect(this, &LinkerApp::Create);
40   }
41
42 public:
43
44   void Create(Application& app)
45   {
46   }
47 };
48
49 /*****************************************************************************/
50
51 int
52 main(int argc, char **argv)
53 {
54   try
55   {
56     Application app = Application::New(&argc, &argv);
57
58     LinkerApp linkerApp (app);
59     app.MainLoop();
60   }
61   catch(...)
62   {
63     std::cout << "Exception caught";
64   }
65
66   return 0;
67 }