Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 46e94c6

Browse files
committed
use spirv from glslang
1 parent 9ff8a1a commit 46e94c6

File tree

3 files changed

+42
-37
lines changed

3 files changed

+42
-37
lines changed

CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ include_directories(
1212
MGL/SPIRV/SPIRV-Cross
1313
MGL/include
1414
MGL/include/GL
15-
external/SPIRV-Cross
16-
external/SPIRV-Tools/include
15+
#external/SPIRV-Cross
16+
#external/SPIRV-Tools/include
1717
external/glslang/glslang/Include
1818
)
1919

@@ -35,14 +35,14 @@ target_link_libraries(mgl PUBLIC
3535
"${CMAKE_CURRENT_LIST_DIR}/external/glslang/build/glslang/libglslang.a"
3636
"${CMAKE_CURRENT_LIST_DIR}/external/glslang/build/glslang/OSDependent/Unix/libOSDependent.a"
3737
"${CMAKE_CURRENT_LIST_DIR}/external/glslang/build/SPIRV/libSPIRV.a"
38-
"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-c.a"
39-
"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-core.a"
40-
"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-cpp.a"
41-
"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-glsl.a"
42-
"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-hlsl.a"
43-
"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-msl.a"
44-
"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-reflect.a"
45-
"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-util.a"
38+
#"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-c.a"
39+
#"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-core.a"
40+
#"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-cpp.a"
41+
#"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-glsl.a"
42+
#"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-hlsl.a"
43+
#"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-msl.a"
44+
#"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-reflect.a"
45+
#"${CMAKE_CURRENT_LIST_DIR}/external/SPIRV-Cross/build/libspirv-cross-util.a"
4646
)
4747

4848
# macOS Frameworks

external/build_external.sh

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
1-
set SDKROOT=`xcrun --show-sdk-path`
1+
#set SDKROOT=`xcrun --show-sdk-path`
22

33
cp ../MGL/include/MGLContext.h glfw/src
44
cp ../MGL/include/MGLRenderer.h glfw/src
5-
cd SPIRV-Tools
6-
mkdir build
7-
cd build
8-
cmake ..
9-
make -j 4
10-
cd ../..
11-
cd SPIRV-Cross
12-
mkdir build
13-
cd build
14-
cmake ..
15-
make -j 4
16-
cd ../..
17-
cd SPIRV-Headers
18-
mkdir build
19-
cd build
20-
cmake ..
21-
make -j 4
22-
cd ../..
5+
6+
#cd SPIRV-Tools
7+
#mkdir build
8+
#cd build
9+
#cmake ..
10+
#make -j 4
11+
#cd ../..
12+
#
13+
#cd SPIRV-Cross
14+
#mkdir build
15+
#cd build
16+
#cmake ..
17+
#make -j 4
18+
#cd ../..
19+
#
20+
#cd SPIRV-Headers
21+
#mkdir build
22+
#cd build
23+
#cmake ..
24+
#make -j 4
25+
#cd ../..
26+
2327
cd glslang
2428
./update_glslang_sources.py
2529
mkdir build
2630
cd build
2731
cmake ..
2832
make -j 4
2933
cd ../..
34+
3035
cd glfw
3136
mkdir build
3237
cd build

external/clone_external.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
git clone https://github.com/KhronosGroup/OpenGL-Registry.git --depth 1
2-
git clone https://github.com/r58Playz/SPIRV-Cross.git -b uniform-constants
3-
git clone https://github.com/KhronosGroup/SPIRV-Headers.git --depth 1
4-
git clone https://github.com/KhronosGroup/SPIRV-Tools.git --depth 1
5-
cd SPIRV-Tools/external
6-
git clone https://github.com/KhronosGroup/SPIRV-Headers.git --depth 1
7-
cd ../..
8-
git clone https://github.com/lxfontes/ezxml.git --depth 1
1+
#git clone https://github.com/KhronosGroup/OpenGL-Registry.git --depth 1
2+
#git clone https://github.com/r58Playz/SPIRV-Cross.git -b uniform-constants
3+
#git clone https://github.com/KhronosGroup/SPIRV-Headers.git --depth 1
4+
#git clone https://github.com/KhronosGroup/SPIRV-Tools.git --depth 1
5+
#cd SPIRV-Tools/external
6+
#git clone https://github.com/KhronosGroup/SPIRV-Headers.git --depth 1
7+
#cd ../..
8+
#git clone https://github.com/lxfontes/ezxml.git --depth 1
99
git clone https://github.com/KhronosGroup/glslang.git --depth 1

0 commit comments

Comments
 (0)