Updated all code to new format
[platform/core/uifw/dali-adaptor.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 // EXTERNAL INCLUDES
19 #include <dali/devel-api/adaptor-framework/orientation.h>
20 #include <dali/public-api/dali-core.h>
21 #include <iostream>
22
23 // INTERNAL INCLUDES
24 #include <dali/integration-api/adaptor-framework/adaptor.h>
25 #include <dali/public-api/adaptor-framework/application.h>
26 #include <dali/public-api/adaptor-framework/timer.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   void Create(Application& app)
44   {
45   }
46 };
47
48 /*****************************************************************************/
49
50 int main(int argc, char** argv)
51 {
52   try
53   {
54     Application app = Application::New(&argc, &argv);
55
56     LinkerApp linkerApp(app);
57     app.MainLoop();
58   }
59   catch(...)
60   {
61     std::cout << "Exception caught";
62   }
63
64   return 0;
65 }