bgfx icon indicating copy to clipboard operation
bgfx copied to clipboard

genie can not generate the correct projects file on Windows VS2019 for ARM/ARM64

Open WenceyWang opened this issue 4 years ago • 4 comments

Describe the bug genie can not generate the correct projects file on Windows VS2019 ARM/ARM64

There are three problems. The first is the OutDir and IntDir is wrong.

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  <OutDir>..\..\win64_vs2019\bin\</OutDir>
  <IntDir>..\..\win64_vs2019\obj\x64\Debug\bgfx\</IntDir>
  <TargetName>bgfxDebug</TargetName>
  <TargetExt>.lib</TargetExt>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
  <OutDir>..\..\..\scripts\</OutDir>
  <IntDir>obj\ARM64\Debug\bgfx\</IntDir>
  <TargetName>bgfxDebug</TargetName>
  <TargetExt>.lib</TargetExt>
</PropertyGroup>

The second is that lacks links of psapi and gdi32. I found that there are configuration { "vs201*", "x32 or x64" } in genie.lua, which is strange.

The third one is that WindowsTargetPlatformVersion is still 8.1 which seems has been fixed up in https://github.com/bkaradzic/GENie/issues/467 but in fact nope.

To Reproduce ..\bx\tools\bin\windows\genie.exe --with-tools --with-examples --with-profiler --with-shared-lib --platform=ARM64 vs2019

Expected behavior A compilable vs project.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context

..\bx\tools\bin\windows\genie.exe  --version
GENie - Project generator tool version 1141 (commit 44918162588e56512ddac6264b08ca6ba4e67468)
https://github.com/bkaradzic/GENie

WenceyWang avatar Jan 10 '21 22:01 WenceyWang

There is also a problem that bgfx\3rdparty\glslang\build_info.h seems not had been generated in the correct position, which include path is bgfx\3rdparty\glslang\glslang\

WenceyWang avatar Jan 10 '21 22:01 WenceyWang

Which ARM64 Windows platform you're targeting? --platform=ARM64 definitely won't work because that's not how GENie is setup for my projects.

bkaradzic avatar Jan 11 '21 01:01 bkaradzic

I am targeting general desktop Windows on ARM64.

WenceyWang avatar Jan 11 '21 01:01 WenceyWang

Try using --vs=ARM64 (it's not going to work fully since there are no configurations for it, but platform inside VS might be selected correctly).

bkaradzic avatar Jan 11 '21 01:01 bkaradzic