AMBuilder 947 B

1234567891011121314151617181920212223242526272829303132
  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. 'natives.cpp',
  8. ]
  9. ###############
  10. # Make sure to edit PackageScript, which copies your files to their appropriate locations
  11. # Simple extensions do not need to modify past this point.
  12. project = Extension.HL2Project(builder, projectName + '.ext')
  13. if os.path.isfile(os.path.join(builder.currentSourcePath, 'sdk', 'smsdk_ext.cpp')):
  14. # Use the copy included in the project
  15. project.sources += [os.path.join('sdk', 'smsdk_ext.cpp')]
  16. else:
  17. # Use the copy included with SM 1.6 and newer
  18. project.sources += [os.path.join(Extension.sm_root, 'public', 'smsdk_ext.cpp')]
  19. project.sources += sourceFiles
  20. for sdk_name in Extension.sdks:
  21. sdk = Extension.sdks[sdk_name]
  22. binary = Extension.HL2Config(project, projectName + '.ext.' + sdk.ext, sdk)
  23. Extension.extensions = builder.Add(project)