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