Commit dcd8945c authored by William Salmon's avatar William Salmon
Browse files

Adding Out of Source Build Examples

Three examples covering out of source builds for:
 * basic autotools
 * basic cmake
 * autotools from a folder inside the source folder

This is also the first cmake example.
parent e3e27123
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
kind: stack
description: Base stack

depends:
- base/alpine.bst
+13 −0
Original line number Diff line number Diff line
kind: import
description: |

    Alpine Linux base runtime

sources:
- kind: tar

  # This is a post doctored, trimmed down system image
  # of the Alpine linux distribution.
  #
  url: alpine:integration-tests-base.v1.x86_64.tar.xz
  ref: 3eb559250ba82b64a68d86d0636a6b127aa5f6d25d3601a79f79214dc9703639
+14 −0
Original line number Diff line number Diff line
depends:
- base.bst
description: |2

  Hello world example from cmake
kind: cmake
sources:
- kind: local
  path: files/hello
  directory: Source
variables:
  command-subdir: build
  conf-root: "%{build-root}/Source"
+14 −0
Original line number Diff line number Diff line

# Set the minimum version of CMake that can be used
# To find the cmake version run
# $ cmake --version
cmake_minimum_required(VERSION 2.8)

# Set the project name
project (hello_buildstreams C)

# Add an executable
add_executable(hello_buildstream main.c)


install(TARGETS hello_buildstream DESTINATION /bin) 
+7 −0
Original line number Diff line number Diff line
#include <stdio.h>
int main()
{
   // printf() displays the string inside quotation
   printf("Hello, World!\n");
   return 0;
}
Loading