Skip to content

typedef config file

Harbs edited this page Oct 19, 2017 · 3 revisions

Sample Config File for Typedefs

To use this file:

  1. Create a new file: src/main/config/compile-as-config.xml.
  2. Copy and paste the XML below.
  3. If you have dependencies on Royale components, uncomment and specify the correct SWCs with the correct paths.

compile-as-config.xml

<royale-config>
    <compiler>
        <accessible>true</accessible>
        <external-library-path>
            <path-element>../../../typedefs/js.swc</path-element>
            <!-- <path-element>PATH_TO_SDK/frameworks/libs/Core.swc</path-element> -->
            <!-- <path-element>/PATH_TO_SDK/frameworks/libs/Network.swc</path-element> -->
        </external-library-path>
        <source-path>
            <path-element>../../</path-element>
        </source-path>
        <warn-no-constructor>false</warn-no-constructor>
    </compiler>
    <include-sources>
        <path-element>../../</path-element>
    </include-sources>
</royale-config>
Clone this wiki locally