Skip to content

Commit 1f48cca

Browse files
Everything builds!
1 parent 3fc87de commit 1f48cca

File tree

5 files changed

+56
-28
lines changed

5 files changed

+56
-28
lines changed

meson.build

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project(
33
['c', 'cpp'],
44
version: '3.13.0.999',
55
meson_version : '>= 0.53.2',
6-
default_options: ['warning_level=1']
6+
default_options: ['warning_level=1', 'buildtype=release']
77
)
88

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

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

15-
#add_global_arguments(
16-
# [
17-
# # '-DUSE_STREFLOP',
18-
# '-DSTREFLOP_SOFT',
19-
# # '-DSTREFLOP_RANDOM_GEN_SIZE=32',
20-
# '-DLIBM_COMPILING_FLT32',
21-
# '-DN_SPECIALIZED=32',
22-
# '-frounding-math',
23-
# '-fsignaling-nans',
24-
# # '-Wno-switch',
25-
# # '-Wuninitialized',
26-
# # '-Wsign-compare',
27-
# # '-Wunused-function',
28-
# # '-Wunused-variable',
29-
# # '-Wreturn-type',
30-
# '-fno-strict-aliasing',
31-
# '-DHAVE_SYS_IOCTL_H',
32-
# '-DUNICODE',
33-
# # '-O3',
34-
# # '-w',
35-
# ],
36-
# language: 'cpp')
37-
3815
subdir('source/shared_lib')
3916
subdir('source/glest_game')
4017
subdir('source/glest_map_editor')
41-
42-
#subdir('source')
18+
subdir('source/g3d_viewer')
19+
subdir('source/tools/glexemel')

source/g3d_viewer/meson.build

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
src_g3d_viewer = [
2+
'main.cpp',
3+
'renderer.cpp',
4+
'../glest_game/global/config.cpp',
5+
'../glest_game/graphics/unit_particle_type.cpp',
6+
'../glest_game/graphics/particle_type.cpp',
7+
8+
]
9+
10+
inc_common = [
11+
'../shared_lib/include/graphics',
12+
'../shared_lib/include/platform/sdl',
13+
'../shared_lib/include/platform/common',
14+
'../shared_lib/include/util',
15+
'../shared_lib/include/xml',
16+
'../shared_lib/include/map',
17+
'../shared_lib/include/graphics/gl',
18+
'../shared_lib/include/sound',
19+
'../glest_game/global',
20+
'../glest_game/game',
21+
'../glest_game/graphics',
22+
'../glest_game/facilities',
23+
'../glest_game/sound',
24+
]
25+
26+
dep_xercesc = dependency('XercesC')
27+
28+
executable('megaglest_g3d_viewer',
29+
src_g3d_viewer,
30+
include_directories: inc_common,
31+
dependencies: [
32+
dep_libmegaglest,
33+
dep_wx,
34+
dep_sdl,
35+
dep_gl,
36+
dep_x11,
37+
dep_jpeg,
38+
dep_png,
39+
dep_glew,
40+
dep_xercesc
41+
],
42+
# cpp_args: [
43+
# '-DNDEBUG',
44+
# ]
45+
)

source/glest_map_editor/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ inc_common = [
1414
'../glest_game/global',
1515
'../glest_game/game',
1616
'../glest_game/facilities',
17-
'.',
1817
]
1918

2019
dep_wx = dependency('wxwidgets', version : '>=3.0.0', modules : ['gl', 'core', 'base'])

source/meson.build

Lines changed: 0 additions & 1 deletion
This file was deleted.

source/tools/glexemel/meson.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
executable('g2xml',
2+
'g2xml.c'
3+
)
4+
5+
executable('xml2g',
6+
'xml2g.c',
7+
dependencies: dependency('libxml2')
8+
)

0 commit comments

Comments
 (0)