Skip to content

Commit

Permalink
Meson: Add license, minimum version, fix PCH
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Feb 19, 2024
1 parent aa74a26 commit 4f839f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
project('CMaNGOS WotLK', 'cpp', 'c',
license: 'GPL-2.0-only',
meson_version: '>=1.3.1',
default_options : ['cpp_std=vc++17,c++17', 'buildtype=release', 'warning_level=0', 'default_library=static'])

if build_machine.system() == 'windows'
Expand Down
2 changes: 1 addition & 1 deletion src/game/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ endif
if not get_option('PCH')
pch_files = []
else
pch_files = ['../game/pchdef.h', '../game/pchdef.cpp']
pch_files = ['../game/pchdef.h']
endif

game_args = ['-DDT_POLYREF64', '-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0']
Expand Down
2 changes: 1 addition & 1 deletion src/shared/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ actual_rev = vcs_tag(
if not get_option('PCH')
pch_files = []
else
pch_files = ['../shared/pchdef.h', '../shared/pchdef.cpp']
pch_files = ['../shared/pchdef.h']
endif

if get_option('BUILD_GAME_SERVER') or get_option('BUILD_LOGIN_SERVER') or get_option('BUILD_EXTRACTORS')
Expand Down

0 comments on commit 4f839f1

Please sign in to comment.