This repository was archived by the owner on Oct 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +17
-50
lines changed Expand file tree Collapse file tree 8 files changed +17
-50
lines changed Original file line number Diff line number Diff line change 11config.mk
22build /
33libmgl.dylib
4- external /glfw /src /MGLContext.h
5- external /glfw /src /MGLRenderer.h
6- external /OpenGL-Registry /
7- external /SPIRV-Cross /
8- external /SPIRV-Headers /
9- external /SPIRV-Tools /
10- external /ezxml /
11- external /glslang /
124* .DS_Store
135/SPIRV-Headers
146/SPIRV-Cross
Original file line number Diff line number Diff line change 1+ [submodule "external/glslang "]
2+ path = external/glslang
3+ url = https://github.com/KhronosGroup/glslang.git
4+ [submodule "external/SPIRV-Cross "]
5+ path = external/SPIRV-Cross
6+ url = https://github.com/r58Playz/SPIRV-Cross.git
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.15)
22project (MGL LANGUAGES C CXX OBJC)
33
4- execute_process (COMMAND "bash" "build_external.sh" WORKING_DIRECTORY "${CMAKE_CURRENT_LIST_DIR} /external" COMMAND_ECHO STDOUT)
5-
64set (CMAKE_C_STANDARD 17)
75set (CMAKE_CXX_STANDARD 20)
86
7+ set (ENABLE_OPT ON )
8+
9+ add_subdirectory (external/SPIRV-Cross)
10+ add_subdirectory (external/glslang)
11+ add_subdirectory (external/glfw)
12+
913include_directories (
1014 MGL/SPIRV/SPIRV-Cross
1115 MGL/include
@@ -60,14 +64,7 @@ target_link_libraries(mgl PUBLIC
6064)
6165
6266if (MGL_BUILD_TEST)
63- add_library (glfw-imp STATIC IMPORTED )
64- set_target_properties (glfw-imp PROPERTIES IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR} /external/glfw/build/src/libglfw3.a" )
65-
66- add_library (glfw INTERFACE )
67- target_link_libraries (glfw INTERFACE glfw-imp mgl)
68- target_include_directories (glfw INTERFACE "external/glfw/include" )
69-
70- add_dependencies (glfw mgl)
67+ target_link_libraries (glfw INTERFACE mgl)
7168
7269 add_library (glm INTERFACE )
7370 target_include_directories (glm INTERFACE "mgl/MGL/include" )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ ../../../MGL /include /MGLContext .h
Original file line number Diff line number Diff line change 1+ ../../../MGL /include /MGLRenderer .h
You can’t perform that action at this time.
0 commit comments