fix build break by 0f5edac6d1595e0fecd8d48bb7d2e5353fe9121f 54/188654/1
authorHermet Park <hermetpark@gmail.com>
Fri, 7 Sep 2018 06:08:11 +0000 (15:08 +0900)
committerHermet Park <hermetpark@gmail.com>
Fri, 7 Sep 2018 06:08:11 +0000 (15:08 +0900)
and packaging it properly.

Change-Id: Ib1216034d63beb809fdd652542980e61494e1e91

inc/lottieanimation_capi.h
inc/meson.build
src/CMakeLists.txt
src/binding/CMakeLists.txt [new file with mode: 0644]
src/binding/c/CMakeLists.txt [new file with mode: 0644]

index 2b032a7..86a7bfc 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _LOTPLAYER_CAPI_H_
-#define _LOTPLAYER_CAPI_H_
+#ifndef _LOTTIE_ANIMATION_CAPI_H_
+#define _LOTTIE_ANIMATION_CAPI_H_
 
 #include <stddef.h>
 #include <stdint.h>
@@ -69,5 +69,5 @@ lottie_animation_render_flush(Lottie_Animation *animation);
 }
 #endif
 
-#endif //_LOTPLAYER_CAPI_H_
+#endif //_LOTTIE_ANIMATION_CAPI_H_
 
index 332029f..c2d6e4e 100644 (file)
@@ -1,3 +1,3 @@
 install_headers(['lottieanimation.h',
-                 'lotcommon.h',
+                 'lottiecommon.h',
                  'lottieanimation_capi.h'])
index fce73db..8bdefec 100644 (file)
@@ -1,4 +1,6 @@
 
 add_subdirectory(vector)
 
-add_subdirectory(lottie)
\ No newline at end of file
+add_subdirectory(lottie)
+
+add_subdirectory(binding)
diff --git a/src/binding/CMakeLists.txt b/src/binding/CMakeLists.txt
new file mode 100644 (file)
index 0000000..20bc4cc
--- /dev/null
@@ -0,0 +1 @@
+add_subdirectory(c)
diff --git a/src/binding/c/CMakeLists.txt b/src/binding/c/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5d4965d
--- /dev/null
@@ -0,0 +1,9 @@
+target_sources(lottie-player
+    PRIVATE
+        "${CMAKE_CURRENT_LIST_DIR}/lottieanimation_c.cpp"
+    )
+
+target_include_directories(lottie-player
+    PRIVATE
+        "${CMAKE_CURRENT_LIST_DIR}"
+    )