Skip to content

Commit

Permalink
change pchdef in shared
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Oct 23, 2022
1 parent 97e4afe commit 85f588d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/game/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ game_sources = [
'Arena/ArenaTeam.cpp',
'Arena/ArenaTeamHandler.cpp',
'VoiceChat/VoiceChatHandler.cpp',
'pchdef.cpp',
'DBScripts/ScriptMgr.cpp',
'Maps/SpawnGroup.cpp',
'Maps/GridMap.cpp',
Expand Down
8 changes: 7 additions & 1 deletion src/shared/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ shared_sources = [
'Util.cpp',
'Multithreading/Messager.cpp',
'Log.cpp',
'pchdef.cpp',
'ProgressBar.cpp',
'Threading.cpp',
'ByteBuffer.cpp',
Expand Down Expand Up @@ -74,11 +73,18 @@ actual_rev = vcs_tag(
replace_string: '@REVISION_DATE@'
)

if not get_option('PCH')
pch_files = []
else
pch_files = ['../shared/pchdef.h', '../shared/pchdef.cpp']
endif

if get_option('BUILD_GAME_SERVER') or get_option('BUILD_LOGIN_SERVER')
sharedlib = static_library('shared',
[actual_rev, shared_sources],
include_directories: [global_includes, shared_inc],
dependencies: [zlib_dep, boost_dep, mariadb_dep, mysql_dep, postgresql_dep, openssl_dep, utfcpp_dep],
cpp_pch: pch_files,
link_with: [frameworklib],
install : false
)
Expand Down

0 comments on commit 85f588d

Please sign in to comment.