COMPILE::JS and COMPILE:SWC are just regular compile-time constants. As far
as I know, they receive no special treatment from the compiler. It's just a
convention used by the FlexJS framework projects to make the components
exclude certain code on some platforms. If you're targeting one platform,
there shouldn't be any need to exclude anything, so this project shouldn't
need COMPILE::JS at all.

Why do you feel that COMPILE::JS is needed?

- Josh

On Tue, Feb 21, 2017 at 11:12 AM, Carlos Rovira <carlosrov...@apache.org>
wrote:

> Hi,
>
> the problem arised by Chris in SpriteFlexJS branch shows that there's no
> COMPILE::JS or COMPILE::SWF. Since SpriteFlexJS is only JS, seems Lizhi
> doesn't need SWF platform.
>
> So I think he compiles in a way that only target JS platform and compiler
> doesn't fail when COMPILE::JS is not found. How does he make that? Or how
> could I do something like this?
>
> If we want to have SpriteFlexJS with us, I think one of the things to do is
> add those COMPILE::JS to the code.
>
> What do you think?
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Reply via email to