File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1795,10 +1795,12 @@ set(UNITY_SOURCE_NEO_WEAPONS
17951795 ${CMAKE_SOURCE_DIR } /game/shared/neo/weapons/weapon_zr68s.cpp
17961796)
17971797
1798- set_source_files_properties (
1799- ${UNITY_SOURCE_NEO_WEAPONS}
1800- PROPERTIES UNITY_GROUP neo_weapons_client
1801- )
1798+ if (OS_LINUX) # Windows have CHECK_DECLARE_CLASS to deal with
1799+ set_source_files_properties (
1800+ ${UNITY_SOURCE_NEO_WEAPONS}
1801+ PROPERTIES UNITY_GROUP neo_weapons_client
1802+ )
1803+ endif ()
18021804
18031805target_sources_grouped (
18041806 TARGET client
@@ -1906,10 +1908,12 @@ set(UNITY_SOURCE_HL2MP_WEAPONS
19061908 #${CMAKE_SOURCE_DIR}/game/shared/hl2mp/weapon_stunstick.cpp
19071909)
19081910
1909- set_source_files_properties (
1910- ${UNITY_SOURCE_HL2MP_WEAPONS}
1911- PROPERTIES UNITY_GROUP hl2mp_weapons_client
1912- )
1911+ if (OS_LINUX) # Windows have CHECK_DECLARE_CLASS to deal with
1912+ set_source_files_properties (
1913+ ${UNITY_SOURCE_HL2MP_WEAPONS}
1914+ PROPERTIES UNITY_GROUP hl2mp_weapons_client
1915+ )
1916+ endif ()
19131917
19141918target_sources_grouped (
19151919 TARGET client
Original file line number Diff line number Diff line change @@ -1648,10 +1648,12 @@ set(UNITY_SOURCE_NEO_WEAPONS
16481648 ${CMAKE_SOURCE_DIR } /game/shared/neo/weapons/weapon_zr68s.cpp
16491649)
16501650
1651- set_source_files_properties (
1652- ${UNITY_SOURCE_NEO_WEAPONS}
1653- PROPERTIES UNITY_GROUP neo_weapons_server
1654- )
1651+ if (OS_LINUX) # Windows have CHECK_DECLARE_CLASS to deal with
1652+ set_source_files_properties (
1653+ ${UNITY_SOURCE_NEO_WEAPONS}
1654+ PROPERTIES UNITY_GROUP neo_weapons_server
1655+ )
1656+ endif ()
16551657
16561658target_sources_grouped (
16571659 TARGET server
@@ -1763,10 +1765,12 @@ set(UNITY_SOURCE_HL2MP_WEAPONS
17631765 hl2mp/te_hl2mp_shotgun_shot.cpp
17641766)
17651767
1766- set_source_files_properties (
1767- ${UNITY_SOURCE_HL2MP_WEAPONS}
1768- PROPERTIES UNITY_GROUP hl2mp_weapons_server
1769- )
1768+ if (OS_LINUX) # Windows have CHECK_DECLARE_CLASS to deal with
1769+ set_source_files_properties (
1770+ ${UNITY_SOURCE_HL2MP_WEAPONS}
1771+ PROPERTIES UNITY_GROUP hl2mp_weapons_server
1772+ )
1773+ endif ()
17701774
17711775target_sources_grouped (
17721776 TARGET server
Original file line number Diff line number Diff line change @@ -114,17 +114,6 @@ class CBaseNetworkable;
114114
115115
116116#ifdef VALIDATE_DECLARE_CLASS
117- #ifdef NEO // Unity build
118- #define CHECK_DECLARE_CLASS ( DLLClassName, sendTable ) \
119- template <> int CheckDeclareClass_Access<sendTable::ignored>(sendTable::ignored *, const char *pIgnored) \
120- { \
121- return DLLClassName::CheckDeclareClass ( #DLLClassName ); \
122- } \
123- namespace sendTable \
124- { \
125- int verifyDeclareClass = CheckDeclareClass_Access( (sendTable::ignored*)0 , " " ); \
126- }
127- #else
128117 #define CHECK_DECLARE_CLASS ( DLLClassName, sendTable ) \
129118 template <typename T> int CheckDeclareClass_Access (T *); \
130119 template <> int CheckDeclareClass_Access<sendTable::ignored>(sendTable::ignored *, const char *pIgnored) \
@@ -135,7 +124,6 @@ class CBaseNetworkable;
135124 { \
136125 int verifyDeclareClass = CheckDeclareClass_Access( (sendTable::ignored*)0 ); \
137126 }
138- #endif
139127#else
140128 #define CHECK_DECLARE_CLASS ( DLLClassName, sendTable )
141129#endif
You can’t perform that action at this time.
0 commit comments