Skip to content

Commit 062e4b3

Browse files
authored
Merge pull request #191 from OpenBrickProtocolFoundation/format_meson_files
chore:format build files
2 parents 4da0b09 + 2abb1b4 commit 062e4b3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/libs/core/meson.build

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ subdir('hash-library')
88
subdir('helper')
99

1010
temp = core_lib.get('compile_args')
11-
temp += '-DOOPETRIS_LIBRARY_CORE_TYPE='+ (get_option('default_library') == 'static' ? '1' : '0')
11+
temp += '-DOOPETRIS_LIBRARY_CORE_TYPE=' + (get_option('default_library') == 'static' ? '1' : '0')
1212
core_lib += {'compile_args': temp}
1313
temp = 0
1414

15-
1615
liboopetris_core = library(
1716
'oopetris_core',
1817
core_src_files,

src/libs/recordings/meson.build

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ recordings_include_dir = include_dir / 'oopetris' / 'recordings'
66
subdir('utility')
77

88
temp = recordings_lib.get('compile_args')
9-
temp += '-DOOPETRIS_LIBRARY_RECORDINGS_TYPE='+ (get_option('default_library') == 'static' ? '1' : '0')
9+
temp += '-DOOPETRIS_LIBRARY_RECORDINGS_TYPE=' + (get_option('default_library') == 'static' ? '1' : '0')
1010
recordings_lib += {'compile_args': temp}
1111
temp = 0
1212

13-
1413
recordings_lib += {
1514
'deps': [recordings_lib.get('deps'), liboopetris_core_dep],
16-
'inc_dirs': [recordings_lib.get('inc_dirs'), include_directories('.')]
15+
'inc_dirs': [recordings_lib.get('inc_dirs'), include_directories('.')],
1716
}
1817

1918
liboopetris_recordings = library(

src/meson.build

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ if build_application
2323
graphics_lib += {
2424
'deps': [graphics_lib.get('deps'), liboopetris_recordings_dep],
2525
'inc_dirs': [graphics_lib.get('inc_dirs'), include_directories('.')],
26-
'compile_args' : [graphics_lib.get('compile_args'),
27-
'-DOOPETRIS_LIBRARY_GRAPHICS_TYPE='+
28-
(get_option('default_library') == 'static' ? '1' : '0')]
26+
'compile_args': [
27+
graphics_lib.get('compile_args'),
28+
'-DOOPETRIS_LIBRARY_GRAPHICS_TYPE='
29+
+ (get_option('default_library') == 'static' ? '1' : '0'),
30+
],
2931
}
3032

3133
liboopetris_graphics = library(

0 commit comments

Comments
 (0)