====== Development environment ====== Before writing any homebrew, it's critical to set up a development environment. ===== Installing the toolchain ===== First, follow the [[:getting_started|Installation]] guide to get started with the Wonderful toolchain. After following this guide, you will still need to install components required for wswan development. As each supported target can consume hundreds of megabytes in disk space, they are not installed automatically. To install these components, you should run the following command once you're done installing and updating the toolchain itself: $ wf-pacman -S target-wswan As part of this guide, the ''$'' character is used to denote shell commands that you should input. The ''$'' itself should be omitted; for example, for a line ''$ hello'', you're supposed to type ''hello'' and press ENTER. ===== Installing an emulator ===== For debugging your program, you're going to need an emulator. A recommendation list and guides are provided [[testing_emulator|here]]. In addition, you may wish to invest in a way to test using physical hardware. A recommendation list and guides for that are provided [[testing_hardware|here]]. If you cannot afford or are not interested in buying the physical system, you can ask other members of the community to occasionally help you with testing.