Fixing windows build.

This commit is contained in:
Ben Vanik 2015-08-18 14:40:47 -07:00
parent 7c98450403
commit e28427bd7d
2 changed files with 12 additions and 8 deletions

View File

@ -25,6 +25,7 @@ local function match_platform_files(base_path, base_match)
base_path.."/"..base_match.."_linux.h",
base_path.."/"..base_match.."_linux.cc",
})
filter({})
end
-- Adds all .h and .cc files in the current path that match the current platform

View File

@ -3,8 +3,17 @@ project("gflags")
uuid("e319da87-75ed-4517-8f65-bd25e9cc02a3")
kind("StaticLib")
language("C++")
links({
})
-- These win32-specific overrides must come before others.
filter("platforms:Windows")
defines({
"PATH_SEPARATOR=%%27\\\\%%27",
})
includedirs({
"gflags/src/windows",
})
filter({})
defines({
"GFLAGS_DLL_DECL=",
"GFLAGS_DLL_DEFINE_FLAG=",
@ -22,12 +31,6 @@ project("gflags")
"gflags/src/util.h",
})
filter("platforms:Windows")
defines({
"PATH_SEPARATOR=%%27\\\\%%27",
})
includedirs({
"gflags/src/windows",
})
files({
"gflags/src/windows/config.h",
"gflags/src/windows/gflags/gflags.h",