Ability to filter imports by cmake defines

Aperta
#69 10 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cmake, python, yaml
Ambito
build-system

Direzione di ricerca

The imports handling lives in the fips Python sources, where fips.yml is parsed and .fips-imports.cmake is generated; the issue shows the desired if: key in the yaml. Start by finding where the import section is emitted and wrap it in a CMake if() when that key is present. Done means an import with an if: expression is fetched but only integrated into the build when the expression is true; the issue has ten comments and no linked pull request, so check the thread for the agreed design first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature

There are projects which only need to import external dependencies for their sample executables, but not when importing the project somewhere else. For this, and similar requirements, it should be possible to control the inclusion of an imported project in the fips.yml file:

imports:
    git:    https://tralala/blub/blob.git
    if: "NOT FIPS_IMPORT AND FIPS_WINDOWS"

The string behind the if: is the expression of a cmake if() statement. If an if: key exists, the import section in the generated .fips-imports.cmake file will be surrounded with an if() (the dependency will always be fetched to the local filesystem, it will only not be integrated into the build project depending on the if expression...

Lingua principale
Python
Stelle
506
Fork
84
Merge medio
13h 14m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di floooh/fips

Tutte le issue di floooh/fips

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.