blob: 0693c6223e0b22d3ae91b8091a86788113db002e (
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
|
# -*- 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_GLOBAL=[
dep
for dep in env.get('LIBDEPS_GLOBAL', [])
if dep and not dep.endswith('shim_allocator')
],
# TODO: Remove when SERVER-48291 is merged into stable build tools
DISABLE_ALLOCATOR_SHIM_INJECTION=True,
)
|