Skip to content

Commit 1ad8ab5

Browse files
committed
project.xml: don't run flash macros if display is defined
1 parent ea5a82d commit 1ad8ab5

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

project.xml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@
1010

1111
<haxeflag name="--macro" value="include('feathers.validators')"/>
1212

13+
<!--
14+
use custom templates to build a SWC file when targeting Flash
15+
-->
1316
<template path="templates" if="flash"/>
1417

15-
<section if="flash">
18+
<!--
19+
don't remove dead code because other libraries that depend on
20+
Feathers UI and need to build .swc files too might need it
21+
-->
22+
<haxeflag name="-dce" value="no" if="flash"/>
23+
24+
<section if="flash !display">
1625
<source path="build_macros/flash"/>
1726
<haxeflag name="--macro" value="AddFlashPropertyMeta.find('feathers.validators')"/>
18-
<!--
19-
don't remove dead code because other libraries that depend on
20-
this one, and need to build .swc files too, might need it
21-
-->
22-
<haxeflag name="-dce" value="no"/>
2327
</section>
2428

2529
<section if="find_missing_docs">

0 commit comments

Comments
 (0)