This is a pretty big diff because SourceMod had lots of multi-arch workarounds that can now go away. I've also changed 'x64' to 'x86_64' in many places since this is how AMBuild normalizes it, and it's far too late to pick the shorter string, so we might as well suck it up. The --target-archs parameter has been replaced with --targets. It works the same way. The default behavior for SDK inclusion is now "present" instead of "all" since this lowers the burden of storing many SDKs. Official builds will still be made with --sdks=all.
		
			
				
	
	
		
			23 lines
		
	
	
		
			629 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			629 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
 | |
| import os
 | |
| 
 | |
| for cxx in builder.targets:
 | |
|   binary = SM.ExtLibrary(builder, cxx, 'topmenus.ext')
 | |
|   binary.compiler.cxxincludes += [
 | |
|     os.path.join(SM.mms_root, 'core', 'sourcehook'),
 | |
|   ]
 | |
|   if binary.compiler.family == 'gcc' or binary.compiler.family == 'clang':
 | |
|     binary.compiler.cxxflags += ['-fno-rtti']
 | |
|   elif binary.compiler.family == 'msvc':
 | |
|     binary.compiler.cxxflags += ['/GR-']
 | |
| 
 | |
|   binary.sources += [
 | |
|     'extension.cpp',
 | |
|     'smn_topmenus.cpp',
 | |
|     'TopMenu.cpp',
 | |
|     'TopMenuManager.cpp',
 | |
|     '../../public/smsdk_ext.cpp',
 | |
|   ]
 | |
| 
 | |
|   SM.extensions += [builder.Add(binary)]
 |