5
5
# License: GNU General Public License version 2.0
6
6
7
7
import os.path
8
+ from tools.kb2header import buildKeymapHeader
8
9
9
10
Import("env")
10
11
@@ -72,6 +73,7 @@ if env["PLATFORM"] == "win32":
72
73
"Advapi32",
73
74
"UIAutomationCore",
74
75
]
76
+ keymapFile = '#config/windows/reaper-kb.ini'
75
77
76
78
else: # Mac
77
79
swellDir = env.Dir("#include/WDL/WDL/swell")
@@ -103,6 +105,7 @@ else: # Mac
103
105
res = env.Command(["reaper_osara.rc_mac_dlg", "reaper_osara.rc_mac_menu"], "reaper_osara.rc",
104
106
[[php, "include/WDL/WDL/swell/swell_resgen.php", "$SOURCE"]])
105
107
env.Depends("reaper_osara.cpp", res)
108
+ keymapFile = '#config/mac/reaper-kb.ini'
106
109
107
110
def addExternalSources(dir, files):
108
111
dir = env.Dir(dir)
@@ -122,7 +125,10 @@ addExternalSources("#include/tinygettext/src", (
122
125
))
123
126
addExternalSources("#include/fmt/src", ("format.cc", "os.cc"))
124
127
128
+ env.Command('osara_keymap.h', keymapFile, buildKeymapHeader)
129
+
125
130
env.SharedLibrary(
126
- target="reaper_osara%s" % env["libSuffix"],
131
+ #Hack: Load osara after sws to allow the keyboard shortcuts to be initialized
132
+ target="reaper_z_osara%s" % env["libSuffix"],
127
133
source=sources, LIBS=libs,
128
134
)
0 commit comments