From 59730db074b1eee3a1730c2bc923de84d8df8e2f Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Wed, 15 Apr 2020 14:08:53 +0900 Subject: [PATCH] Update README. Update build script. --- README.md | 6 ++++++ examples/openglviewer/CMakeLists.txt | 11 +++++++++-- meson.build | 4 ++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 615c01cd..8f38f9df 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,12 @@ See `examples` directory. ## TODO +* [ ] USDA(USD Ascii) support + * [ ] Write our own USDA parser with PEG. +* [ ] Animation + * [ ] Skinning(usdSkel) + * [ ] Blend shapes + * [ ] In-between blend shapes * [ ] Audio play support * [ ] Play audio using SoLoud or miniaudio(or Oboe for Android) * [ ] wav(dr_wav) diff --git a/examples/openglviewer/CMakeLists.txt b/examples/openglviewer/CMakeLists.txt index 5ae64e87..3e40da06 100644 --- a/examples/openglviewer/CMakeLists.txt +++ b/examples/openglviewer/CMakeLists.txt @@ -1,9 +1,10 @@ +# Assume this project is a root project cmake_minimum_required(VERSION 3.5.1) -set(BUILD_TARGET "openglviewer") - project(${BUILD_TARGET} C CXX) +set(BUILD_TARGET "openglviewer") + set(CMAKE_CXX_STANDARD 11) find_package(OpenGL REQUIRED) @@ -20,6 +21,12 @@ set(SOURCES main.cc #render.cc #render-config.cc + + # tinyusdz + ../../src/tinyusdz.cc + ../../src/integerCoding.cpp + ../../src/pxrLZ4/lz4.cpp + ../../src/lz4-compression.cc ) set(GUI_SOURCES diff --git a/meson.build b/meson.build index 6b104601..ce29469b 100644 --- a/meson.build +++ b/meson.build @@ -3,8 +3,8 @@ project('tinyusdz', 'cpp', default_options : ['cpp_std=c++11']) incdirs = include_directories('src') -executable('tinyusdz', - 'src/pxrLZ4/lz4.cpp', 'src/main.cc', 'src/tinyusdz.cc', +library('tinyusdz', + 'src/pxrLZ4/lz4.cpp', 'src/tinyusdz.cc', 'src/lz4-compression.cc', 'src/integerCoding.cpp', include_directories : incdirs )