मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग12k · #11493

fprime-cmake-build-system

यह क्या करती है

यह समझाती है कि F Prime की CMake लेयर मॉड्यूल कैसे रजिस्टर करती है, बिल्ड टार्गेट कैसे सेट करती है और प्लेटफ़ॉर्म कैसे चुनती है। यह उन इंजीनियरों के लिए है जो F Prime फ़्लाइट सॉफ़्टवेयर बनाते हैं।

कब इस्तेमाल करें

  • ✓जब आप किसी F Prime बिल्ड में नया मॉड्यूल जोड़ते हैं।
  • ✓जब आप F Prime को नए प्लेटफ़ॉर्म या क्रॉस-कंपाइल टूलचेन पर ले जाते हैं।
  • ✓जब F Prime प्रोजेक्ट में generate या build चरण विफल हो और आपको उसका कारण चाहिए।

Skill का लिंक

https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-cmake-build-system/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-cmake-build-system/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप मेरे नए F Prime मॉड्यूल को CMake बिल्ड में रजिस्टर करने में मदद कर सकते हैं और generate की गलती ठीक कर सकते हैं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI F Prime के रजिस्ट्रेशन फ़ंक्शन और बिल्ड लेआउट का इस्तेमाल करता है, प्लेटफ़ॉर्म और कॉन्फ़िगरेशन जाँचता है, फिर सुधार की पुष्टि के लिए दोबारा बिल्ड करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Skill: F Prime CMake Build System

F Prime wraps CMake in an API layer so that modules declare sources and autocoder inputs and get autocoding, dictionaries, unit tests, and install rules for free. Canonical references:

Follow those for full syntax and examples; this skill adds orientation, decision criteria, and the failure modes that are easy to get wrong.


1 — Where things live under cmake/

Path Contents
API.cmake The public register_fprime_* / add_fprime_subdirectory API
module.cmake, config_assembler.cmake Internal module and configuration processing
target/ Built-in targets: build, ut, dictionary, install, sbom, version
target/sub-build/ Targets run in sub-builds (fpp_locs, fpp_depend, module_info)
autocoder/ Autocoder integration (fpp.cmake, fpp_ut.cmake)
platform/ ${FPRIME_PLATFORM}.cmake platform files (Linux, Darwin, templates)
toolchain/ Cross-compile toolchain files
settings/, options.cmake, flags.cmake, sanitizers.cmake Build settings, options, compile flags
test/ pytest suite for the build system itself

Change the narrowest layer that solves the problem: a module's own CMakeLists.txt first, then a platform/toolchain file, and only then cmake/ internals (which affect every project using F Prime).


2 — Which registration call

Task Call
Component, port, or plain library module register_fprime_module
Deployment producing an F Prime binary register_fprime_deployment
Non-deployment executable / tool register_fprime_executable
Unit test register_fprime_ut (see fprime-unit-testing)
Configuration module (framework, platform, library, or project overrides) register_fprime_config
Implementation of a swappable package (e.g. Os_File) register_fprime_module + IMPLEMENTS; register_os_implementation for OSAL packages
Custom build target (<target> + <MODULE>_<target>) register_fprime_target / register_fprime_ut_target

Common directives: SOURCES, AUTOCODER_INPUTS, HEADERS, DEPENDS, REQUIRES_IMPLEMENTATIONS, CHOOSES_IMPLEMENTATIONS. A new module directory must also be pulled in with add_fprime_subdirectory from the including CMakeLists.txt.

Guides: customization / custom targets, configuration modules, implementations, platforms, toolchains, settings.ini, external libraries, OSAL implementation.


3 — Failure modes

  • Stale cache: a build cache can go out of date in many ways — edited settings.ini, a new CMakeLists.txt or FPP file, a moved module, a switched toolchain. Symptoms are confusing missing-target, missing-autocode, or stale-dependency errors rather than compiler errors. Fix with fprime-util generate -f (--ut for the unit-test cache), which purges and regenerates the build cache.
  • Unresolved implementation: every platform must CHOOSES_IMPLEMENTATIONS for every package a module REQUIRES_IMPLEMENTATIONS; a missing choice surfaces as a link error, not a CMake error. Use the _Stub implementation when a platform lacks the capability; override in the project's configuration module (CHOOSES_IMPLEMENTATIONS) or per deployment, executable, or UT.
  • Sub-build assumptions: code that must not run during the fpp_locs/fpp_depend sub-builds needs skip_on_sub_build(); platform-specific modules need restrict_platforms(...).
  • Hardcoded host paths or tool locations in a toolchain belong in an environment_file, not in committed CMake.
  • **Bypassing the
अक्सर पूछे जाने वाले सवाल

क्या मुझे पहले से CMake आना चाहिए?

बुनियादी CMake जानकारी मददगार है, हालाँकि स्किल F Prime की अपनी उस रैपर लेयर को समझाती है जो उसके ऊपर बनी है।

क्या यह अलग-अलग प्लेटफ़ॉर्म कवर करती है?

हाँ, यह प्लेटफ़ॉर्म फ़ाइलें, टूलचेन फ़ाइलें और OS इम्प्लीमेंटेशन चुनना कवर करती है।

सटीक नियम कहाँ लिखे हैं?

सटीक सिंटैक्स के लिए स्किल F Prime की बिल्ड सिस्टम मैनुअल और उसकी API फ़ाइलों की ओर इशारा करती है।

जानकारी

लेखक का मूल विवरण

Work with F Prime's custom CMake layer: the `register_fprime_*` API, build targets, toolchains and platform files, implementation selection, configuration modules, sub-builds, and `settings.ini`. Use when adding or wiring a module into a build, adding a custom build target, porting to a new platform or toolchain, choosing or defining an Os implementation, or diagnosing generate/build failures that are not compiler errors.

repo: nasa/fprime

लोकप्रियता

GitHub स्टार
12k
रैंकिंग में स्थान
#11493
लाइसेंस
Apache-2.0
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

fprime-component-design-fpp

12k

यह आपके एजेंट को स्वीकृत F Prime कंपोनेंट की आवश्यकताओं को उसके पोर्ट, कमांड, इवेंट और टेलीमेट्री के FPP मॉडल में बदलने में मदद करती है।

कोडिंगAPI और सर्वर (backend)

fprime-component-development

12k

यह आपके एजेंट को F Prime कंपोनेंट को आवश्यकताओं से लेकर इंटीग्रेशन टेस्टिंग तक हर विकास चरण में आगे बढ़ाने में मदद करती है।

कोडिंगAPI और सर्वर (backend)

fprime-component-implementation

12k

यह आपके एजेंट को F Prime कंपोनेंट के जनरेट हुए हैंडलर फ़ंक्शन के पीछे का C++ कोड प्रोजेक्ट के नियमों के अनुसार लिखने में मदद करती है।

कोडिंगAPI और सर्वर (backend)

fprime-component-integration-test

12k

यह आपके एजेंट को F Prime कंपोनेंट के लिए pytest इंटीग्रेशन टेस्ट लिखने में मदद करती है, जो चल रही डिप्लॉयमेंट के विरुद्ध चलते हैं और दोबारा इस्तेमाल हो सकते हैं।

कोडिंगटेस्टिंग

मिलती-जुलती skills