-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMSPythonCore.mke
More file actions
93 lines (71 loc) · 3.06 KB
/
MSPythonCore.mke
File metadata and controls
93 lines (71 loc) · 3.06 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#--------------------------------------------------------------------------------------
#
# $Source: MSPython\MSPythonCore.mke $
#
# $Copyright: (c) 2023 Bentley Systems, Incorporated. All rights reserved. $
#
#--------------------------------------------------------------------------------------
appName = MSPythonCore
%if defined (BSIBUILD)
MSPythonSrc = $(SrcRoot)MSPython/
%else
MSPythonSrc = $(SrcRoot)
%endif
PolicyFile = $(MSPythonSrc)/MSPythonAssertPolicy.mki
SolutionPolicyMki = $(MSPythonSrc)/MSPythonSolutionPolicy.mki
%include mdl.mki
#----------------------------------------------------------------------
# Define macros specific to this program
#----------------------------------------------------------------------
baseDir = $(_MakeFilePath)
#----------------------------------------------------------------------
# Create output directories
#----------------------------------------------------------------------
o = $(out)MSPythonCore/
always:
!~@mkdir $(o)
always:
~linkdir "$(BuildContext)PublicAPI/MsPythonCore=$(_MakeFilePath)/PublicAPI/MSPythonCore/"
#---------------------------------------------
# Compile the source files
#---------------------------------------------
MultiCompileDepends = $(_MakeFileSpec)
PchCompiland = $(baseDir)MSPythonPCH.cpp
PchOutputDir = $(o)
PchArgumentsDepends = $(MultiCompileDepends)
PchExtraOptions + -Zm170 -wd4456 -wd4457 -wd4459 -wd4311 -wd4312 -wd4302 -wd4471 -wd4653 -wd4652 -wd4651
%include $(MSPythonSrc)/build/publicSDK/PreCompileHeader.mki
CCPchOpts = $(UsePrecompiledHeaderOptions)
dependencies = $(baseDir)MSPythonPCH.h
%include MultiCppCompileRule.mki
%include $(_MakeFilePath)MSPythonCore/ScriptEngineManager/ScriptEngineManager.mki
%include MultiCppCompileGo.mki
CCPchOpts =
#----------------------------------------------------------------------
# Set up to use dlmlink.mki
#----------------------------------------------------------------------
DLM_NAME = $(appName)
DLM_DEST = $(o)
DLM_EXPORT_DEST = $(o)
DLM_OBJECT_DEST = $(o)
DLM_LIBDEF_SRC = $(baseDir)
DLM_OBJECT_FILES = $(MultiCompileObjectList) \
$(o)MSPythonPCH$(oext)
DLM_NOENTRY = 1
DLM_NO_INITIALIZE_FUNCTION = 1
DLM_NO_DLS = 1
DLM_NO_DEF = 1
LINKER_LIBRARIES = $(PythonLibName) \
$(ContextSubpartsLibs)Bentley.lib \
$(ContextSubpartsLibs)BentleyAllocator.lib \
$(ContextSubpartsLibs)DgnPlatform.lib \
$(ContextSubpartsLibs)RmgrTools.lib \
$(ContextSubpartsLibs)mdlbltin.lib
DLM_CONTEXT_LOCATION = $(BuildContext)Delivery/
%if defined (BSI)
DLM_LIB_CONTEXT_LOCATION = $(BuildContext)Delivery/
DLM_CREATE_LIB_CONTEXT_LINK = 1
%else
DLM_LIB_CONTEXT_LOCATION = $(ContextSubpartsLibs)
%endif
%include dlmlink.mki