-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinclude.xml
More file actions
28 lines (23 loc) · 1.67 KB
/
Copy pathinclude.xml
File metadata and controls
28 lines (23 loc) · 1.67 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
<?xml version="1.0" encoding="utf-8"?>
<project>
<!-- templatePath copies pre-built hdlls into HL build output automatically -->
<templatePath name="templates" />
<!-- Fail COMPILATION when the FMOD SDK env vars are missing: lime ignores
postbuild failures, so this is the only check that reliably stops
`lime test` before a soundless game launches -->
<haxeflag name="--macro" value="haxefmod.tools.BuildCheck.verify()" />
<!-- C++ postbuild: copy FMOD runtime libs from $FMOD_SDK -->
<postbuild command="haxelib run haxefmod postbuild mac cpp ${haxelib:haxefmod}" if="mac" unless="hl" />
<postbuild command="haxelib run haxefmod postbuild linux cpp ${haxelib:haxefmod}" if="linux" unless="hl" />
<postbuild command="haxelib run haxefmod postbuild windows cpp ${haxelib:haxefmod}" if="windows" unless="hl" />
<!-- HL postbuild: copy FMOD runtime libs for HashLink targets -->
<postbuild command="haxelib run haxefmod postbuild mac hl ${haxelib:haxefmod}" if="mac hl" unless="html5" />
<postbuild command="haxelib run haxefmod postbuild linux hl ${haxelib:haxefmod}" if="linux hl" unless="html5" />
<postbuild command="haxelib run haxefmod postbuild windows hl ${haxelib:haxefmod}" if="windows hl" unless="html5" />
<!-- HTML5 dependencies (placeholders replaced by postbuild) -->
<dependency path="native/html5/fmodstudio.js" if="html5"/>
<assets path="native/html5/fmodstudio.wasm" rename="lib/fmodstudio.wasm" if="html5"/>
<dependency path="native/jaxe/jaxe.js" if="html5"/>
<!-- HTML5 postbuild: replace placeholder FMOD files with real ones from FMOD_SDK_WEB -->
<postbuild command="haxelib run haxefmod postbuild html5 html5 ${haxelib:haxefmod}" if="html5" />
</project>