以下のgypファイルから.slnと.vcxprojを生成した後、msbuildは次のように失敗します。
"C:\ proj \ test \ test.sln"(デフォルトのターゲット)(1)->(ValidateSolutionConfigurationターゲット)->
C:\ proj \ test \ test.sln.metaproj:エラーMSB4126:構成で指定されたソリューション "デフォルト| X64 "は無効です。構成プロパティとプラットフォームプロパティを使用して有効なソリューション構成を指定するか(MSBuild.exe Solution.sln / p:Configuration = Debug / p:Platform = "Any CPU"など)、デフォルトのソリューション構成を使用するには、これらのプロパティを空白のままにしてください。[C:\ proj \ test \ test.sln]
gypにDefault | x64ソリューションを生成させるにはどうすればよいですか?
{
'targets': [
{
'target_name': 'test',
'type': 'executable',
'sources': [
'test.cpp',
],
},
],
}
おそらく、次のように、ターゲット構成を宣言し、それをデフォルト値として使用する必要がありますtarget_default
。
{
'target_defaults': {
'default_configuration': 'Release_x64',
'configurations':
{
'Debug': {
# configuration specific settings
},
'Release': {
# configuration specific settings
},
'Debug_x64': {
'inherit_from': ['Debug'],
'msvs_configuration_platform': 'x64',
},
'Release_x64': {
'inherit_from': ['Release'],
'msvs_configuration_platform': 'x64',
},
},
},
'targets': [
{
'target_name': 'test',
'type': 'executable',
'sources': [
'test.cpp',
],
},
],
}
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加