blob: ac30011b24028af6ab4f4d26f085206fdcd5ecd5 (
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
|
# -*- 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',
'user32'
]
)
ca = env.SharedLibrary(
target='mongoca',
source=[
'customaction.cpp',
'customaction.def',
],
# We don't want any special allocator here either.
LIBDEPS_NO_INHERIT=[
'$BUILD_DIR/third_party/shim_allocator',
],
)
|