From 720c5a33b6a49cf328fdd7611f49153cf8f60247 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 8 Apr 2020 14:51:57 +0300 Subject: Separate tests and examples into individual packages Also make cli module to be explicitly enabled via the config.cli configuration variable. --- examples/build/.gitignore | 3 --- examples/build/bootstrap.build | 8 -------- examples/build/root.build | 36 ------------------------------------ 3 files changed, 47 deletions(-) delete mode 100644 examples/build/.gitignore delete mode 100644 examples/build/bootstrap.build delete mode 100644 examples/build/root.build (limited to 'examples/build') diff --git a/examples/build/.gitignore b/examples/build/.gitignore deleted file mode 100644 index 4a730a3..0000000 --- a/examples/build/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -config.build -root/ -bootstrap/ diff --git a/examples/build/bootstrap.build b/examples/build/bootstrap.build deleted file mode 100644 index 78d91f7..0000000 --- a/examples/build/bootstrap.build +++ /dev/null @@ -1,8 +0,0 @@ -# file : examples/build/bootstrap.build -# license : MIT; see accompanying LICENSE file - -project = # Unnamed subproject. - -using config -using dist -using test diff --git a/examples/build/root.build b/examples/build/root.build deleted file mode 100644 index 5f08770..0000000 --- a/examples/build/root.build +++ /dev/null @@ -1,36 +0,0 @@ -# file : examples/build/root.build -# license : MIT; see accompanying LICENSE file - -cxx.std = latest - -using cxx - -hxx{*}: extension = hxx -ixx{*}: extension = ixx -txx{*}: extension = txx -cxx{*}: extension = cxx - -if ($cxx.target.system == 'win32-msvc') - cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS - -if ($cxx.class == 'msvc') - cxx.coptions += /wd4251 /wd4275 /wd4800 - -# Load cli module. It must be available from the system or from the base -# project. Generating files with cli is a part of the examples, so distributing -# pre-generated files would be meaningless. -# -# @@ How to initialize the module to use a base project cli executable by -# default (if present and not configured to use another one)? Should it be -# assignment like 'config.cli = $out_root/../cli/cli' prior 'using config' -# in bootstrap.build, but what if it doesn't exist? -# -using cli - -# Every exe{} in this subproject is by default a test. -# -exe{*}: test = true - -# Specify the test target for cross-testing. -# -test.target = $cxx.target -- cgit v1.1