Initialize repo.
authorHermet Park <chuneon.park@samsung.com>
Sun, 10 Jan 2021 06:28:20 +0000 (15:28 +0900)
committerHermet Park <chuneon.park@samsung.com>
Sun, 10 Jan 2021 06:31:50 +0000 (15:31 +0900)
LICENSE [new file with mode: 0644]
README.md [new file with mode: 0644]
build.sh [new file with mode: 0644]
meson.build [new file with mode: 0644]
packaging/rive-tizen.spec [new file with mode: 0644]

diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..0eabc73
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) 2021 Samsung Electronics
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..6133007
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+# rive-tizen
diff --git a/build.sh b/build.sh
new file mode 100644 (file)
index 0000000..50f5933
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,22 @@
+#TODO: prepare integrated build script.
+
+#rive-cpp must have original code repo.
+#thorvg must have thorvg backend code (instead of skia)
+
+#check feasibility: 
+
+#option 1
+#1. rive-tizen includes rive-cpp code and manual sync.
+#2. add thorvg into rive-cpp
+#3. rewrite meson build script for whole sub directories.
+#4. regularly rive-cpp code sync. 
+
+
+#option 2 
+#1. up-to-date rive-cpp (git@github.com:rive-app/rive-cpp.git)
+#1.1 check rive-cpp sub directory then git clone or git pull?
+#2 build rive-cpp base except skia. (using original script?)
+#2.1 if then, how to build in gbs?
+#3. build thorvg using meson.
+
+
diff --git a/meson.build b/meson.build
new file mode 100644 (file)
index 0000000..0428ef3
--- /dev/null
@@ -0,0 +1,36 @@
+project('rive-tizen',
+        'cpp',
+        version : '0.1.0',
+        license : 'MIT')
+
+subdir('lib')
+
+thorvg_dep = dependency('thorvg', required : true)
+
+rive-tizen_lib = library(
+       'rive-tizen',
+       include_directories : [headers, math_headers, thorvg_headers],
+       version             : meson.project_version(),
+       dependencies        : [math_dep, rive-tizen_dep, rive-tizen_render_dep, thorvg_dep],
+       install             : true,
+        gnu_symbol_visibility : 'hidden',
+)
+
+rive-tizen_lib_dep = declare_dependency(
+       include_directories : [headers, math_headers, thorvg_headers],
+        link_with : rive-tizen_lib
+)
+
+pkg_mod = import('pkgconfig')
+
+pkg_mod.generate(
+        libraries    : rive-tizen_lib,
+        version      : meson.project_version(),
+        name         : 'librive-tizen',
+        filebase     : 'rive-tizen',
+        description  : 'A Rive Animation Tizen Runtime Engine'
+)
+
+subdir('example')
+subdir('assets')
+
diff --git a/packaging/rive-tizen.spec b/packaging/rive-tizen.spec
new file mode 100644 (file)
index 0000000..547c130
--- /dev/null
@@ -0,0 +1,75 @@
+Name:       rive-tizen
+Summary:    Rive Animation Tizen Runtime Engine
+Version:    0.0.1
+Release:    1
+Group:      Graphics System/Rendering Engine
+License:    MIT
+URL:        https://github.com/rive-app/rive-tizen
+Source0:    %{name}-%{version}.tar.gz
+
+BuildRequires:  pkgconfig
+BuildRequires:  pkgconfig(thorvg)
+
+BuildRequires:  meson
+BuildRequires:  ninja
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description
+Rive Animation Tizen Runtime Engine
+
+
+%package devel
+Summary:    Rive Animation Tizen Runtime Engine
+Group:      Development/Libraries
+Requires:   %{name} = %{version}-%{release}
+
+
+%description devel
+Rive Animation Tizen Runtime Engine (devel)
+
+
+%prep
+%setup -q
+
+
+%build
+
+export DESTDIR=%{buildroot}
+
+meson setup \
+      --prefix /usr \
+      --libdir %{_libdir} \
+      builddir 2>&1
+ninja \
+      -C builddir \
+      -j %(echo "`/usr/bin/getconf _NPROCESSORS_ONLN`")
+
+%install
+
+export DESTDIR=%{buildroot}
+
+ninja -C builddir install
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/librive-tizen.so.*
+%manifest packaging/rive-tizen.manifest
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/rive-tizen/*.hpp
+%{_includedir}/rive-tizen/animation/*.hpp
+%{_includedir}/rive-tizen/boness/*.hpp
+%{_includedir}/rive-tizen/core/*.hpp
+%{_includedir}/rive-tizen/math/*.hpp
+%{_includedir}/rive-tizen/shapes/*.hpp
+%{_includedir}/rive-tizen/shapes/paint/*.hpp
+%{_includedir}/rive-tizen/generated/*.hpp
+%{_includedir}/rive-tizen/generated/animation/*.hpp
+%{_includedir}/rive-tizen/generated/bones/*.hpp
+%{_includedir}/rive-tizen/generated/shapes/*.hpp
+%{_includedir}/rive-tizen/generated/shapes/paint/*.hpp
+%{_libdir}/librive-tizen.so
+%{_bindir}/rive-tizen
+%{_libdir}/pkgconfig/rive-tizen.pc