Skip to content

Quick Start

Tyler Swann edited this page Mar 7, 2022 · 2 revisions

Installing DDS

Copy the command pertaining to your system.

# For Linux, writes a file in the working directory called "dds"
curl dds.pizza/get/linux -Lo dds
# For macOS, writes a file in the working directory called "dds"
curl dds.pizza/get/macos -Lo dds
# Writes a file in the working directory called "dds.exe"
Invoke-WebRequest dds.pizza/get/windows -OutFile dds.exe

Additional steps

On Linux, macOS or other Unix systems you'll have to mark the file as an executable.

# Add the executable bit to the file mode for the file named "dds"
chmod +x dds

Add to PATH

./dds install-yourself

Adding Trove

Run this single command to install the Trove to you local database:

dds pkg repo add "https://trovepi.dev"

Clone Template Package

Clone the DDS template into your own GitHub and then clone this onto your local machine.

Note: More details on Templates page.

Verify

In the clone's directory, run:

dds build -t :gcc

The output should be:

Hello from the DDS-template

Note: For information on file extensions conventions, see DDS file extensions.

Setup Package

Edit the variables of the *.json5 meta-data files.

package.json5

  • Add a word denoting the name of your package between the single quotes following the variable name:.
  • Add a version.
  • Add a namespace for your package to be contained within.
  • Add any package dependencies.

library.json5

  • Add a word for the name of the library you are creating in the single quotes following name:.
  • If any packages dependencies were added, you have to specify which libraries your using in your own library/package.

Note: Full instructions for adding and using dependencies can be found on the Adding Dependencies page. Note: To create a package with multiple libraries, checkout the Multiple Libraries page.

You may also edit the names of any of the directories and files you want, just make sure to update the #include macros with in the code while its small.

Start Coding

Your package is now setup for building with DDS. Add

Clone this wiki locally