1
1
## get the options object and "unpack" it
2
2
3
- wii_exe_name = wii_options [0 ]
4
- wii_src_files = wii_options [1 ]
5
- wii_deps = wii_options [2 ]
3
+ exe_name = nintendo_options [0 ]
4
+ src_files = nintendo_options [1 ]
5
+ deps = nintendo_options [2 ]
6
6
7
7
8
8
# libraries
9
9
10
- wii_dependencies = [
10
+ dependencies = [
11
11
' freetype2' ,
12
12
' harfbuzz' ,
13
13
' ogg' ,
@@ -17,7 +17,7 @@ wii_dependencies = [
17
17
' zlib' ,
18
18
]
19
19
20
- wii_dependencies_native = [
20
+ dependencies_native = [
21
21
' bte' ,
22
22
' bz2' ,
23
23
' fat' ,
@@ -31,35 +31,35 @@ wii_dependencies_native = [
31
31
' wiiuse' ,
32
32
]
33
33
34
- foreach dep : wii_dependencies
35
- wii_deps += dependency (
34
+ foreach dep : dependencies
35
+ deps += dependency (
36
36
dep,
37
37
required : true ,
38
38
allow_fallback : false ,
39
39
native : false ,
40
40
)
41
41
endforeach
42
42
43
- wii_library_dirs = meson .get_external_property(' library_dirs' , ['' ])
44
- if wii_library_dirs .length() == 0
43
+ library_dirs = meson .get_external_property(' library_dirs' , ['' ])
44
+ if library_dirs .length() == 0
45
45
error (' property \' library_dirs\' has to be set!' )
46
46
endif
47
47
48
48
c = meson .get_compiler(' c' )
49
- foreach dep : wii_dependencies_native
50
- wii_deps += c.find_library (
49
+ foreach dep : dependencies_native
50
+ deps += c.find_library (
51
51
dep,
52
52
required : true ,
53
- dirs : wii_library_dirs ,
53
+ dirs : library_dirs ,
54
54
)
55
55
endforeach
56
56
57
57
## compilation
58
58
59
- wii_elf_file = build_target (
60
- wii_exe_name + ' .elf' ,
61
- wii_src_files ,
62
- dependencies : wii_deps ,
59
+ elf_file = build_target (
60
+ exe_name + ' .elf' ,
61
+ src_files ,
62
+ dependencies : deps ,
63
63
override_options : {
64
64
' warning_level' : ' 3' ,
65
65
' werror' : true ,
@@ -68,17 +68,17 @@ wii_elf_file = build_target(
68
68
target_type : ' executable' ,
69
69
)
70
70
71
- DOL_DEPS = [wii_elf_file ]
71
+ DOL_DEPS = [elf_file ]
72
72
73
73
74
74
elf2dol = find_program (' elf2dol' )
75
75
76
76
# elf2dol <exe_name>.elf <exe_name>.dol
77
77
custom_target (
78
- wii_exe_name + ' .dol' ,
79
- command : [elf2dol, wii_elf_file .full_path(), wii_exe_name + ' .dol' ],
78
+ exe_name + ' .dol' ,
79
+ command : [elf2dol, elf_file .full_path(), exe_name + ' .dol' ],
80
80
depends : DOL_DEPS,
81
- output : [wii_exe_name + ' .dol' ],
81
+ output : [exe_name + ' .dol' ],
82
82
build_by_default : true ,
83
83
)
84
84
@@ -88,7 +88,7 @@ use_meta_xml = ['true', 'True', '1', true].contains(
88
88
89
89
if use_meta_xml
90
90
91
- wii_meta_xml_conf = configuration_data (
91
+ meta_xml_conf = configuration_data (
92
92
{
93
93
' OOPETRIS_VERSION' : meson .project_version(),
94
94
' OOPETRIS_NAME' : oopetris_name,
@@ -98,10 +98,10 @@ if use_meta_xml
98
98
},
99
99
)
100
100
101
- wii_meta_xml = configure_file (
101
+ meta_xml = configure_file (
102
102
input : ' meta.xml.in' ,
103
103
output : ' meta.xml' ,
104
- configuration : wii_meta_xml_conf ,
104
+ configuration : meta_xml_conf ,
105
105
)
106
106
107
107
endif
0 commit comments