source-engine/scripts/waifulib/mm_hook.py

5 lines
215 B
Python
Raw Normal View History

2022-11-20 14:47:32 +00:00
from waflib import TaskGen
@TaskGen.extension('.mm')
def mm_hook(self, node):
"""Alias .mm files to be compiled the same as .cpp files, gcc will do the right thing."""
return self.create_compiled_task('cxx', node)