GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing ubuntu.com — Craft a C or C++ app Craft a C or C++ app¶This how-to guide covers the steps, decisions, and implementation details that are unique when crafting a snap based on C or C++. We’ll work through the aspects unique to these apps by examining an existing project. The process of developing a snap for a C or C++ app builds on top of standard tools like Autotools and Make, making it possible to adapt or integrate an app’s existing build tooling into the crafting process. Example project file for moon-buggy¶The following code comprises the project file for the C app moon-buggy. This project is a small game where you drive a buggy across the moon’s surface. moon-buggy project filesnapcraft.yaml¶
name: moon-buggy base: core22 version: "1.0.51" summary: Drive a car across the moon description: | Moon-buggy is a simple character graphics game, where you drive some kind of car across the moon's surface. Unfortunately there are dangerous craters there. Fortunately your car can jump over them! confinement: devmode parts: moon-buggy: plugin: autotools autotools-configure-parameters: ["--prefix=/usr"] source: . build-packages: - libncurses-dev - texinfo apps: moon-buggy: command: usr/bin/moon-buggy Add a part written in C or C++¶snapcraft.yaml¶
parts: moon-buggy: plugin: autotools autotools-configure-parameters: ["--prefix=/usr"] source: . build-packages: - libncurses-dev - texinfo C and C++ parts are built with the The project file uses the Autotools plugin, and a special
To declare a part written in C or C++:
|
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |