command_line.rst 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. Command line
  2. ============
  3. Examples
  4. --------
  5. Compile and run the project ``/home/user/crown/samples/01-physics`` using a mapped ``core`` folder:
  6. .. code::
  7. export CROWN=/home/user/crown
  8. cd $CROWN/platforms/linux64/bin
  9. ./crown-development --compile --continue --source-dir $CROWN/samples/01-physics --map-source-dir core $CROWN/samples
  10. Compile and run for HTML5:
  11. .. code::
  12. ./crown-development --compile --continue --platform html5 --source-dir $CROWN/samples/01-physics --map-source-dir core $CROWN/samples
  13. Compile a "bundled" version of the project:
  14. .. code::
  15. ./crown-development --compile --bundle --source-dir $CROWN/samples/01-physics --map-source-dir core $CROWN/samples
  16. Run the project from bundled data:
  17. .. code::
  18. ./crown-development --data-dir $CROWN/samples/01-physics_linux
  19. Customize the data directory name:
  20. .. code::
  21. ./crown-development --compile --data-dir $CROWN/samples/01-physics_custom --source-dir $CROWN/samples/01-physics --map-source-dir core $CROWN/samples
  22. Options
  23. -------
  24. ``-h`` ``--help``
  25. Display the help and quit.
  26. ``-v`` ``--version``
  27. Display engine version and quit.
  28. ``--source-dir <path>``
  29. Use <path> as the source directory for resource compilation.
  30. The <path> must be absolute.
  31. ``--data-dir <path>``
  32. Run with the data located at <path>.
  33. The <path> must be absolute.
  34. ``--bundle-dir <path>``
  35. Run with the bundles located at <path>.
  36. The <path> must be absolute.
  37. ``--map-source-dir <name> <path>``
  38. Mount <path>/<name> at <source-dir>/<name>.
  39. The <path> must be absolute.
  40. ``--boot-dir <path>``
  41. Boot the engine with the ``boot.config`` from given <path>.
  42. The <path> must be relative.
  43. ``--compile``
  44. Do a full compile of the resources.
  45. When using this option you must also specify ``--source-dir``.
  46. ``--bundle``
  47. Generate bundles after the data has been compiled.
  48. ``--platform <platform>``
  49. Compile resources for the given <platform>.
  50. Possible values for <platform> are:
  51. * ``android``
  52. * ``html5``
  53. * ``linux``
  54. * ``windows``
  55. ``--continue``
  56. Run the engine after resource compilation.
  57. ``--console-port <port>``
  58. Set port of the console.
  59. When no port is specified, the engine uses the port 10001.
  60. ``--wait-console``
  61. Wait for a console connection before starting up.
  62. ``--parent-window <handle>``
  63. Set the parent window <handle> of the main window.
  64. This option should be used only by the tools.
  65. ``--server``
  66. Run the engine in server mode.
  67. When using this option you must also specify ``--source-dir``.
  68. ``--pumped``
  69. Do not advance the renderer unless explicitly requested via console.
  70. ``--hidden``
  71. Make the main window initially invisible.
  72. ``--window-rect <x y w h>``
  73. Sets the main window's position and size.
  74. ``--string-id <string>``
  75. Print the 32- and 64-bits IDs of <string>.
  76. ``--run-unit-tests``
  77. Run unit tests and quit.