FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Source.Python/src/makefiles/shared.cmake at master · Source-Python-Dev-Team/Source.Python · GitHub
Source-Python-Dev-Team
Source.Python
Repository navigation
Code
Issues
9
(9)
Pull requests
11
(11)
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
Source.Python
/
src
/
makefiles
/
shared.cmake
Copy path
More file actions
More file actions
Latest commit
History
History
History
87 lines (77 loc) · 3.38 KB
Breadcrumbs
Source.Python
/
src
/
makefiles
/
shared.cmake
Copy path
File metadata and controls
87 lines (77 loc) · 3.38 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
------------------------------------------------------------------
#
File: src/makefiles/shared.cmake
#
Purpose: This is the base Win32 CMake file which sets a bunch of
#
shared flags across all Win32 builds.
#
------------------------------------------------------------------
#
------------------------------------------------------------------
#
We only need a release and debug configuration.
#
------------------------------------------------------------------
Set
(
CMAKE_CONFIGURATION_TYPES
"Debug;Release"
CACHE
STRING
"Only do Release and Debug"
FORCE
)
#
------------------------------------------------------------------
#
Setup include paths.
#
------------------------------------------------------------------
Set
(SOURCESDK_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/hl2sdk)
Set
(THIRDPARTY_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/thirdparty)
#
------------------------------------------------------------------
#
SDK Directories.
#
------------------------------------------------------------------
Set
(SOURCESDK
${SOURCESDK_DIR}
/
${BRANCH}
)
Set
(SOURCESDK_LIB
${SOURCESDK}
/lib)
#
------------------------------------------------------------------
#
Boost specific.
#
------------------------------------------------------------------
Set
(BOOSTSDK
${THIRDPARTY_DIR}
/boost)
Set
(BOOSTSDK_INCLUDE
${BOOSTSDK}
)
#
..needed to allow #include <boost/xx.hpp>
Set
(BOOSTSDK_LIB
${BOOSTSDK}
/lib)
#
------------------------------------------------------------------
#
Dyncall specific.
#
------------------------------------------------------------------
Set
(DYNCALLSDK
${THIRDPARTY_DIR}
/dyncall)
Set
(DYNCALLSDK_INCLUDE
${DYNCALLSDK}
/include)
Set
(DYNCALLSDK_LIB
${DYNCALLSDK}
/lib)
#
------------------------------------------------------------------
#
AsmJit specific.
#
------------------------------------------------------------------
Set
(ASMJITSDK
${THIRDPARTY_DIR}
/AsmJit)
Set
(ASMJITSDK_INCLUDE
${ASMJITSDK}
/include)
Set
(ASMJITSDK_LIB
${ASMJITSDK}
/lib)
#
------------------------------------------------------------------
#
DynamicHooks specific.
#
------------------------------------------------------------------
Set
(DYNAMICHOOKSSDK
${THIRDPARTY_DIR}
/DynamicHooks)
Set
(DYNAMICHOOKSSDK_INCLUDE
${DYNAMICHOOKSSDK}
/include)
Set
(DYNAMICHOOKSSDK_LIB
${DYNAMICHOOKSSDK}
/lib)
#
------------------------------------------------------------------
#
Include directories
#
------------------------------------------------------------------
Include_Directories
(
${SOURCESDK}
${SOURCESDK}
/common
${SOURCESDK}
/common/protobuf-2.5.0/src
${SOURCESDK}
/game/shared
${SOURCESDK}
/game/server
${SOURCESDK}
/public
${SOURCESDK}
/public/tier0
${SOURCESDK}
/public/tier1
${SOURCESDK}
/public/engine/protobuf
${DYNCALLSDK_INCLUDE}
${BOOSTSDK_INCLUDE}
${ASMJITSDK_INCLUDE}
${DYNAMICHOOKSSDK_INCLUDE}
${
CMAKE_CURRENT_SOURCE_DIR
}
/core
#
Hack but required.
)
#
------------------------------------------------------------------
#
This is required to get boost to statically link.
#
------------------------------------------------------------------
Add_Definitions
(
-DBOOST_PYTHON_STATIC_LIB
-DBOOST_PYTHON_SOURCE
-DBOOST_PYTHON_NO_LIB
)
#
------------------------------------------------------------------
#
The project.
#
------------------------------------------------------------------
Project
(source-python
C
CXX
)
Back
|
FazBrowse Home
|
New Git URL