From 94552e550357c8bb1d0f1559c1147a79c00dc495 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Tue, 29 Jul 2014 11:47:23 +0200 Subject: [PATCH] Geoip: Fix compilation #3 Update project files. --- dlls/geoip/AMBuilder | 5 ++++- dlls/geoip/msvc10/geoip.vcxproj | 14 ++++++++------ dlls/geoip/msvc10/geoip.vcxproj.filters | 24 +++++++++++++++--------- 3 files changed, 27 insertions(+), 16 deletions(-) diff --git a/dlls/geoip/AMBuilder b/dlls/geoip/AMBuilder index cd3ce025..66ddee96 100644 --- a/dlls/geoip/AMBuilder +++ b/dlls/geoip/AMBuilder @@ -3,9 +3,12 @@ import os.path binary = AMXX.Module(builder, 'geoip') +binary.compiler.defines += ['HAVE_STDINT_H'] +binary.compiler.includes += [os.path.join(builder.sourcePath, 'dlls', 'geoip', 'GeoIP2')] + binary.sources = [ 'sdk/amxxmodule.cpp', - 'GeoIP.c', + 'GeoIP2/maxminddb.cpp', 'geoip_amxx.cpp', ] diff --git a/dlls/geoip/msvc10/geoip.vcxproj b/dlls/geoip/msvc10/geoip.vcxproj index cc5e5fe3..fbfe39ff 100644 --- a/dlls/geoip/msvc10/geoip.vcxproj +++ b/dlls/geoip/msvc10/geoip.vcxproj @@ -52,8 +52,8 @@ Disabled - ..\;..\sdk;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;_USRDLL;GEOIP_EXPORTS;%(PreprocessorDefinitions) + ..\;..\sdk;..\GeoIP2;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;GEOIP_EXPORTS;HAVE_STDINT_H;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebug @@ -75,8 +75,8 @@ - ..\;..\sdk;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;_USRDLL;GEOIP_EXPORTS;%(PreprocessorDefinitions) + ..\;..\sdk;..\GeoIP2;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;GEOIP_EXPORTS;HAVE_STDINT_H;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreaded false @@ -95,14 +95,16 @@ + - + + + - diff --git a/dlls/geoip/msvc10/geoip.vcxproj.filters b/dlls/geoip/msvc10/geoip.vcxproj.filters index 514bdb69..be52e3c7 100644 --- a/dlls/geoip/msvc10/geoip.vcxproj.filters +++ b/dlls/geoip/msvc10/geoip.vcxproj.filters @@ -9,9 +9,6 @@ {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hpp;hxx;hm;inl;inc;xsd - - {2df41d4d-d80c-4557-88e6-0a8e902154d5} - {a6d73610-c960-4557-87c5-2d1b137ed3b3} @@ -21,17 +18,20 @@ {f31e7815-11bd-4a86-899e-43f85dfdc067} + + {0bd4b9fb-f847-4fe5-af3e-9000fc854c5c} + Source Files - - GeoIP - Module SDK\SDK Base + + GeoIP2 + @@ -40,15 +40,21 @@ Header Files - - GeoIP - Module SDK Module SDK\SDK Base + + GeoIP2 + + + GeoIP2 + + + GeoIP2 +