/src/wrappers/gtk/examples/windows/plain_window_example.ace

http://github.com/tybor/Liberty · Unknown · 209 lines · 167 code · 42 blank · 0 comment · 0 complexity · f84a531c77d79625ad0ed816912c24f7 MD5 · raw file

  1. system
  2. "plain_window_example"
  3. -- Replace SYSTEM_NAME with the name of the executable file
  4. -- to be generated for your system. (This is the equivalent of
  5. -- the -o flag in traditional command line mode.)
  6. root
  7. PLAIN_WINDOW_EXAMPLE: make
  8. -- Replace ROOT_CLASS and creation_procedure with the names of the
  9. -- root class and the root creation procedure for your system.
  10. default -- section of the system
  11. assertion (require);
  12. -- The default level of assertion checking for the system.
  13. -- Choose the appropriate value: boost, no, require, ensure,
  14. -- invariant, loop, check, all.
  15. assertion_flat_check (no);
  16. -- In flat mode each assertion will be executed in no_check mode.
  17. -- This means that while checking assertion, no other assertion will
  18. -- be checked. This mode has only sense in assertion modes from
  19. -- require to debug.
  20. debug (no);
  21. -- The default debug level for the system.
  22. -- Choose yes, no, or any "key" you wish.
  23. trace (no);
  24. -- The default trace mode for the system. Choose yes or no.
  25. collect (yes);
  26. -- Choose yes here to add garbage collector support to your system.
  27. -- Choose no here to indicate that you don't want the garbage collector
  28. -- to be included in your system; no is the equivalent of the -no_gc
  29. -- flag in traditional command line mode.
  30. no_style_warning (no);
  31. -- My humble opinion is that you should always write no here.
  32. -- Yes is the equivalent of the -no_style_warning flag in traditional
  33. -- command line mode.
  34. no_warning (no);
  35. -- My humble opinion is that you should always write no here.
  36. -- Yes is the equivalent of the -no_warning flag in traditional
  37. -- command line mode.
  38. verbose (no);
  39. -- The equivalent of the -verbose flag. (Also note that the -verbose
  40. -- flag is still accepted in ACE file mode.)
  41. manifest_string_trace (yes);
  42. -- The equivalent of the -manifest_string_trace flag.
  43. high_memory_compiler (no);
  44. -- The equivalent of the -high_memory_compiler flag.
  45. profile (yes);
  46. -- The equivalent of the -profile flag.
  47. relax (yes);
  48. -- The equivalent of the -relax flag.
  49. cluster -- section
  50. gtk: "${eiffel_libraries}/eiffel-gtk/loadpath.se"
  51. gdk: "${eiffel_libraries}/eiffel-gdk/loadpath.se"
  52. glib: "${eiffel_libraries}/eiffel-glib/loadpath.se"
  53. gobject: "${eiffel_libraries}/eiffel-gobject/loadpath.se"
  54. pango: "${eiffel_libraries}/eiffel-pango/loadpath.se"
  55. plain_window_example: "."
  56. -- The cluster section is an ordered list of clusters. Roughly speaking,
  57. -- a cluster can be considered as a directory where Eiffel source files
  58. -- are to be searched for. Thus, the order of this list of clusters is
  59. -- important because clusters are considered sequentially while
  60. -- searching for an Eiffel source file. Each cluster is described
  61. -- as follows:
  62. -- optional_cluster_name: "cluster_path_using_system_file_notation_here"
  63. -- default -- at this cluster level
  64. -- assertion (require)
  65. -- debug (no);
  66. -- trace (no);
  67. -- option -- for this cluster
  68. -- assertion (loop) : CLASS_NAME1, CLASS_NAME2;
  69. -- assertion (all) : CLASS_NAME3, CLASS_NAME4;
  70. -- -- ...
  71. -- debug (yes) : CLASS_NAME1, CLASS_NAME2, ...;
  72. -- debug ("KEY") : CLASS_NAME1, CLASS_NAME2, ...;
  73. -- -- ...
  74. -- trace : CLASS_NAME1, CLASS_NAME2;
  75. -- trace : CLASS_NAME3, CLASS_NAME4;
  76. -- -- ...
  77. -- end -- of one cluster
  78. -- Pull in SmartEiffel's standard library. Always put this last so
  79. -- that you can override options for parts of the library.
  80. standard: "${path_lib}/loadpath.se"
  81. external -- section for elements written in another language
  82. -- Directories where to search for C .h files:
  83. -- external_header_path: "/usr/local/expat/include /usr/local/include/mjpegtools"
  84. --external_header_path: "$(pkg-config --cflags glib-2.0)"
  85. -- External object files to be considered; update and uncomment the
  86. -- following line:
  87. -- external_object_files: "foo.o bar.o"
  88. -- External C files to be considered; update and uncomment the
  89. -- following line:
  90. -- external_c_files: "foo.c bar.c"
  91. -- External C++ files to be considered; update and uncomment the
  92. -- following line:
  93. -- external_c_plus_plus_files: "foo.cpp bar.cpp"
  94. -- The equivalent of the -cecil flag of the traditional command line mode.
  95. -- To indicate some cecil file to be considered, update and uncomment
  96. -- the following lines:
  97. -- cecil ("my_cecil_file1.se")
  98. -- cecil ("my_cecil_file2.se")
  99. -- cecil ("my_cecil_file3.se")
  100. -- ...
  101. -- External libraries directory path to be considered; update and uncomment
  102. -- the following line:
  103. --external_lib_path: " $(pkg-config --cflags --libs glib-2.0)"
  104. -- From release -0.74Beta#20 and later SmartEiffel supports linker
  105. -- external_lib_path. Just leave out the -L:
  106. -- external_lib_path: "/usr/local /foo/bar"
  107. -- In this case external_lib_path will work on Windows too.
  108. -- External libraries to be considered; update and uncomment the following
  109. -- line:
  110. --external_lib: "$(pkg-config --libs glib-2.0)"
  111. -- or linker independent:
  112. -- external_lib: "m X11"
  113. generate -- section
  114. no_strip(no);
  115. -- Yes would mean that you don't want to run "strip" on the generated
  116. -- executable. This is the equivalent of the -no_strip flag of the
  117. -- traditional command line mode. (I.e. to use a C level debugger on your
  118. -- system, you should choose yes here).
  119. no_split(no);
  120. -- Yes would mean that you want one big single C file for the complete
  121. -- system, pinstead of the many small C files produced by default ("no").
  122. -- This may be useful for delivery of the most efficient version. (Some
  123. -- C compilers including gcc can then do better inlining.)
  124. clean(no);
  125. -- Yes would mean that you want to remove all generated C files, all
  126. -- generated object files as well as other temporary files generated
  127. -- during the compilation process. (See also command clean.)
  128. -- The equivalent of the -cc flag of the traditional command line mode.
  129. -- To select a different C compiler from the default, update and uncomment
  130. -- the following line:
  131. -- cc : "gcc"
  132. -- To decide which C compiler options are to be passed, you need to use
  133. -- this keyword as well as a good understanding of your C compiler.
  134. -- Update and uncomment the following line:
  135. c_compiler_options : "$(pkg-config --cflags gtk+-2.0)"
  136. -- Some options are to be passed only to the linker. Update and uncomment
  137. -- the following line:
  138. linker_options : "$(pkg-config --libs gtk+-2.0)"
  139. -- For the equivalent of the -no_main flag of the traditional command line
  140. -- mode, uncomment the following line:
  141. -- no_main (yes)
  142. -- For the equivalent of the -gc_info flag of the traditional command line
  143. -- mode, uncomment the following line:
  144. -- gc_info (yes)
  145. -- For the equivalent of the -wedit flag of the traditional command line
  146. -- mode. To Include support for the Wedit debugger uncomment the following
  147. -- line:
  148. -- wedit (yes)
  149. -- Additional information about system environment variables:
  150. -- Inside manifest strings, you are allowed to use system
  151. -- environment variables using the same notation as in the traditional
  152. -- "loadpath.se" files. Actually, this notation is inspired by the
  153. -- traditional UNIX bracketed notation as for example: ${FOO} or ${Bar}
  154. -- or ${SmartEiffel}.
  155. --
  156. -- Additional information about the ${SmartEiffelDirectory} variable:
  157. -- If not explicitely set by the user, the ${SmartEiffelDirectory} variable
  158. -- is automatically computed using the value of the ${SmartEiffel} variable.
  159. -- (Keep in mind that the ${SmartEiffel} variable is mandatory for using
  160. -- SmartEiffel.) The computed value indicates the SmartEiffel main
  161. -- directory. For example, if the value of ${SmartEiffel} is
  162. -- "/usr/local/lib/SmartEiffel/sys/system.se"
  163. -- the computed value is "/usr/local/lib/SmartEiffel/". This automatically
  164. -- defined variable ${SmartEiffelDirectory} is useful for indicating the
  165. -- location of the SmartEiffel standard library.
  166. --
  167. end