Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 1a64ee3
  • /
  • dependencies
  • /
  • tinyobjloader
  • /
  • build.ninja
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:77801bb5ce6c13a0f51c76ffa917a1460523e833
directory badge
swh:1:dir:b21b71351236380b8a0244256ebd2f0d399f5604

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
build.ninja
ninja_required_version = 1.4

gnubuilddir = build
gnudefines = 
gnuincludes = -I.
gnucflags = -O2 -g
gnucxxflags = -O2 -g -pedantic -Wall -Wextra -Wcast-align -Wcast-qual $
    -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self $
    -Wmissing-declarations -Wmissing-include-dirs -Wold-style-cast $
    -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion $
    -Wsign-promo -Wstrict-overflow=5 -Wswitch-default -Wundef -Werror $
    -Wno-unused -fsanitize=address
gnuldflags = -fsanitize=address

pool link_pool
  depth = 1

rule gnucxx
  command = $gnucxx -MMD -MF $out.d $gnudefines $gnuincludes $gnucxxflags $
      -c $in -o $out
  description = CXX $out
  depfile = $out.d
  deps = gcc
rule gnucc
  command = $gnucc -MMD -MF $out.d $gnudefines $gnuincludes $gnucflags -c $
      $in -o $out
  description = CC $out
  depfile = $out.d
  deps = gcc
rule gnulink
  command = $gnuld -o $out $in $libs $gnuldflags
  description = LINK $out
  pool = link_pool
rule gnuar
  command = $gnuar rsc $out $in
  description = AR $out
  pool = link_pool
rule gnustamp
  command = touch $out
  description = STAMP $out

gnucxx = g++
gnucc = gcc
gnuld = $gnucxx
gnuar = ar

build loader_example.o: gnucxx loader_example.cc


build loader_example: gnulink loader_example.o
build all: phony loader_example

default all

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API