7 The **compile** command allows compiling the products of a SALOME application.
12 * Compile a complete application: ::
14 sat compile <application>
16 * Compile only some products: ::
18 sat compile <application> --products <product1>,<product2> ...
20 * Use **sat -t** to duplicate the logs in the terminal (by default the log are stored and displayed with *sat log* command): ::
22 sat -t compile <application> --products <product1>
24 * Compile a module and its dependencies: ::
26 sat compile <application> --products med --with_fathers
28 * Compile a module and the modules depending on it (for example plugins): ::
30 sat compile <application> --products med --with_children
32 * Clean the build and install directories before starting compilation: ::
34 sat compile <application> --products GEOM --clean_all
35 Note: a warning will be shown if option --products is missing
36 (as it will clean everything!)
38 * Clean only the install directories before starting compilation: ::
40 sat compile <application> --clean_install
42 * Add options for make: ::
44 sat compile <application> --products <product> --make_flags <flags>
46 * Use the --check option to execute the unit tests after compilation: ::
48 sat compile <application> --check
50 * Remove the build directory after successful compilation (some build directory like qt are big!): ::
52 sat compile <application> --products qt --clean_build_after
54 * Stop the compilation as soon as a the compilation of a module fails: ::
56 sat compile <product> --stop_first_fail
58 * Do not compile! just show if products are installed or not, and where is the installation: ::
60 sat compile <application> --show
65 The way to compile a product is defined in the product configuration file (pyconf).
68 * **build_source** : the method used to build the product (cmake/autotools/script)
69 * **compil_script** : the compilation script if build_source is equal to "script"
70 * **cmake_options** : additional options for cmake.
71 * **nb_proc** : number of jobs to use with make for this product.