Skip to content

Commit

Permalink
Everything builds!
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammyjamjamman committed Aug 28, 2022
1 parent 3fc87de commit 1f48cca
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 28 deletions.
29 changes: 3 additions & 26 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(
['c', 'cpp'],
version: '3.13.0.999',
meson_version : '>= 0.53.2',
default_options: ['warning_level=1']
default_options: ['warning_level=1', 'buildtype=release']
)

# Setup compiler.
Expand All @@ -12,31 +12,8 @@ cc = meson.get_compiler('c')

add_global_arguments(['-DUSE_FTGL'], language: 'cpp')

#add_global_arguments(
# [
# # '-DUSE_STREFLOP',
# '-DSTREFLOP_SOFT',
# # '-DSTREFLOP_RANDOM_GEN_SIZE=32',
# '-DLIBM_COMPILING_FLT32',
# '-DN_SPECIALIZED=32',
# '-frounding-math',
# '-fsignaling-nans',
# # '-Wno-switch',
# # '-Wuninitialized',
# # '-Wsign-compare',
# # '-Wunused-function',
# # '-Wunused-variable',
# # '-Wreturn-type',
# '-fno-strict-aliasing',
# '-DHAVE_SYS_IOCTL_H',
# '-DUNICODE',
# # '-O3',
# # '-w',
# ],
# language: 'cpp')

subdir('source/shared_lib')
subdir('source/glest_game')
subdir('source/glest_map_editor')

#subdir('source')
subdir('source/g3d_viewer')
subdir('source/tools/glexemel')
45 changes: 45 additions & 0 deletions source/g3d_viewer/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
src_g3d_viewer = [
'main.cpp',
'renderer.cpp',
'../glest_game/global/config.cpp',
'../glest_game/graphics/unit_particle_type.cpp',
'../glest_game/graphics/particle_type.cpp',

]

inc_common = [
'../shared_lib/include/graphics',
'../shared_lib/include/platform/sdl',
'../shared_lib/include/platform/common',
'../shared_lib/include/util',
'../shared_lib/include/xml',
'../shared_lib/include/map',
'../shared_lib/include/graphics/gl',
'../shared_lib/include/sound',
'../glest_game/global',
'../glest_game/game',
'../glest_game/graphics',
'../glest_game/facilities',
'../glest_game/sound',
]

dep_xercesc = dependency('XercesC')

executable('megaglest_g3d_viewer',
src_g3d_viewer,
include_directories: inc_common,
dependencies: [
dep_libmegaglest,
dep_wx,
dep_sdl,
dep_gl,
dep_x11,
dep_jpeg,
dep_png,
dep_glew,
dep_xercesc
],
# cpp_args: [
# '-DNDEBUG',
# ]
)
1 change: 0 additions & 1 deletion source/glest_map_editor/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ inc_common = [
'../glest_game/global',
'../glest_game/game',
'../glest_game/facilities',
'.',
]

dep_wx = dependency('wxwidgets', version : '>=3.0.0', modules : ['gl', 'core', 'base'])
Expand Down
1 change: 0 additions & 1 deletion source/meson.build

This file was deleted.

8 changes: 8 additions & 0 deletions source/tools/glexemel/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
executable('g2xml',
'g2xml.c'
)

executable('xml2g',
'xml2g.c',
dependencies: dependency('libxml2')
)

0 comments on commit 1f48cca

Please sign in to comment.