2009-08-30 09:46:56 +02:00
|
|
|
# vim: set ts=2 sw=2 tw=99 noet ft=python:
|
|
|
|
compiler = SM.DefaultExtCompiler('extensions/geoip')
|
|
|
|
|
|
|
|
extension = AMBuild.AddJob('geoip.ext')
|
|
|
|
binary = Cpp.LibraryBuilder('geoip.ext', AMBuild, extension, compiler)
|
|
|
|
binary.AddSourceFiles('extensions/geoip', [
|
|
|
|
'extension.cpp',
|
|
|
|
'GeoIP.c',
|
|
|
|
'sdk/smsdk_ext.cpp'
|
|
|
|
])
|
|
|
|
if AMBuild.target['platform'] == 'windows':
|
|
|
|
binary['POSTLINKFLAGS'].append('wsock32.lib')
|
|
|
|
SM.AutoVersion('extensions/geoip', binary)
|
2013-03-17 22:00:28 +01:00
|
|
|
SM.ExtractDebugInfo(extension, binary)
|
2009-08-30 09:46:56 +02:00
|
|
|
binary.SendToJob()
|
2012-04-14 02:12:24 +02:00
|
|
|
|