blob: e2350401e0e4b34d1a423c47174c8d22fe25e9c4 (
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
|
# -*- mode: python -*-
Import("env")
Import("debugBuild")
env = env.Clone()
# Do not link with DLL version of the CRT.
# As part of install, we may need to install the CRT DLL but if it is not installed, we cannot run
# the installer if we dynamically linked against it.
#
bad_flags = [a for a in env['CCFLAGS'] if a.startswith("/M")]
for flag in bad_flags:
env['CCFLAGS'].remove(flag)
if debugBuild:
env['CCFLAGS'].append("/MTd")
else:
env['CCFLAGS'].append("/MT")
env.Append(LIBS=[
'msi.lib',
'user32.lib'
]
)
ca = env.SharedLibrary(
target='mongoca',
source=[
'customaction.cpp',
'customaction.def',
],
)
|