Morfik Compiler Options

In the Compiler section of Morfik Options dialog, allows the configuration of parameters which define how Morfik compilers and platform compiler behave. This section also allows the setting of the path for the Morfik Framework.


compiler-options-m3.png
Morfik Compiler Options


Compiler Options

The Compiler Options area of the Compiler section of Morfik options dialog allows the setting of several options to configure how Morfik compilers behave when compiling the project. Individual options in the area are:


navigate-check32.png   Obfuscate JavaScript
This option instructs Morfik compilers to generate obfuscated JavaScript code. Obfuscated code, besides helping to prevent unauthorized viewing of browser side code, helps to improve performance by reducing the size of the code that gets downloaded to the browser.


navigate-check32.png   Optimize JavaScript
This option instructs the Morfik compilers to remove unused entities from browser-side code before generating the JavaScript. This helps to improve performance by reducing the size of the code that gets downloaded to the browser.


navigate-check32.png   Package Resources
This option allows the user to choose if the files added to the resource repository are packaged into a single file for deployment along with the application or remain as independent files in the repository folder for the project. In the latter case, all the files in the folder must be deployed along with the application.


navigate-check32.png   IE6 Support
This option specifies whether the background images used for control effects should be generated in a way that is compatible with Internet Explorer 6. If you are sure that none of your users will be using Internet Explorer 6, it may be worth disabling IE6 Support to achieve increased compilation speed and reduced size of generated files.


navigate-check32.png   Startup Log
During the startup of an XApp, information is written to a text file whose name has the format <ProjectName>_<TodaysDate>.log in the Log subfolder of the project directory. The entries in this log file can be useful for troubleshooting any problems that may occur during XApp startup. In previous releases of Morfik, generation of the log file had to be specifically enabled by ticking the Startup Log option. However, in Morfik 3 the log file is always generated.


navigate-check32.png   Display Compiler Warnings
Checking this option will display the warning messages during compilation which identify codes that are valid and compile but could be potential problems that may surface at run time under certain circumstances.


navigate-check32.png   Generate MorfikSpace Image File
This option is used for managing the "project Image" created on Amazon S3 during Production Deployment using the Morfik Integrated Hosting. These images are accessible online (from secure websites) and can be deployed on selected Morfik hosting servers.


navigate-check32.png   Generate Language Data
If this option is ticked, the Morfik compiler will generate a file <ProjectName>.txt in the <ProjectName>Languages subfolder of your project directory, listing the strings in your application that need to be localized. This file can then be sent to a translator, who will translate the strings into the required language(s), and return a file that can be deployed with your application.

Framework Options

The Framework Options in the Compiler section of Morfik options allows the user to specify paths for the Morfik Framework and other libraries. The options in this area are the following:


textedit32.png   Framework Path
This field allows the user to specify an alternate path for the Morfik Framework which will be used in compiling the current project.


textedit32.png   Search Paths
This field allows the user to specify a series of folders in which Morfik will look for modules which are referenced in the project but not a part of it.


textedit32.png   Compiler Defines
This field allow the user to enter string symbols which will be interpreted by the compiler as user defined symbols for the purpose of conditional compilation.


navigate-check32.png   Enable Animations
This option allows the developer to specify whether animation effects should be displayed during the activation and deactivation of popup controls and floating subforms. Note: animation is not supported in all web browsers.


navigate-check32.png   Enable Screen Dimming
This option allows the developer to specify whether the controls on the currently displayed page/form should be greyed out during the opening of a new page/form.

Platform Compiler Options

The Platform Compiler Options allows the setting of the parameters on how the application will be generated.

combobox32.png   Target Platform
This option allows the user to choose which platform will be targeted at the platform compiler level.


button32.png   Advanced
This option brings up the Compiler Configuration Dialog where the user can specify a file name and path for the backend server side compiler as well as enter what command line parameters will be passed to it.

Related Topics