AMBuilder 664 B

123456789101112131415161718192021222324252627
  1. # vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
  2. import os
  3. if not "SM" in globals():
  4. SM = Extension
  5. projectName = 'Voice'
  6. project = SM.HL2Project(builder, projectName + '.ext')
  7. project.sources += [
  8. 'extension.cpp',
  9. 'ringbuffer.cpp',
  10. '../../public/smsdk_ext.cpp'
  11. ]
  12. for sdk_name in SM.sdks:
  13. sdk = SM.sdks[sdk_name]
  14. binary = SM.HL2Config(project, projectName + '.ext', sdk)
  15. binary.compiler.cxxincludes += [
  16. os.path.join(SM.sm_root, 'public', 'extensions'),
  17. os.path.join(builder.sourcePath, 'silk')
  18. ]
  19. binary.compiler.linkflags += [
  20. os.path.join(builder.sourcePath, 'silk', 'libSKP_SILK_SDK.a')
  21. ]
  22. SM.extensions += builder.Add(project)