[Notes] [Git][BuildStream/buildstream][willsalmon/outOfSourecBuild] 2 commits: Out of Source Build Example



Title: GitLab

Will Salmon pushed to branch willsalmon/outOfSourecBuild at BuildStream / buildstream

Commits:

18 changed files:

Changes:

  • doc/examples/out-of-source-builds/elements/base.bst
    1
    +kind: stack
    
    2
    +description: Base stack
    
    3
    +
    
    4
    +depends:
    
    5
    +- base/alpine.bst

  • doc/examples/out-of-source-builds/elements/base/alpine.bst
    1
    +kind: import
    
    2
    +description: |
    
    3
    +
    
    4
    +    Alpine Linux base runtime
    
    5
    +
    
    6
    +sources:
    
    7
    +- kind: tar
    
    8
    +
    
    9
    +  # This is a post doctored, trimmed down system image
    
    10
    +  # of the Alpine linux distribution.
    
    11
    +  #
    
    12
    +  url: alpine:integration-tests-base.v1.x86_64.tar.xz
    
    13
    +  ref: 3eb559250ba82b64a68d86d0636a6b127aa5f6d25d3601a79f79214dc9703639

  • doc/examples/out-of-source-builds/elements/hello.bst
    1
    +depends:
    
    2
    +- base.bst
    
    3
    +description: |2
    
    4
    +
    
    5
    +  Hello world example from automake
    
    6
    +kind: autotools
    
    7
    +sources:
    
    8
    +- directory: Source
    
    9
    +  kind: tar
    
    10
    +  ref: 80da43bb5665596ee389e6d8b64b4f122ea4b92a685b1dbd813cd1f0e0c2d83f
    
    11
    +  url: gnu:automake-1.16.tar.gz
    
    12
    +variables:
    
    13
    +  autogen: autoreconf -ivf ../Source/doc/amhello
    
    14
    +  command-subdir: build
    
    15
    +  conf-cmd: ../Source/doc/amhello/configure

  • doc/examples/out-of-source-builds/project.conf
    1
    +# Unique project name
    
    2
    +name: outOfSourceBuilds
    
    3
    +
    
    4
    +# Required BuildStream format version
    
    5
    +format-version: 9
    
    6
    +
    
    7
    +# Subdirectory where elements are stored
    
    8
    +element-path: elements
    
    9
    +
    
    10
    +# Define some aliases for the tarballs we download
    
    11
    +aliases:
    
    12
    +  alpine: https://gnome7.codethink.co.uk/tarballs/
    
    13
    +  gnu: https://ftp.gnu.org/gnu/automake/

  • doc/examples/out-of-source-builds2/elements/base.bst
    1
    +kind: stack
    
    2
    +description: Base stack
    
    3
    +
    
    4
    +depends:
    
    5
    +- base/alpine.bst

  • doc/examples/out-of-source-builds2/elements/base/alpine.bst
    1
    +kind: import
    
    2
    +description: |
    
    3
    +
    
    4
    +    Alpine Linux base runtime
    
    5
    +
    
    6
    +sources:
    
    7
    +- kind: tar
    
    8
    +
    
    9
    +  # This is a post doctored, trimmed down system image
    
    10
    +  # of the Alpine linux distribution.
    
    11
    +  #
    
    12
    +  url: alpine:integration-tests-base.v1.x86_64.tar.xz
    
    13
    +  ref: 3eb559250ba82b64a68d86d0636a6b127aa5f6d25d3601a79f79214dc9703639

  • doc/examples/out-of-source-builds2/elements/hello.bst
    1
    +depends:
    
    2
    +- base.bst
    
    3
    +description: |2
    
    4
    +
    
    5
    +  Hello world example from automake
    
    6
    +kind: autotools
    
    7
    +sources:
    
    8
    +- directory: Source
    
    9
    +  kind: local
    
    10
    +  path: files/hello
    
    11
    +variables:
    
    12
    +  autogen: autoreconf -ivf ../Source/
    
    13
    +  command-subdir: build
    
    14
    +  conf-cmd: ../Source/configure

  • doc/examples/out-of-source-builds2/files/hello/AUTHORS

  • doc/examples/out-of-source-builds2/files/hello/ChangeLog

  • doc/examples/out-of-source-builds2/files/hello/Makefile.am
    1
    +SUBDIRS = src

  • doc/examples/out-of-source-builds2/files/hello/NEWS

  • doc/examples/out-of-source-builds2/files/hello/README

  • doc/examples/out-of-source-builds2/files/hello/configure.ac
    1
    +AC_INIT([helloworld], [0.1], [will salmon codethink co uk])
    
    2
    +AM_INIT_AUTOMAKE
    
    3
    +AC_PROG_CC
    
    4
    +AC_CONFIG_FILES([Makefile
    
    5
    +		 src/Makefile])
    
    6
    +AC_OUTPUT

  • doc/examples/out-of-source-builds2/files/hello/src/Makefile.am
    1
    +bin_PROGRAMS = hello
    
    2
    +hello_SOURCES = hello.c libhello.c

  • doc/examples/out-of-source-builds2/files/hello/src/hello.c
    1
    +/*
    
    2
    + * hello.c - Simple hello program
    
    3
    + */
    
    4
    +#include <stdio.h>
    
    5
    +#include <libhello.h>
    
    6
    +
    
    7
    +int main(int argc, char *argv[])
    
    8
    +{
    
    9
    +  const char *person = NULL;
    
    10
    +
    
    11
    +  if (argc > 1)
    
    12
    +    person = argv[1];
    
    13
    +
    
    14
    +  if (person)
    
    15
    +    hello(person);
    
    16
    +  else
    
    17
    +    hello("stranger");
    
    18
    +
    
    19
    +  return 0;
    
    20
    +}

  • doc/examples/out-of-source-builds2/files/hello/src/libhello.c
    1
    +/*
    
    2
    + * libhello.c - The hello library
    
    3
    + */
    
    4
    +#include <stdio.h>
    
    5
    +
    
    6
    +void hello(const char *person)
    
    7
    +{
    
    8
    +  printf("Hello %s\n", person);
    
    9
    +}

  • doc/examples/out-of-source-builds2/files/hello/src/libhello.h
    1
    +/*
    
    2
    + * libhello.h - The hello library
    
    3
    + */
    
    4
    +
    
    5
    +/*
    
    6
    + * A function to say hello to @person
    
    7
    + */
    
    8
    +void hello(const char *person);

  • doc/examples/out-of-source-builds2/project.conf
    1
    +# Unique project name
    
    2
    +name: outOfSourceBuilds2
    
    3
    +
    
    4
    +# Required BuildStream format version
    
    5
    +format-version: 9
    
    6
    +
    
    7
    +# Subdirectory where elements are stored
    
    8
    +element-path: elements
    
    9
    +
    
    10
    +# Define some aliases for the tarballs we download
    
    11
    +aliases:
    
    12
    +  alpine: https://gnome7.codethink.co.uk/tarballs/
    
    13
    +  gnu: https://ftp.gnu.org/gnu/automake/



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]