mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-18 07:15:53 +08:00
readd toplevel makefile
This commit is contained in:
parent
387fd61b83
commit
a778c089d1
2
.gitignore
vendored
2
.gitignore
vendored
@ -71,7 +71,7 @@ tests/issue-97.gltf
|
|||||||
tests/issue-261.gltf
|
tests/issue-261.gltf
|
||||||
|
|
||||||
# unignore
|
# unignore
|
||||||
!./Makefile
|
!/Makefile
|
||||||
!examples/build-gltf/Makefile
|
!examples/build-gltf/Makefile
|
||||||
!examples/raytrace/cornellbox_suzanne.obj
|
!examples/raytrace/cornellbox_suzanne.obj
|
||||||
!tests/Makefile
|
!tests/Makefile
|
||||||
|
13
Makefile
Normal file
13
Makefile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
# Use this for strict compilation check(will work on clang 3.8+)
|
||||||
|
#EXTRA_CXXFLAGS := -fsanitize=address -Wall -Werror -Weverything -Wno-c++11-long-long -Wno-c++98-compat
|
||||||
|
|
||||||
|
# With draco
|
||||||
|
# EXTRA_CXXFLAGS := -I../draco/src/ -I../draco/build -DTINYGLTF_ENABLE_DRACO -L../draco/build
|
||||||
|
# EXTRA_LINKFLAGS := -L../draco/build/ -ldracodec -ldraco
|
||||||
|
|
||||||
|
all:
|
||||||
|
clang++ $(EXTRA_CXXFLAGS) -std=c++11 -g -O0 -o loader_example loader_example.cc $(EXTRA_LINKFLAGS)
|
||||||
|
|
||||||
|
lint:
|
||||||
|
deps/cpplint.py tiny_gltf.h
|
Loading…
x
Reference in New Issue
Block a user