|
| 1 | +@set VCPKG_BINARY_SOURCES=clear |
| 2 | +@set VCPKG_ROOT=%cd% |
| 3 | +@if %1.==xbox. goto xbox |
| 4 | +@if %1.==clang. goto clang |
| 5 | +.\vcpkg install directxtex[core]:x86-windows |
| 6 | +@if errorlevel 1 goto error |
| 7 | +.\vcpkg install directxtex:x86-windows --recurse |
| 8 | +@if errorlevel 1 goto error |
| 9 | +.\vcpkg install directxtex[tools]:x86-windows --recurse |
| 10 | +@if errorlevel 1 goto error |
| 11 | +.\vcpkg install directxtex[dx12]:x86-windows --recurse |
| 12 | +@if errorlevel 1 goto error |
| 13 | +.\vcpkg install directxtex[openexr,tools]:x86-windows --recurse |
| 14 | +@if errorlevel 1 goto error |
| 15 | +.\vcpkg install directxtex[spectre]:x86-windows --recurse |
| 16 | +@if errorlevel 1 goto error |
| 17 | +.\vcpkg install directxtex:x86-windows-static |
| 18 | +@if errorlevel 1 goto error |
| 19 | +.\vcpkg install directxtex:x86-windows-static-md |
| 20 | +@if errorlevel 1 goto error |
| 21 | +.\vcpkg install directxtex[core]:x64-windows |
| 22 | +@if errorlevel 1 goto error |
| 23 | +.\vcpkg install directxtex:x64-windows --recurse |
| 24 | +@if errorlevel 1 goto error |
| 25 | +.\vcpkg install directxtex[tools]:x64-windows --recurse |
| 26 | +@if errorlevel 1 goto error |
| 27 | +.\vcpkg install directxtex[dx12]:x64-windows --recurse |
| 28 | +@if errorlevel 1 goto error |
| 29 | +.\vcpkg install directxtex[openexr,tools]:x64-windows --recurse |
| 30 | +@if errorlevel 1 goto error |
| 31 | +.\vcpkg install directxtex[spectre]:x64-windows --recurse |
| 32 | +@if errorlevel 1 goto error |
| 33 | +.\vcpkg install directxtex:x64-windows-static |
| 34 | +@if errorlevel 1 goto error |
| 35 | +.\vcpkg install directxtex:x64-windows-static-md |
| 36 | +@if errorlevel 1 goto error |
| 37 | +.\vcpkg install directxtex:arm64-windows |
| 38 | +@if errorlevel 1 goto error |
| 39 | +.\vcpkg install directxtex[tools]:arm64-windows --recurse |
| 40 | +@if errorlevel 1 goto error |
| 41 | +.\vcpkg install directxtex[spectre]:arm64-windows --recurse |
| 42 | +@if errorlevel 1 goto error |
| 43 | +.\vcpkg install directxtex:arm64-windows-static |
| 44 | +@if errorlevel 1 goto error |
| 45 | +.\vcpkg install directxtex:arm64-windows-static-md |
| 46 | +@if errorlevel 1 goto error |
| 47 | +.\vcpkg install directxtex:arm64ec-windows |
| 48 | +@if errorlevel 1 goto error |
| 49 | +.\vcpkg install directxtex[tools]:arm64ec-windows --recurse |
| 50 | +@if errorlevel 1 goto error |
| 51 | +.\vcpkg install directxtex[spectre]:arm64ec-windows --recurse |
| 52 | +@if errorlevel 1 goto error |
| 53 | +.\vcpkg install directxtex:x86-uwp |
| 54 | +@if errorlevel 1 goto error |
| 55 | +.\vcpkg install directxtex:x64-uwp |
| 56 | +@if errorlevel 1 goto error |
| 57 | +.\vcpkg install directxtex:arm64-uwp |
| 58 | +@if errorlevel 1 goto error |
| 59 | +@where /Q x86_64-w64-mingw32-g++.exe |
| 60 | +@if errorlevel 1 goto skipgcc64 |
| 61 | +.\vcpkg install directxtex:x64-mingw-dynamic |
| 62 | +@if errorlevel 1 goto error |
| 63 | +.\vcpkg install directxtex[dx12]:x64-mingw-dynamic --recurse |
| 64 | +@if errorlevel 1 goto error |
| 65 | +.\vcpkg install directxtex[tools]:x64-mingw-dynamic --recurse |
| 66 | +@if errorlevel 1 goto error |
| 67 | +.\vcpkg install directxtex:x64-mingw-static |
| 68 | +@if errorlevel 1 goto error |
| 69 | +.\vcpkg install directxtex[dx12]:x64-mingw-static --recurse |
| 70 | +@if errorlevel 1 goto error |
| 71 | +.\vcpkg install directxtex[tools]:x64-mingw-static --recurse |
| 72 | +@if errorlevel 1 goto error |
| 73 | +:skipgcc64 |
| 74 | +@where /Q i686-w64-mingw32-g++.exe |
| 75 | +@if errorlevel 1 goto skipgcc32 |
| 76 | +.\vcpkg install directxtex:x86-mingw-static |
| 77 | +@if errorlevel 1 goto :error |
| 78 | +.\vcpkg install directxtex[dx12]:x86-mingw-static --recurse |
| 79 | +@if errorlevel 1 goto :error |
| 80 | +.\vcpkg install directxtex[tools]:x86-mingw-static --recurse |
| 81 | +@if errorlevel 1 goto :error |
| 82 | +.\vcpkg install directxtex:x86-mingw-dynamic |
| 83 | +@if errorlevel 1 goto :error |
| 84 | +.\vcpkg install directxtex[dx12]:x86-mingw-dynamic --recurse |
| 85 | +@if errorlevel 1 goto :error |
| 86 | +.\vcpkg install directxtex[tools]:x86-mingw-dynamic --recurse |
| 87 | +@if errorlevel 1 goto :error |
| 88 | +:skipgcc32 |
| 89 | +@if "%GXDKLatest%."=="." goto finish |
| 90 | +:xbox |
| 91 | +.\vcpkg install directxtex:x64-xbox-scarlett |
| 92 | +@if errorlevel 1 goto error |
| 93 | +.\vcpkg install directxtex:x64-xbox-scarlett-static |
| 94 | +@if errorlevel 1 goto error |
| 95 | +.\vcpkg install directxtex:x64-xbox-xboxone |
| 96 | +@if errorlevel 1 goto error |
| 97 | +.\vcpkg install directxtex:x64-xbox-xboxone-static |
| 98 | +@if errorlevel 1 goto error |
| 99 | +@if exist "%VCPKG_ROOT%\installed\x64-windows\include\DirectXTex.h" .\vcpkg remove directxtex:x64-windows |
| 100 | +@if errorlevel 1 goto error |
| 101 | +.\vcpkg install directxtex[xbox,tools]:x64-windows --recurse |
| 102 | +@if errorlevel 1 goto error |
| 103 | +@goto finish |
| 104 | +:clang |
| 105 | +.\vcpkg install directxtex[core]:x64-clangcl-dynamic |
| 106 | +@if errorlevel 1 goto error |
| 107 | +.\vcpkg install directxtex:x64-clangcl-dynamic --recurse |
| 108 | +@if errorlevel 1 goto error |
| 109 | +.\vcpkg install directxtex[tools]:x64-clangcl-dynamic --recurse |
| 110 | +@if errorlevel 1 goto error |
| 111 | +.\vcpkg install directxtex[dx12]:x64-clangcl-dynamic --recurse |
| 112 | +@if errorlevel 1 goto error |
| 113 | +.\vcpkg install directxtex:x64-clangcl-static |
| 114 | +@if errorlevel 1 goto error |
| 115 | +.\vcpkg install directxtex:arm64-clangcl-dynamic |
| 116 | +@if errorlevel 1 goto error |
| 117 | +.\vcpkg install directxtex[tools]:arm64-clangcl-dynamic --recurse |
| 118 | +@if errorlevel 1 goto error |
| 119 | +.\vcpkg install directxtex:arm64-clangcl-static |
| 120 | +@if errorlevel 1 goto error |
| 121 | +.\vcpkg install directxtex:x64-clangcl-uwp |
| 122 | +@if errorlevel 1 goto error |
| 123 | +.\vcpkg install directxtex:arm64-clangcl-uwp |
| 124 | +@if errorlevel 1 goto error |
| 125 | +@if "%GXDKLatest%."=="." goto finish |
| 126 | +.\vcpkg install directxtex:x64-clangcl-scarlett |
| 127 | +@if errorlevel 1 goto error |
| 128 | +.\vcpkg install directxtex:x64-clangcl-scarlett-static |
| 129 | +@if errorlevel 1 goto error |
| 130 | +.\vcpkg install directxtex:x64-clangcl-xboxone |
| 131 | +@if errorlevel 1 goto error |
| 132 | +.\vcpkg install directxtex:x64-clangcl-xboxone-static |
| 133 | +@if errorlevel 1 goto error |
| 134 | +@if exist "%VCPKG_ROOT%\installed\x64-clangcl-dynamic\include\DirectXTex.h" .\vcpkg remove directxtex:x64-clangcl-dynamic |
| 135 | +@if errorlevel 1 goto error |
| 136 | +.\vcpkg install directxtex[xbox,tools]:x64-clangcl-dynamic --recurse |
| 137 | +@if errorlevel 1 goto error |
| 138 | +:finish |
| 139 | +@echo SUCCEEDED |
| 140 | +@if %1.==xbox. goto eof |
| 141 | +@if %1.==clang. goto eof |
| 142 | +@echo . |
| 143 | +@echo . Run on x64-linux and arm64-linux |
| 144 | +@echo . ./vcpkg install directxtex |
| 145 | +@echo . ./vcpkg install directxtex[dx12] --recurse |
| 146 | +@echo . ./vcpkg install directxtex[openexr] --recurse |
| 147 | +@echo . ./vcpkg install directxtex[jpeg] --recurse |
| 148 | +@echo . ./vcpkg install directxtex[png] --recurse |
| 149 | +@where /Q x86_64-w64-mingw32-g++.exe |
| 150 | +@if NOT errorlevel 1 goto gcc64 |
| 151 | +@echo . |
| 152 | +@echo . Run for MinGW64 |
| 153 | +@echo . .\vcpkg install directxtex:x64-mingw-dynamic |
| 154 | +@echo . .\vcpkg install directxtex[dx12]:x64-mingw-dynamic --recurse |
| 155 | +@echo . .\vcpkg install directxtex[tools]:x64-mingw-dynamic --recurse |
| 156 | +@echo . .\vcpkg install directxtex:x64-mingw-static |
| 157 | +@echo . .\vcpkg install directxtex[dx12]:x64-mingw-static --recurse |
| 158 | +@echo . .\vcpkg install directxtex[tools]:x64-mingw-static --recurse |
| 159 | +:gcc64 |
| 160 | +@where /Q i686-w64-mingw32-g++.exe |
| 161 | +@if NOT errorlevel 1 goto gcc32 |
| 162 | +@echo . |
| 163 | +@echo . Run for MinGW32 |
| 164 | +@echo . .\vcpkg install directxtex:x86-mingw-dynamic |
| 165 | +@echo . .\vcpkg install directxtex[dx12]:x86-mingw-dynamic --recurse |
| 166 | +@echo . .\vcpkg install directxtex[tools]:x86-mingw-dynamic --recurse |
| 167 | +@echo . .\vcpkg install directxtex:x86-mingw-static |
| 168 | +@echo . .\vcpkg install directxtex[dx12]:x86-mingw-static --recurse |
| 169 | +@echo . .\vcpkg install directxtex[tools]:x86-mingw-static --recurse |
| 170 | +:gcc32 |
| 171 | +@goto eof |
| 172 | +:error |
| 173 | +@echo FAILED |
| 174 | +:eof |
0 commit comments