-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdumpbin64.bat
More file actions
33 lines (24 loc) · 1.23 KB
/
dumpbin64.bat
File metadata and controls
33 lines (24 loc) · 1.23 KB
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
@echo off
setlocal
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
set "CMAKE_BINARY_DIR=cmake-build-release-x64"
if /I NOT "%1"=="" set "CMAKE_BINARY_DIR=%1"
set "DUMPBIN_DIR=%CMAKE_BINARY_DIR:build=dump%"
pushd %~dp0
mkdir %DUMPBIN_DIR%
pushd %DUMPBIN_DIR%
dumpbin /headers ..\%CMAKE_BINARY_DIR%\lua.exe > lua.exe.headers.txt
dumpbin /exports ..\%CMAKE_BINARY_DIR%\lua.exe > lua.exe.exports.txt
dumpbin /dependents ..\%CMAKE_BINARY_DIR%\lua.exe > lua.exe.dependents.txt
dumpbin /imports ..\%CMAKE_BINARY_DIR%\lua.exe > lua.exe.imports.txt
dumpbin /headers ..\%CMAKE_BINARY_DIR%\luac.exe > luac.exe.headers.txt
dumpbin /exports ..\%CMAKE_BINARY_DIR%\luac.exe > luac.exe.exports.txt
dumpbin /dependents ..\%CMAKE_BINARY_DIR%\luac.exe > luac.exe.dependents.txt
dumpbin /imports ..\%CMAKE_BINARY_DIR%\luac.exe > luac.exe.imports.txt
dumpbin /headers ..\%CMAKE_BINARY_DIR%\lua54.dll > lua54.dll.headers.txt
dumpbin /exports ..\%CMAKE_BINARY_DIR%\lua54.dll > lua54.dll.exports.txt
dumpbin /dependents ..\%CMAKE_BINARY_DIR%\lua54.dll > lua54.dll.dependents.txt
dumpbin /imports ..\%CMAKE_BINARY_DIR%\lua54.dll > lua54.dll.imports.txt
popd
popd
endlocal