added lottie2gif converter for both cmake and meson build
authorsubhransu mohanty <sub.mohanty@samsung.com>
Thu, 9 May 2019 05:36:36 +0000 (14:36 +0900)
committerHermet Park <hermetpark@gmail.com>
Mon, 13 May 2019 08:14:06 +0000 (17:14 +0900)
CMakeLists.txt
example/lottie2gif.cpp [moved from example/rlottietest.cpp with 96% similarity]
example/meson.build

index 7e9abe7..b14a4af 100644 (file)
@@ -47,6 +47,7 @@ target_link_libraries(rlottie
 #declare source and include files
 add_subdirectory(inc)
 add_subdirectory(src)
+add_subdirectory(example)
 
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 SET(EXEC_DIR ${PREFIX})
similarity index 96%
rename from example/rlottietest.cpp
rename to example/lottie2gif.cpp
index f485c4e..0fac9eb 100644 (file)
@@ -111,12 +111,12 @@ private:
     }
 
     int result() {
-        std::cout<<"Generated Gif file : "<<baseName.data()<<std::endl;
+        std::cout<<"Generated GIF file : "<<baseName.data()<<std::endl;
         return 0;
     }
 
     int help() {
-        std::cout<<"Usage: lottie json_file_name\n";
+        std::cout<<"Usage: \n   lottie2gif [lottieFileName]\n";
         return 1;
     }
 
index cd2c47f..13084e1 100644 (file)
@@ -5,8 +5,8 @@ common_source += files('lottieview.cpp')
 demo_sources = files('demo.cpp')
 demo_sources += common_source
 
-executable('rlottie',
-           'rlottietest.cpp',
+executable('lottie2gif',
+           'lottie2gif.cpp',
            include_directories : inc,
            link_with : rlottie_lib)