generated from PackProject/Kokeshi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.py
More file actions
77 lines (67 loc) · 3.28 KB
/
configure.py
File metadata and controls
77 lines (67 loc) · 3.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env python3
# =============================================================================#
# #
# Kokeshi build script #
# #
# =============================================================================#
from tools.ninja_kokeshi import KokeshiProject
# =============================================================================#
# Project configuration #
# =============================================================================#
proj = KokeshiProject()
# =============================================================================#
# Game(s) that your mod should build for.
# By default, we try building for Wii Sports.
#
# You can build for multiple games by writing multiple pack names.
# Valid choices are: "sports" (Wii Sports), "play" (Wii Play), "resort" (WSR)
#
# To handle this in your code, expect preprocessor definitions of the format
# PACK_{NAME}, (i.e. PACK_SPORTS, PACK_RESORT).
#
# =============================================================================#
proj.packs = ["resort"]
# =============================================================================#
# Common compiler flags to apply across all code.
#
# See _cflags_common_internal inside 'ninja_kokeshi.py' to see
# which flags are already in use.
#
# =============================================================================#
proj.cflags_common = [
"-maxerrors 1",
]
# =============================================================================#
# Compiler flags to apply across all module code.
#
# =============================================================================#
proj.cflags_module = []
# =============================================================================#
# Compiler flags to apply across all module code in release builds.
# (We don't support multiple build targets yet, so this goes unused.)
#
# =============================================================================#
proj.cflags_release = []
# =============================================================================#
# Compiler flags to apply across all module code in debug builds.
# (We don't support multiple build targets yet, so this goes unused.)
#
# =============================================================================#
proj.cflags_debug = []
# =============================================================================#
# Whether to include the latest Git repository commit hash (shortened) as a
# preprocessor definition ("GIT_COMMIT_HASH") when compiling the module.
#
# NOTE: It is assumed that the Git repository is the current working directory,
# and that command-line Git is installed on the current machine.
#
# =============================================================================#
proj.use_git_commit_hash = True
# =============================================================================#
# Creates the Ninja build script for your configuration.
#
# To see additional project settings, see KokeshiProject
# inside 'ninja_kokeshi.py'.
#
# =============================================================================#
proj.emit()