-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild-common-archs.sh
executable file
·99 lines (96 loc) · 3.07 KB
/
build-common-archs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/bash
rm -rf build/common_archs
mkdir -p build/common_archs
for api in "$@"
do
if [[ "$api" == "D3D11" ]]; then
# D3D11
echo "$api"
zip -r build/common_archs/Common_D3D11.zip \
Common/GraphicsAPI.cpp \
Common/GraphicsAPI_D3D11.cpp \
Common/OpenXRDebugUtils.cpp \
Common/DebugOutput.h \
Common/GraphicsAPI.h \
Common/GraphicsAPI_D3D11.h \
Common/HelperFunctions.h \
Common/OpenXRDebugUtils.h \
Common/OpenXRHelper.h
fi
if [[ "$api" == "D3D12" ]]; then
# D3D12
echo "$api"
zip -r build/common_archs/Common_D3D12.zip \
Common/GraphicsAPI.cpp \
Common/GraphicsAPI_D3D12.cpp \
Common/OpenXRDebugUtils.cpp \
Common/DebugOutput.h \
Common/GraphicsAPI.h \
Common/GraphicsAPI_D3D12.h \
Common/HelperFunctions.h \
Common/OpenXRDebugUtils.h \
Common/OpenXRHelper.h
fi
if [[ "$api" == "OPENGL" ]]; then
# OPENGL
echo "$api"
zip -r build/common_archs/Common_OpenGL.zip \
Common/GraphicsAPI.cpp \
Common/GraphicsAPI_OpenGL.cpp \
Common/OpenXRDebugUtils.cpp \
Common/DebugOutput.h \
Common/GraphicsAPI.h \
Common/GraphicsAPI_OpenGL.h \
Common/HelperFunctions.h \
Common/OpenXRDebugUtils.h \
Common/OpenXRHelper.h
fi
if [[ "$api" == "OPENGL_ES" ]]; then
# OPENGL_ES
echo "$api"
zip -r build/common_archs/Common_OpenGL_ES.zip \
Common/GraphicsAPI.cpp \
Common/GraphicsAPI_OpenGL_ES.cpp \
Common/OpenXRDebugUtils.cpp \
Common/DebugOutput.h \
Common/GraphicsAPI.h \
Common/GraphicsAPI_OpenGL_ES.h \
Common/HelperFunctions.h \
Common/OpenXRDebugUtils.h \
Common/OpenXRHelper.h
fi
if [[ "$api" == "VULKAN" ]]; then
# VULKAN
echo "$api"
zip -r build/common_archs/Common_Vulkan.zip \
Common/GraphicsAPI.cpp \
Common/GraphicsAPI_Vulkan.cpp \
Common/OpenXRDebugUtils.cpp \
Common/DebugOutput.h \
Common/GraphicsAPI.h \
Common/GraphicsAPI_Vulkan.h \
Common/HelperFunctions.h \
Common/OpenXRDebugUtils.h \
Common/OpenXRHelper.h
fi
done
# Full Folder
echo "ALL"
zip -r build/common_archs/Common.zip \
Common/GraphicsAPI.cpp \
Common/GraphicsAPI_D3D11.cpp \
Common/GraphicsAPI_D3D12.cpp \
Common/GraphicsAPI_OpenGL.cpp \
Common/GraphicsAPI_OpenGL_ES.cpp \
Common/GraphicsAPI_Vulkan.cpp \
Common/OpenXRDebugUtils.cpp \
Common/DebugOutput.h \
Common/GraphicsAPI.h \
Common/GraphicsAPI_D3D11.h \
Common/GraphicsAPI_D3D12.h \
Common/GraphicsAPI_OpenGL.h \
Common/GraphicsAPI_OpenGL_ES.h \
Common/GraphicsAPI_Vulkan.h \
Common/HelperFunctions.h \
Common/OpenXRDebugUtils.h \
Common/OpenXRHelper.h \