Application of Vs2012 in Linux development (3): Adding a new platform hi3516

Source: Internet
Author: User

Below we will add a new platform support for VS2012 , because recently in the hi3516with HiSilicon, choose it!

1.1Copy platform files

I always thought that to let VS support a new platform to write code, one day when looking at the MSBUILD directory suddenly found a magical directory:

The secret of the new platform is right here!!

Here the hi3516 originally did not have, just to add to hi3516 this platform support and added to. We have a copy of the ARM directory, renamed hi3516.

Then change arm in the file name to hi3516, replacing the "arm" string in all files in the hi3516 directory with "hi3516"(performing a string operation), It's brutal, it's violent, but it works!

1.2Modify the registry to add a new platform

Next, modify the registry to import the following content (results from the ARM table entries):

[hkey_current_user\software\microsoft\visualstudio\11.0_config\vc\libraries\extended\hi3516]

"Version" = "50727.01"

"Install" =dword:00000001

"Installertype" = "MSI"

"SP" =dword:00000000

"Spindex" =dword:00000000

"Spname" = "RTM"

"Bld" = "50727"

"Rbld" = "00001"

"Paddedversion" = "5072700001"

[Hkey_users\s-1-5-21-3453089637-102051711-1108187228-1000\software\microsoft\visualstudio\11.0exp_config\vc\ LIBRARIES\EXTENDED\HI3516]

"Version" = "50727.01"

"Install" =dword:00000001

"Installertype" = "MSI"

"SP" =dword:00000000

"Spindex" =dword:00000000

"Spname" = "RTM"

"Bld" = "50727"

"Rbld" = "00001"

"Paddedversion" = "5072700001"

[hkey_local_machine\software\wow6432node\microsoft\visualstudio\11.0\vc\libraries\extended\hi3516]

"Version" = "50727.01"

"Install" =dword:00000001

"Installertype" = "MSI"

"SP" =dword:00000000

"Spindex" =dword:00000000

"Spname" = "RTM"

"Bld" = "50727"

"Rbld" = "00001"

"Paddedversion" = "5072700001"

[Hkey_users\. DEFAULT\SOFTWARE\MICROSOFT\VISUALSTUDIO\11.0_CONFIG\VC\LIBRARIES\EXTENDED\HI3516]

"Version" = "50727.01"

"Install" =dword:00000001

"Installertype" = "MSI"

"SP" =dword:00000000

"Spindex" =dword:00000000

"Spname" = "RTM"

"Bld" = "50727"

"Rbld" = "00001"

"Paddedversion" = "5072700001"

After you've done both of these things, you can add a new platform to your IDE project:

Unfortunately, we now look at the properties of the project as follows:

This is because MSBUILD has not yet seen the definition of the project properties.

1.3Import Project Property Definition

Open the vcxproj project file to view its imported properties:

<import project= "$ (vctargetspath) \microsoft.cpp.default.props"/>

<import condition= "$ (Platform) = = ' Win32 '" project= "$ (vctargetspath) \microsoft.cpp.targets"/>

We need to add HI3516 's Import properties:

<import condition= "$ (Platform) = = ' hi3516 '" project= "$ (vctargetspath) \microsoft.cpp.targets"/>

We are familiar with the properties of the project back!!!!

Application of Vs2012 in Linux development (3): Adding a new platform hi3516

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.