-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bindings.targets
41 lines (38 loc) · 1.31 KB
/
Bindings.targets
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
<!--
SPDX-FileCopyrightText: 2022 smdn <[email protected]>
SPDX-License-Identifier: MIT
-->
<Project>
<Target
Name="Bindings_Build"
BeforeTargets="DispatchToInnerBuilds;BeforeBuild"
Condition=" '$(GITHUB_ACTIONS)' != 'true' "
>
<!-- generate swig bindings -->
<Exec
Command="make bindings -f bindings.mk"
WorkingDirectory="$(Highlight_MakefileDirectory)"
IgnoreExitCode="true"
>
<Output TaskParameter="ExitCode" PropertyName="_MakeBindingsExitCode"/>
</Exec>
<PropertyGroup>
<_MakeBindingsResult>false</_MakeBindingsResult>
<_MakeBindingsResult Condition=" '$(_MakeBindingsExitCode)' == '' ">true</_MakeBindingsResult>
<_MakeBindingsResult Condition=" '$(_MakeBindingsExitCode)' == '0' ">true</_MakeBindingsResult>
<_MakeBindingsResult Condition=" '$(_MakeBindingsExitCode)' == '-1' ">true</_MakeBindingsResult>
</PropertyGroup>
<Warning
Text="Failed to generate or update SWIG bindings."
Condition=" '$(_MakeBindingsResult)' != 'true' "
/>
</Target>
<Target
Name="BindingSource_Clean"
AfterTargets="Clean"
Condition=" '$(GITHUB_ACTIONS)' != 'true' "
>
<!-- clean swig bindings -->
<Exec Command="make clean-bindings -f bindings.mk" WorkingDirectory="$(Highlight_MakefileDirectory)" />
</Target>
</Project>