Can MSBuild be used to build a C++ project under ARM?

前端 未结 1 565
一生所求
一生所求 2021-01-24 22:24

I\'m testing the feasibility of using MSBuild to perform an ARM build of an existing C++ project for Windows Phone and Windows Store. On Windows 7 with VS2012, I opened a Visual

1条回答
  •  孤独总比滥情好
    2021-01-24 22:42

    Yes, this is absolutely possible.

    The build system for libvpx generates vcxproj/sln files, including support for the ARM platform, and these can be built both with msbuild.exe or opened in Visual Studio.

    The script that generates the project files can be found at https://chromium.googlesource.com/webm/libvpx/+/8b5eddf709b/build/make/gen_msvs_vcxproj.sh. If you want to try it out for yourself (to look at the actual generated project files), clone libvpx, and generate the visual studio project files (targeting Visual Studio 2012) like this (within an MSYS shell, in a directory outside of the libvpx directory):

    ../libvpx/configure --target=armv7-win32-vs11
    make
    

    (It might also work if you just run this within the libvpx directory with ./configure, but I only verified it in a separate directory.)

    The make step will also invoke msbuild.exe if found in the path. If not, open a separate shell where you've got msbuild.exe in the path, and build it like this:

    msbuild vpx.sln -m -t:Build -p:Configuration=Release -p:Platform=ARM
    

    0 讨论(0)
提交回复
热议问题