Skip to content

Commit

Permalink
fileformat: move graphics/meshes -> fileformat/mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedede committed Nov 9, 2024
1 parent 4784d40 commit ebb5c99
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 20 deletions.
6 changes: 6 additions & 0 deletions fileformat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ option(AW_ENABLE_IMAGE "Enable libawimage" OFF)
if (AW_ENABLE_IMAGE)
add_subdirectory(image)
endif()

## 3D mesh/scene file support
option(AW_ENABLE_MESH "Enable libawmesh" OFF)
if (AW_ENABLE_MESH)
add_subdirectory(mesh)
endif()
16 changes: 16 additions & 0 deletions fileformat/mesh/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

aw_add_library(awmesh STATIC
GLOB_HEADERS
SOURCES
obj_loader.c++ mtl_loader.c++ shared.h
EXPORT_NAME
mesh)

#AW_MANUAL_TEST
#target_compile_definitions(awmesh PRIVATE AW_MODULE_GRAPHICS)

target_link_libraries(awmesh
PUBLIC
awio
awlog
awstring)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion graphics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
add_subdirectory(test)
add_subdirectory(gl)
add_subdirectory(renderer)
add_subdirectory(meshes)
16 changes: 0 additions & 16 deletions graphics/meshes/CMakeLists.txt

This file was deleted.

4 changes: 2 additions & 2 deletions graphics/renderer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ target_link_libraries(awgraphics
PUBLIC
awio
awmath
awimage
awobj
awimage # TODO: remove
awmesh # TODO: remove
awgl)
2 changes: 1 addition & 1 deletion graphics/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ target_link_libraries(rendertest
PUBLIC
awio
awgraphics
awobj
awmesh
awimage
awlog
awhudf
Expand Down

0 comments on commit ebb5c99

Please sign in to comment.