AMBuilder 930 B

12345678910111213141516171819202122232425262728293031
  1. # vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
  2. import os, sys
  3. projectName = 'tf2econdynamic'
  4. sourceFiles = [
  5. 'mmsplugin.cpp',
  6. 'econmanager.cpp',
  7. ]
  8. ###############
  9. # Make sure to edit PackageScript, which copies your files to their appropriate locations
  10. # Simple extensions do not need to modify past this point.
  11. project = Extension.HL2Project(builder, projectName + '.ext')
  12. if os.path.isfile(os.path.join(builder.currentSourcePath, 'sdk', 'smsdk_ext.cpp')):
  13. # Use the copy included in the project
  14. project.sources += [os.path.join('sdk', 'smsdk_ext.cpp')]
  15. else:
  16. # Use the copy included with SM 1.6 and newer
  17. project.sources += [os.path.join(Extension.sm_root, 'public', 'smsdk_ext.cpp')]
  18. project.sources += sourceFiles
  19. for sdk_name in Extension.sdks:
  20. sdk = Extension.sdks[sdk_name]
  21. binary = Extension.HL2Config(project, projectName + '.ext.' + sdk.ext, sdk)
  22. Extension.extensions = builder.Add(project)