summaryrefslogtreecommitdiff
path: root/third_party/gflags.lua
blob: edb9a4eb6720cc105162fe472632f6a1f4d55421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
group("third_party")
project("gflags")
  uuid("e319da87-75ed-4517-8f65-bd25e9cc02a3")
  kind("StaticLib")
  language("C++")

  -- 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=",
    "GFLAGS_DLL_DECLARE_FLAG=",
    "_LIB",
  })
  includedirs({
    "gflags/src",
  })
  files({
    "gflags/src/gflags.cc",
    "gflags/src/gflags_completions.cc",
    "gflags/src/gflags_reporting.cc",
    "gflags/src/mutex.h",
    "gflags/src/util.h",
  })
  filter("platforms:Windows")
    files({
      "gflags/src/windows/config.h",
      "gflags/src/windows/gflags/gflags.h",
      "gflags/src/windows/gflags/gflags_completions.h",
      "gflags/src/windows/gflags/gflags_declare.h",
      "gflags/src/windows/port.cc",
      "gflags/src/windows/port.h",
    })