Commit 24c8baf69f0196d4a9a6ad746b370d026532a585
Committed by
Adeel Kazmi
1 parent
c1ab3b4c
Improve application launching speed
To improve app launching speed on Tizen (using launchpad), Use -fPIE option instead -fPIC and attach DALI_EXPORT_API in front of each example's main function. This is the compare result between before and after patch. (On hawkP 2.4 / using hello-dalidemo that has one pushbutton on stage) | before Patch | After Patch | --------------------------------------------- | hello-dalidemo | hello-dalidemo | --------------------------------------------- | AVG MIN MAX | AVG MIN MAX | | 1134 1060 1188 | 291 250 337 | After patch, launching speed drops to 30% of before. Change-Id:I51a4f673d016f9278f867167dc2ff9f407ea6e7e
Showing
53 changed files
with
53 additions
and
57 deletions
build/tizen/CMakeLists.txt
| ... | ... | @@ -86,7 +86,7 @@ ENDFOREACH(flag) |
| 86 | 86 | |
| 87 | 87 | SET(DALI_DEMO_CFLAGS "-DDEMO_IMAGE_DIR=${DEMO_IMAGE_DIR} -DDEMO_MODEL_DIR=${DEMO_MODEL_DIR} -DDEMO_SCRIPT_DIR=${DEMO_SCRIPT_DIR} -DDEMO_THEME_PATH=${DEMO_THEME_PATH} -DDEMO_EXAMPLE_BIN=${DEMO_EXAMPLE_BIN} -DDEMO_LOCALE_DIR=${DEMO_LOCALE_DIR} -fvisibility=hidden -DHIDE_DALI_INTERNALS -DDEMO_LANG=${DEMO_LANG}") |
| 88 | 88 | |
| 89 | -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${REQUIRED_CFLAGS} ${DALI_DEMO_CFLAGS} -Werror -Wall") | |
| 89 | +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${REQUIRED_CFLAGS} ${DALI_DEMO_CFLAGS} -Werror -Wall -fPIE") | |
| 90 | 90 | SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}") |
| 91 | 91 | |
| 92 | 92 | INCLUDE_DIRECTORIES(${ROOT_SRC_DIR}) | ... | ... |
build/tizen/examples/CMakeLists.txt
| ... | ... | @@ -16,6 +16,6 @@ SUBDIRLIST(SUBDIRS ${EXAMPLES_SRC_DIR}) |
| 16 | 16 | FOREACH(EXAMPLE ${SUBDIRS}) |
| 17 | 17 | FILE(GLOB SRCS "${EXAMPLES_SRC_DIR}/${EXAMPLE}/*.cpp") |
| 18 | 18 | ADD_EXECUTABLE(${EXAMPLE}.example ${SRCS}) |
| 19 | - TARGET_LINK_LIBRARIES(${EXAMPLE}.example ${REQUIRED_PKGS_LDFLAGS}) | |
| 19 | + TARGET_LINK_LIBRARIES(${EXAMPLE}.example ${REQUIRED_PKGS_LDFLAGS} -pie) | |
| 20 | 20 | INSTALL(TARGETS ${EXAMPLE}.example DESTINATION ${BINDIR}) |
| 21 | 21 | ENDFOREACH(EXAMPLE) | ... | ... |
examples/atlas/atlas-example.cpp
| ... | ... | @@ -234,7 +234,7 @@ void RunTest( Application& application ) |
| 234 | 234 | |
| 235 | 235 | // Entry point for Linux & Tizen applications |
| 236 | 236 | // |
| 237 | -int main( int argc, char **argv ) | |
| 237 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 238 | 238 | { |
| 239 | 239 | gApplication = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 240 | 240 | ... | ... |
examples/benchmark/benchmark.cpp
| ... | ... | @@ -525,7 +525,7 @@ void RunTest( Application& application ) |
| 525 | 525 | |
| 526 | 526 | // Entry point for Linux & Tizen applications |
| 527 | 527 | // |
| 528 | -int main( int argc, char **argv ) | |
| 528 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 529 | 529 | { |
| 530 | 530 | Application application = Application::New( &argc, &argv ); |
| 531 | 531 | ... | ... |
examples/blocks/blocks-example.cpp
examples/bubble-effect/bubble-effect-example.cpp
| ... | ... | @@ -319,8 +319,7 @@ RunTest(Application& app) |
| 319 | 319 | |
| 320 | 320 | /*****************************************************************************/ |
| 321 | 321 | |
| 322 | -int | |
| 323 | -main(int argc, char **argv) | |
| 322 | +int DALI_EXPORT_API main(int argc, char **argv) | |
| 324 | 323 | { |
| 325 | 324 | Application app = Application::New(&argc, &argv, DEMO_THEME_PATH); |
| 326 | 325 | ... | ... |
examples/builder/examples.cpp
examples/buttons/buttons-example.cpp
| ... | ... | @@ -544,7 +544,7 @@ void RunTest( Application& application ) |
| 544 | 544 | |
| 545 | 545 | // Entry point for Linux & Tizen applications |
| 546 | 546 | // |
| 547 | -int main( int argc, char **argv ) | |
| 547 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 548 | 548 | { |
| 549 | 549 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 550 | 550 | ... | ... |
examples/compressed-texture-formats/compressed-texture-formats-example.cpp
| ... | ... | @@ -131,7 +131,7 @@ void RunTest( Application& application ) |
| 131 | 131 | |
| 132 | 132 | // Entry point for Linux & Tizen applications |
| 133 | 133 | // |
| 134 | -int main( int argc, char **argv ) | |
| 134 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 135 | 135 | { |
| 136 | 136 | Application application = Application::New( &argc, &argv ); |
| 137 | 137 | ... | ... |
examples/cube-transition-effect/cube-transition-effect-example.cpp
| ... | ... | @@ -430,7 +430,7 @@ void CubeTransitionApp::OnKeyEvent(const KeyEvent& event) |
| 430 | 430 | } |
| 431 | 431 | |
| 432 | 432 | // Entry point for Linux & Tizen applications |
| 433 | -int main( int argc, char **argv ) | |
| 433 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 434 | 434 | { |
| 435 | 435 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 436 | 436 | CubeTransitionApp test( application ); | ... | ... |
examples/dissolve-effect/dissolve-effect-example.cpp
| ... | ... | @@ -441,7 +441,7 @@ bool DissolveEffectApp::OnTimerTick() |
| 441 | 441 | } |
| 442 | 442 | |
| 443 | 443 | // Entry point for Linux & Tizen applications |
| 444 | -int main( int argc, char **argv ) | |
| 444 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 445 | 445 | { |
| 446 | 446 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 447 | 447 | DissolveEffectApp test( application ); | ... | ... |
examples/effects-view/effects-view-example.cpp
| ... | ... | @@ -253,7 +253,7 @@ static void RunTest( Application& application ) |
| 253 | 253 | |
| 254 | 254 | /*****************************************************************************/ |
| 255 | 255 | |
| 256 | -int main(int argc, char **argv) | |
| 256 | +int DALI_EXPORT_API main(int argc, char **argv) | |
| 257 | 257 | { |
| 258 | 258 | Application application = Application::New(&argc, &argv, DEMO_THEME_PATH); |
| 259 | 259 | ... | ... |
examples/gradients/gradients-example.cpp
| ... | ... | @@ -178,7 +178,7 @@ void RunTest( Application& application ) |
| 178 | 178 | |
| 179 | 179 | // Entry point for Linux & Tizen applications |
| 180 | 180 | // |
| 181 | -int main( int argc, char **argv ) | |
| 181 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 182 | 182 | { |
| 183 | 183 | Application application = Application::New( &argc, &argv ); |
| 184 | 184 | ... | ... |
examples/hello-world/hello-world-example.cpp
| ... | ... | @@ -74,7 +74,7 @@ void RunTest( Application& application ) |
| 74 | 74 | |
| 75 | 75 | // Entry point for Linux & Tizen applications |
| 76 | 76 | // |
| 77 | -int main( int argc, char **argv ) | |
| 77 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 78 | 78 | { |
| 79 | 79 | Application application = Application::New( &argc, &argv ); |
| 80 | 80 | ... | ... |
examples/homescreen-benchmark/homescreen-benchmark.cpp
| ... | ... | @@ -677,7 +677,7 @@ void RunTest( Application& application, const HomescreenBenchmark::Config& confi |
| 677 | 677 | |
| 678 | 678 | // Entry point for Linux & Tizen applications |
| 679 | 679 | // |
| 680 | -int main( int argc, char **argv ) | |
| 680 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 681 | 681 | { |
| 682 | 682 | // default settings |
| 683 | 683 | HomescreenBenchmark::Config config; | ... | ... |
examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp
| ... | ... | @@ -759,7 +759,7 @@ void RunTest( Application& application ) |
| 759 | 759 | } |
| 760 | 760 | |
| 761 | 761 | // Entry point for Linux & Tizen applications |
| 762 | -int main( int argc, char **argv ) | |
| 762 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 763 | 763 | { |
| 764 | 764 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 765 | 765 | ... | ... |
examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp
| ... | ... | @@ -614,7 +614,7 @@ void RunTest( Application& application ) |
| 614 | 614 | } |
| 615 | 615 | |
| 616 | 616 | /** Entry point for Linux & Tizen applications */ |
| 617 | -int main( int argc, char **argv ) | |
| 617 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 618 | 618 | { |
| 619 | 619 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 620 | 620 | ... | ... |
examples/image-view-alpha-blending/image-view-alpha-blending-example.cpp
| ... | ... | @@ -122,7 +122,7 @@ void RunTest( Application& application ) |
| 122 | 122 | |
| 123 | 123 | // Entry point for Linux & Tizen applications |
| 124 | 124 | // |
| 125 | -int main( int argc, char **argv ) | |
| 125 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 126 | 126 | { |
| 127 | 127 | Application application = Application::New( &argc, &argv ); |
| 128 | 128 | ... | ... |
examples/image-view-pixel-area/image-view-pixel-area-example.cpp
| ... | ... | @@ -118,7 +118,7 @@ void RunTest( Application& application ) |
| 118 | 118 | |
| 119 | 119 | // Entry point for Linux & Tizen applications |
| 120 | 120 | // |
| 121 | -int main( int argc, char **argv ) | |
| 121 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 122 | 122 | { |
| 123 | 123 | Application application = Application::New( &argc, &argv ); |
| 124 | 124 | ... | ... |
examples/image-view-svg/image-view-svg-example.cpp
| ... | ... | @@ -234,7 +234,7 @@ void RunTest( Application& application ) |
| 234 | 234 | |
| 235 | 235 | // Entry point for Linux & Tizen applications |
| 236 | 236 | // |
| 237 | -int main( int argc, char **argv ) | |
| 237 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 238 | 238 | { |
| 239 | 239 | Application application = Application::New( &argc, &argv ); |
| 240 | 240 | ... | ... |
examples/image-view/image-view-example.cpp
| ... | ... | @@ -263,7 +263,7 @@ void RunTest( Application& application ) |
| 263 | 263 | |
| 264 | 264 | // Entry point for Linux & Tizen applications |
| 265 | 265 | // |
| 266 | -int main( int argc, char **argv ) | |
| 266 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 267 | 267 | { |
| 268 | 268 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 269 | 269 | ... | ... |
examples/item-view/item-view-example.cpp
examples/line-mesh/line-mesh-example.cpp
| ... | ... | @@ -346,7 +346,7 @@ void RunTest( Application& application ) |
| 346 | 346 | |
| 347 | 347 | // Entry point for Linux & SLP applications |
| 348 | 348 | // |
| 349 | -int main( int argc, char **argv ) | |
| 349 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 350 | 350 | { |
| 351 | 351 | Application application = Application::New( &argc, &argv ); |
| 352 | 352 | ... | ... |
examples/logging/logging-example.cpp
| ... | ... | @@ -710,7 +710,7 @@ void RunTest( Application& application ) |
| 710 | 710 | |
| 711 | 711 | // Entry point for Linux & Tizen applications |
| 712 | 712 | // |
| 713 | -int main( int argc, char **argv ) | |
| 713 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 714 | 714 | { |
| 715 | 715 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 716 | 716 | ... | ... |
examples/magnifier/magnifier-example.cpp
| ... | ... | @@ -411,7 +411,7 @@ void RunTest( Application& application ) |
| 411 | 411 | |
| 412 | 412 | // Entry point for Linux & Tizen applications |
| 413 | 413 | // |
| 414 | -int main( int argc, char **argv ) | |
| 414 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 415 | 415 | { |
| 416 | 416 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 417 | 417 | ... | ... |
examples/mesh-morph/mesh-morph-example.cpp
| ... | ... | @@ -358,7 +358,7 @@ void RunTest( Application& application ) |
| 358 | 358 | |
| 359 | 359 | // Entry point for Linux & SLP applications |
| 360 | 360 | // |
| 361 | -int main( int argc, char **argv ) | |
| 361 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 362 | 362 | { |
| 363 | 363 | Application application = Application::New( &argc, &argv ); |
| 364 | 364 | ... | ... |
examples/mesh-sorting/mesh-sorting-example.cpp
| ... | ... | @@ -336,7 +336,7 @@ void RunTest( Application& application ) |
| 336 | 336 | |
| 337 | 337 | // Entry point for Linux & SLP applications |
| 338 | 338 | // |
| 339 | -int main( int argc, char **argv ) | |
| 339 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 340 | 340 | { |
| 341 | 341 | Application application = Application::New( &argc, &argv ); |
| 342 | 342 | ... | ... |
examples/metaball-explosion/metaball-explosion-example.cpp
| ... | ... | @@ -749,7 +749,7 @@ void RunTest( Application& application ) |
| 749 | 749 | |
| 750 | 750 | // Entry point for Linux & Tizen applications |
| 751 | 751 | // |
| 752 | -int main( int argc, char **argv ) | |
| 752 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 753 | 753 | { |
| 754 | 754 | Application application = Application::New( &argc, &argv ); |
| 755 | 755 | ... | ... |
examples/metaball-refrac/metaball-refrac-example.cpp
| ... | ... | @@ -863,7 +863,7 @@ void RunTest( Application& application ) |
| 863 | 863 | |
| 864 | 864 | // Entry point for Linux & Tizen applications |
| 865 | 865 | // |
| 866 | -int main( int argc, char **argv ) | |
| 866 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 867 | 867 | { |
| 868 | 868 | Application application = Application::New( &argc, &argv ); |
| 869 | 869 | ... | ... |
examples/model3d-view/model3d-view-example.cpp
| ... | ... | @@ -306,7 +306,7 @@ void RunTest( Application& application ) |
| 306 | 306 | |
| 307 | 307 | // Entry point for Linux & Tizen applications |
| 308 | 308 | // |
| 309 | -int main( int argc, char **argv ) | |
| 309 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 310 | 310 | { |
| 311 | 311 | Application application = Application::New( &argc, &argv ); |
| 312 | 312 | ... | ... |
examples/motion-blur/motion-blur-example.cpp
| ... | ... | @@ -558,7 +558,7 @@ void RunTest(Application& app) |
| 558 | 558 | |
| 559 | 559 | // Entry point for Linux & Tizen applications |
| 560 | 560 | // |
| 561 | -int main(int argc, char **argv) | |
| 561 | +int DALI_EXPORT_API main(int argc, char **argv) | |
| 562 | 562 | { |
| 563 | 563 | Application app = Application::New(&argc, &argv, DEMO_THEME_PATH); |
| 564 | 564 | ... | ... |
examples/motion-stretch/motion-stretch-example.cpp
| ... | ... | @@ -441,7 +441,7 @@ void RunTest(Application& app) |
| 441 | 441 | |
| 442 | 442 | // Entry point for Linux & Tizen applications |
| 443 | 443 | // |
| 444 | -int main(int argc, char **argv) | |
| 444 | +int DALI_EXPORT_API main(int argc, char **argv) | |
| 445 | 445 | { |
| 446 | 446 | Application app = Application::New(&argc, &argv, DEMO_THEME_PATH); |
| 447 | 447 | ... | ... |
examples/native-image-source/native-image-source-example.cpp
| ... | ... | @@ -195,7 +195,7 @@ void RunTest( Application& application ) |
| 195 | 195 | |
| 196 | 196 | // Entry point for Linux & Tizen applications |
| 197 | 197 | // |
| 198 | -int main( int argc, char **argv ) | |
| 198 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 199 | 199 | { |
| 200 | 200 | Application application = Application::New( &argc, &argv ); |
| 201 | 201 | ... | ... |
examples/new-window/new-window-example.cpp
| ... | ... | @@ -561,7 +561,7 @@ void RunTest(Application& app) |
| 561 | 561 | |
| 562 | 562 | // Entry point for Linux & Tizen applications |
| 563 | 563 | // |
| 564 | -int main(int argc, char **argv) | |
| 564 | +int DALI_EXPORT_API main(int argc, char **argv) | |
| 565 | 565 | { |
| 566 | 566 | gApplication = Application::New(&argc, &argv, DEMO_THEME_PATH); |
| 567 | 567 | RunTest(gApplication); | ... | ... |
examples/page-turn-view/page-turn-view-example.cpp
| ... | ... | @@ -353,7 +353,7 @@ void PageTurnController::OnPageFinishedPan( PageTurnView pageTurnView ) |
| 353 | 353 | } |
| 354 | 354 | |
| 355 | 355 | // Entry point for applications |
| 356 | -int main( int argc, char **argv ) | |
| 356 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 357 | 357 | { |
| 358 | 358 | Application app = Application::New(&argc, &argv, DEMO_THEME_PATH); |
| 359 | 359 | PageTurnController test ( app ); | ... | ... |
examples/point-mesh/point-mesh-example.cpp
| ... | ... | @@ -236,7 +236,7 @@ void RunTest( Application& application ) |
| 236 | 236 | |
| 237 | 237 | // Entry point for Linux & SLP applications |
| 238 | 238 | // |
| 239 | -int main( int argc, char **argv ) | |
| 239 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 240 | 240 | { |
| 241 | 241 | Application application = Application::New( &argc, &argv ); |
| 242 | 242 | ... | ... |
examples/popup/popup-example.cpp
| ... | ... | @@ -731,7 +731,7 @@ void RunTest( Application& application ) |
| 731 | 731 | } |
| 732 | 732 | |
| 733 | 733 | // Entry point for Linux & SLP applications |
| 734 | -int main( int argc, char **argv ) | |
| 734 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 735 | 735 | { |
| 736 | 736 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 737 | 737 | ... | ... |
examples/radial-menu/radial-menu-example.cpp
| ... | ... | @@ -299,7 +299,7 @@ void RunTest(Application app) |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | // Entry point for Linux & Tizen applications |
| 302 | -int main(int argc, char **argv) | |
| 302 | +int DALI_EXPORT_API main(int argc, char **argv) | |
| 303 | 303 | { |
| 304 | 304 | Application app = Application::New(&argc, &argv, DEMO_THEME_PATH); |
| 305 | 305 | ... | ... |
examples/refraction-effect/refraction-effect-example.cpp
| ... | ... | @@ -597,8 +597,7 @@ RunTest(Application& app) |
| 597 | 597 | |
| 598 | 598 | /*****************************************************************************/ |
| 599 | 599 | |
| 600 | -int | |
| 601 | -main(int argc, char **argv) | |
| 600 | +int DALI_EXPORT_API main(int argc, char **argv) | |
| 602 | 601 | { |
| 603 | 602 | Application app = Application::New(&argc, &argv, DEMO_THEME_PATH); |
| 604 | 603 | ... | ... |
examples/scripting/scripting-example.cpp
| ... | ... | @@ -38,7 +38,7 @@ bool CheckIfFileExists( const std::string& filename ) |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | } |
| 41 | -int main( int argc, char* argv[] ) | |
| 41 | +int DALI_EXPORT_API main( int argc, char* argv[] ) | |
| 42 | 42 | { |
| 43 | 43 | // pull out the JSON file and JavaScript file from the command line arguments |
| 44 | 44 | std::string javaScriptFileName; | ... | ... |
examples/scroll-view/scroll-view-example.cpp
| ... | ... | @@ -579,7 +579,7 @@ private: |
| 579 | 579 | Toolkit::PushButton mEffectChangeButton; ///< Effect Change Button |
| 580 | 580 | }; |
| 581 | 581 | |
| 582 | -int main(int argc, char **argv) | |
| 582 | +int DALI_EXPORT_API main(int argc, char **argv) | |
| 583 | 583 | { |
| 584 | 584 | Application app = Application::New(&argc, &argv, DEMO_THEME_PATH); |
| 585 | 585 | ExampleController test(app); | ... | ... |
examples/shadow-bone-lighting/shadow-bone-lighting-example.cpp
| ... | ... | @@ -500,8 +500,7 @@ RunTest(Application& app) |
| 500 | 500 | |
| 501 | 501 | /*****************************************************************************/ |
| 502 | 502 | |
| 503 | -int | |
| 504 | -main(int argc, char **argv) | |
| 503 | +int DALI_EXPORT_API main(int argc, char **argv) | |
| 505 | 504 | { |
| 506 | 505 | Application app = Application::New(&argc, &argv, DEMO_THEME_PATH); |
| 507 | 506 | ... | ... |
examples/size-negotiation/size-negotiation-example.cpp
| ... | ... | @@ -813,7 +813,7 @@ void RunTest( Application& application ) |
| 813 | 813 | } |
| 814 | 814 | |
| 815 | 815 | // Entry point for Linux & SLP applications |
| 816 | -int main( int argc, char **argv ) | |
| 816 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 817 | 817 | { |
| 818 | 818 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 819 | 819 | ... | ... |
examples/super-blur-bloom/super-blur-bloom-example.cpp
| ... | ... | @@ -311,8 +311,7 @@ RunTest(Application& app) |
| 311 | 311 | |
| 312 | 312 | /*****************************************************************************/ |
| 313 | 313 | |
| 314 | -int | |
| 315 | -main(int argc, char **argv) | |
| 314 | +int DALI_EXPORT_API main(int argc, char **argv) | |
| 316 | 315 | { |
| 317 | 316 | Application app = Application::New(&argc, &argv, DEMO_THEME_PATH); |
| 318 | 317 | ... | ... |
examples/text-field/text-field-example.cpp
| ... | ... | @@ -224,7 +224,7 @@ void RunTest( Application& application ) |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | /** Entry point for Linux & Tizen applications */ |
| 227 | -int main( int argc, char **argv ) | |
| 227 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 228 | 228 | { |
| 229 | 229 | // DALI_DEMO_THEME_PATH not passed to Application so TextField example uses default Toolkit style sheet. |
| 230 | 230 | Application application = Application::New( &argc, &argv ); | ... | ... |
examples/text-fonts/text-fonts-example.cpp
| ... | ... | @@ -253,7 +253,7 @@ void RunTest( Application& application ) |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | /** Entry point for Linux & Tizen applications */ |
| 256 | -int main( int argc, char **argv ) | |
| 256 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 257 | 257 | { |
| 258 | 258 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 259 | 259 | ... | ... |
examples/text-label-emojis/text-label-emojis.cpp
| ... | ... | @@ -140,7 +140,7 @@ void RunTest( Application& application ) |
| 140 | 140 | |
| 141 | 141 | // Entry point for Linux & SLP applications |
| 142 | 142 | // |
| 143 | -int main( int argc, char **argv ) | |
| 143 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 144 | 144 | { |
| 145 | 145 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 146 | 146 | ... | ... |
examples/text-label-multi-language/text-label-multi-language-example.cpp
| ... | ... | @@ -142,7 +142,7 @@ void RunTest( Application& application ) |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** Entry point for Linux & Tizen applications */ |
| 145 | -int main( int argc, char **argv ) | |
| 145 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 146 | 146 | { |
| 147 | 147 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 148 | 148 | ... | ... |
examples/text-label/text-label-example.cpp
| ... | ... | @@ -295,7 +295,7 @@ void RunTest( Application& application ) |
| 295 | 295 | } |
| 296 | 296 | |
| 297 | 297 | /** Entry point for Linux & Tizen applications */ |
| 298 | -int main( int argc, char **argv ) | |
| 298 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 299 | 299 | { |
| 300 | 300 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 301 | 301 | ... | ... |
examples/text-message-field/text-message-field-example.cpp
| ... | ... | @@ -161,7 +161,7 @@ void RunTest( Application& application ) |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | /** Entry point for Linux & Tizen applications */ |
| 164 | -int main( int argc, char **argv ) | |
| 164 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 165 | 165 | { |
| 166 | 166 | Application application = Application::New( &argc, &argv, DEMO_THEME_PATH ); |
| 167 | 167 | ... | ... |
examples/textured-mesh/textured-mesh-example.cpp
| ... | ... | @@ -283,7 +283,7 @@ void RunTest( Application& application ) |
| 283 | 283 | |
| 284 | 284 | // Entry point for Linux & SLP applications |
| 285 | 285 | // |
| 286 | -int main( int argc, char **argv ) | |
| 286 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 287 | 287 | { |
| 288 | 288 | Application application = Application::New( &argc, &argv ); |
| 289 | 289 | ... | ... |
examples/tilt/tilt-example.cpp
| ... | ... | @@ -96,7 +96,7 @@ private: |
| 96 | 96 | |
| 97 | 97 | // Entry point for Linux & Tizen applications |
| 98 | 98 | // |
| 99 | -int main( int argc, char **argv ) | |
| 99 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 100 | 100 | { |
| 101 | 101 | Application application = Application::New( &argc, &argv ); |
| 102 | 102 | TiltController test( application ); | ... | ... |
packaging/com.samsung.dali-demo.spec
| ... | ... | @@ -64,7 +64,7 @@ of the capability of the toolkit. |
| 64 | 64 | %build |
| 65 | 65 | PREFIX="/usr" |
| 66 | 66 | CXXFLAGS+=" -Wall -g -O2" |
| 67 | -LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -fPIC" | |
| 67 | +LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed" | |
| 68 | 68 | |
| 69 | 69 | %ifarch %{arm} |
| 70 | 70 | CXXFLAGS+=" -D_ARCH_ARM_" | ... | ... |