|
@@ -0,0 +1,31 @@
|
|
|
+project('catan_simulator', 'cpp')
|
|
|
+
|
|
|
+src = [
|
|
|
+ 'Main.cpp'
|
|
|
+]
|
|
|
+
|
|
|
+compiler = meson.get_compiler('cpp')
|
|
|
+args = compiler.get_supported_arguments([
|
|
|
+ '-Wcast-align=strict', '-pedantic', '-Wmissing-declarations', '-Wdate-time',
|
|
|
+ '-Winit-self', '-Woverlength-strings', '-Wsign-promo', '-Wnon-virtual-dtor',
|
|
|
+ '-Wconversion', '-Woverloaded-virtual', '-Wdeprecated-enum-enum-conversion',
|
|
|
+ '-Wdisabled-optimization', '-Winvalid-imported-macros', '-Wduplicated-cond',
|
|
|
+ '-Wdeprecated-enum-float-conversion', '-Wduplicated-branches', '-Wformat=2',
|
|
|
+ '-Wmissing-braces', '-Wsuggest-override', '-Wcast-qual', '-Wbidi-chars=any',
|
|
|
+ '-Wzero-as-null-pointer-constant', '-pedantic-errors', '-Wnull-dereference',
|
|
|
+ '-Wformat-signedness', '-Wfloat-equal', '-Wvolatile', '-Wctor-dtor-privacy',
|
|
|
+ '-Winfinite-recursion', '-Wshift-overflow=2', '-Wmultichar', '-Walloc-zero',
|
|
|
+ '-Wcomma-subscript', '-Wold-style-cast', '-Wwrite-strings', '-Wswitch-enum',
|
|
|
+ '-Wredundant-decls', '-Werror', '-Wsign-conversion', '-Walloca', '-Wshadow',
|
|
|
+ '-Winvalid-pch', '-Wdeprecated-copy-dtor', '-Wundef', '-Wdouble-promotion',
|
|
|
+ '-Warith-conversion', '-Wextra', '-Wtrivial-auto-var-init', '-Wlogical-op',
|
|
|
+ '-Wall', '-Wenum-conversion',
|
|
|
+])
|
|
|
+
|
|
|
+libgamingcore_proj = subproject('gaming-core')
|
|
|
+libgamingcore_dep = libgamingcore_proj.get_variable('gamingcore_dep')
|
|
|
+
|
|
|
+executable('catan_simulator',
|
|
|
+ sources: src,
|
|
|
+ dependencies : libgamingcore_dep,
|
|
|
+ cpp_args: args)
|