Skip to content

Commit f817ee3

Browse files
committed
add to scons +
1 parent efdd794 commit f817ee3

File tree

5 files changed

+52
-738
lines changed

5 files changed

+52
-738
lines changed

installer/osara.nsi

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ FunctionEnd
8181
Section "OSARA plug-in" SecPlugin
8282
SectionIn RO
8383
SetOutPath "$INSTDIR\UserPlugins"
84-
File "..\build\x86\reaper_osara32.dll"
84+
File "..\build\x86\reaper_z_osara32.dll"
8585
; Installing the 64 bit dll on a 32 bit system causes an error when REAPER starts up.
8686
; However, it's fine on a 64 bit system even with 32 bit REAPER.
8787
${If} ${RunningX64}
88-
File "..\build\x86_64\reaper_osara64.dll"
88+
File "..\build\x86_64\reaper_z_osara64.dll"
8989
${EndIf}
9090
SetOutPath "$INSTDIR\KeyMaps"
9191
File /oname=OSARA.ReaperKeyMap "..\config\windows\reaper-kb.ini"
@@ -115,8 +115,8 @@ Section "Replace existing key map with OSARA key map" SecKeyMap
115115
SectionEnd
116116

117117
Section "Uninstall"
118-
Delete "$INSTDIR\..\UserPlugins\reaper_osara32.dll"
119-
Delete "$INSTDIR\..\UserPlugins\reaper_osara64.dll"
118+
Delete "$INSTDIR\..\UserPlugins\reaper_z_osara32.dll"
119+
Delete "$INSTDIR\..\UserPlugins\reaper_z_osara64.dll"
120120
Delete "$INSTDIR\..\KeyMaps\OSARA.ReaperKeyMap"
121121
Delete "$INSTDIR\uninstall.exe"
122122
RMDir "$INSTDIR"

src/archBuild_sconscript

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# License: GNU General Public License version 2.0
66

77
import os.path
8+
from tools.kb2header import buildKeymapHeader
89

910
Import("env")
1011

@@ -72,6 +73,7 @@ if env["PLATFORM"] == "win32":
7273
"Advapi32",
7374
"UIAutomationCore",
7475
]
76+
keymapFile = '#config/windows/reaper-kb.ini'
7577

7678
else: # Mac
7779
swellDir = env.Dir("#include/WDL/WDL/swell")
@@ -103,6 +105,7 @@ else: # Mac
103105
res = env.Command(["reaper_osara.rc_mac_dlg", "reaper_osara.rc_mac_menu"], "reaper_osara.rc",
104106
[[php, "include/WDL/WDL/swell/swell_resgen.php", "$SOURCE"]])
105107
env.Depends("reaper_osara.cpp", res)
108+
keymapFile = '#config/mac/reaper-kb.ini'
106109

107110
def addExternalSources(dir, files):
108111
dir = env.Dir(dir)
@@ -122,7 +125,10 @@ addExternalSources("#include/tinygettext/src", (
122125
))
123126
addExternalSources("#include/fmt/src", ("format.cc", "os.cc"))
124127

128+
env.Command('osara_keymap.h', keymapFile, buildKeymapHeader)
129+
125130
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"],
127133
source=sources, LIBS=libs,
128134
)

0 commit comments

Comments
 (0)