Update AMBuilder, VS and MakeFile files

This commit is contained in:
Arkshine
2015-03-13 11:13:42 +01:00
parent aa629a76e7
commit 2204a83ec0
8 changed files with 33 additions and 27 deletions

View File

@ -3,13 +3,17 @@ import os.path
binary = AMXX.MetaModule(builder, 'geoip')
binary.compiler.cxxincludes += [
os.path.join(builder.currentSourcePath, '..', '..', 'third_party', 'libmaxminddb')
]
binary.compiler.defines += [
'HAVE_STDINT_H'
]
binary.sources = [
'../../public/sdk/amxxmodule.cpp',
'GeoIP2/maxminddb.c',
'../../third_party/libmaxminddb/maxminddb.c',
'geoip_main.cpp',
'geoip_natives.cpp',
'geoip_util.cpp',
@ -20,6 +24,5 @@ if builder.target_platform == 'windows':
if builder.target_platform == 'windows':
binary.compiler.postlink += ['ws2_32.lib']
binary.compiler.includes += [os.path.join(builder.sourcePath, 'dlls', 'geoip', 'GeoIP2')]
AMXX.modules += [builder.Add(binary)]