determine the path for exe in build.ninja

24 views
Skip to first unread message

Usha Nayak

unread,
Oct 26, 2022, 3:36:38 PM10/26/22
to gyp-developer
Hello,

I'm new to gyp/ninja build system and would appreciate few pointers.

When I built an application using gyp/ninja on windows, 

I see 'build.ninja' with following configuration:
cl_x64 = "c:\apps\MVS17\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe"
cl_x86 = "c:\apps\MVS17\VC\Tools\MSVC\14.29.30133\bin\HostX64\x86\cl.exe"
cc = UNSET
cxx = UNSET
ld = link.exe
idl = midl.exe
ar = lib.exe
rc = rc.exe
ml_x86 = ml.exe
ml_x64 = ml64.exe
mt = mt.exe

I like to determine the path for all other executables as well namely, link.exe ?

During building, the output of the application shows :
[1/854] ninja -t msvc -e environment.x64 -- "c:\apps\MVS17\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe" /nologo /showIncludes /FC @obj\lib\zlib\nss_zlib.gzlib.obj.rsp /c ..\..\lib\zlib\gzlib.c /Foobj\lib\zlib\nss_zlib.gzlib.obj /Fdobj\lib\zlib\nss_zlib.c.pdb

Based on it, I'm assuming the path for link.exe is c:\apps\MVS17\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64 ?

It would be good to know for sure. I tried modifying ninja.py to get information on executables. Unfortunately, I haven't been quite successful in doing so. On further checking with ninja group, it came to my attention to look into gyp configuration to ensure it writes the correct paths for ld, idl, ar, etc. If you could let me know where to look for or what modification to do, that would be greatly appreciated. 

Thanks.
Reply all
Reply to author
Forward
0 new messages