'PostBuildEvent':{'Command':r'copy ...'}, |
|
},
Try this patch to MSVSSettings.py
--- /private/var/folders/h4/_5_dh0d52mndz_97wvnmqd3w0000gn/T/Y3JnJa_MSVSSettings.py 2018-11-16 09:15:06.000000000
+++ /private/var/folders/h4/_5_dh0d52mndz_97wvnmqd3w0000gn/T/IVFhHa_MSVSSettings.py 2018-11-16 09:15:06.000000000
@@ -536,21 +536,23 @@
_link = _Tool('VCLinkerTool', 'Link')
_midl = _Tool('VCMIDLTool', 'Midl')
_rc = _Tool('VCResourceCompilerTool', 'ResourceCompile')
_lib = _Tool('VCLibrarianTool', 'Lib')
_manifest = _Tool('VCManifestTool', 'Manifest')
_masm = _Tool('MASM', 'MASM')
+_postbuild = _Tool('', 'PostBuildEvent')
_AddTool(_compile)
_AddTool(_link)
_AddTool(_midl)
_AddTool(_rc)
_AddTool(_lib)
_AddTool(_manifest)
_AddTool(_masm)
+_AddTool(_postbuild)
# Add sections only found in the MSBuild settings.
_msbuild_validators[''] = {}
_msbuild_validators['ProjectReference'] = {}
_msbuild_validators['ManifestResourceCompile'] = {}
# Descriptions of the compiler options, i.e. VCCLCompilerTool in MSVS and
@@ -717,12 +719,15 @@
_MSBuildOnly(_compile, 'PreprocessOutputPath', _string) # /Fi
_MSBuildOnly(_compile, 'ProcessorNumber', _integer) # the number of processors
_MSBuildOnly(_compile, 'TrackerLogDirectory', _folder_name)
_MSBuildOnly(_compile, 'TreatSpecificWarningsAsErrors', _string_list) # /we
_MSBuildOnly(_compile, 'UseUnicodeForAssemblerListing', _boolean) # /FAu
+_MSBuildOnly(_postbuild, 'Message', _string)
+_MSBuildOnly(_postbuild, 'Command', _string)
+
# Defines a setting that needs very customized processing
_CustomGeneratePreprocessedFile(_compile, 'GeneratePreprocessedFile')
# Directives for converting MSVS VCLinkerTool to MSBuild Link.
# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\link.xml" for
Quoting Alen Ning <alenn...@gmail.com>:
I tried to do it, but i got some errorsWarning: unrecognized tool PostBuildEventTraceback (most recent call last):File "E:\gyp\gyp_main.py", line 16, in <module>sys.exit(gyp.script_main())File "E:\gyp\pylib\gyp\__init__.py", line 545, in script_mainreturn main(sys.argv[1:])File "E:\gyp\pylib\gyp\__init__.py", line 538, in mainreturn gyp_main(args)File "E:\gyp\pylib\gyp\__init__.py", line 523, in gyp_maingenerator.GenerateOutput(flat_list, targets, data, params)File "E:\gyp\pylib\gyp\generator\msvs.py", line 2045, in GenerateOutputgenerator_flags))File "E:\gyp\pylib\gyp\generator\msvs.py", line 963, in _GenerateProjectreturn _GenerateMSBuildProject(project, options, version, generator_flags)File "E:\gyp\pylib\gyp\generator\msvs.py", line 3364, in _GenerateMSBuildProject_FinalizeMSBuildSettings(spec, configuration)File "E:\gyp\pylib\gyp\generator\msvs.py", line 3147, in _FinalizeMSBuildSettings_ToolAppend(msbuild_settings, 'PostBuildEvent', 'Command', postbuild)File "E:\gyp\pylib\gyp\generator\msvs.py", line 249, in _ToolAppend_ToolSetOrAppend(tools, tool_name, setting, value, only_if_unset)File "E:\gyp\pylib\gyp\generator\msvs.py", line 272, in _ToolSetOrAppendvalue, setting, tool_name, str(tool[setting])))TypeError: Appending "['copy "..\\3rd\\orangefilter\\bin\\debug\\" "$(OutDir)" ']" to a non-list setting "Command" for tool "PostBuildEvent" is not allowed, previous value: copy "..\3rd\orangefilter\bin\debug\" "$(OutDir)"
gyp don't support PostBuildEvent key word
alan <apbi...@gmail.com> 于2018年11月14日周三 下午6:48写道:
--
---
You received this message because you are subscribed to the Google Groups "gyp-developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gyp-develope...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Alen NIng