diff --git a/CMakeLists.txt b/CMakeLists.txt index 940b5d03..efe3e286 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,11 +72,6 @@ else () check_symbol_exists(open fcntl.h HAVE_OPEN) endif () -if (BIICODE) - include(support/cmake/biicode.cmake) - return() -endif () - add_subdirectory(cppformat) if (FMT_DOC) diff --git a/support/biicode-build.py b/support/biicode-build.py deleted file mode 100755 index d0a118fc..00000000 --- a/support/biicode-build.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env python -# Build the project with Biicode. - -import glob, os, shutil -from subprocess import check_call - -project_dir = 'biicode_project' -check_call(['bii', 'init', project_dir]) -cppformat_dir = os.path.join(project_dir, 'blocks/vitaut/cppformat') -shutil.copytree('.', cppformat_dir, ignore=shutil.ignore_patterns(project_dir)) -for f in glob.glob('support/biicode/*'): - shutil.copy(f, cppformat_dir) -check_call(['bii', 'cpp:build'], cwd=project_dir) diff --git a/support/biicode/biicode.conf b/support/biicode/biicode.conf deleted file mode 100644 index dbd740fa..00000000 --- a/support/biicode/biicode.conf +++ /dev/null @@ -1,19 +0,0 @@ -# Biicode configuration file - -[paths] - # Local directories to look for headers (within block) - / - -[dependencies] - # Manual adjust file implicit dependencies, add (+), remove (-), or overwrite (=) - CMakeLists.txt + cmake/FindSetEnv.cmake - format.h = format.cc - format.cc - test/* posix.cc - support/biicode/sample.cc - test/* - -[mains] - # Manual adjust of files that define an executable - !test/test-main.cc - -[parent] - vitaut/cppformat: 0 \ No newline at end of file diff --git a/support/biicode/ignore.bii b/support/biicode/ignore.bii deleted file mode 100644 index 8944b619..00000000 --- a/support/biicode/ignore.bii +++ /dev/null @@ -1,3 +0,0 @@ -doc/* -breathe/* -gmock/* diff --git a/support/biicode/sample.cc b/support/biicode/sample.cc deleted file mode 100644 index 7f98f69a..00000000 --- a/support/biicode/sample.cc +++ /dev/null @@ -1,17 +0,0 @@ -#include "vitaut/cppformat/format.h" - -class Date { - int year_, month_, day_; - public: - Date(int year, int month, int day) : year_(year), month_(month), day_(day) {} - - friend std::ostream &operator<<(std::ostream &os, const Date &d) { - return os << d.year_ << '-' << d.month_ << '-' << d.day_; - } -}; - -int main() { - std::string s = fmt::format("The date is {}", Date(2012, 12, 9)); - fmt::print("Hello, {}!", "world"); // uses Python-like format string syntax - fmt::printf("\n%s", s); // uses printf format string syntax -} diff --git a/support/cmake/biicode.cmake b/support/cmake/biicode.cmake deleted file mode 100644 index a1feaf13..00000000 --- a/support/cmake/biicode.cmake +++ /dev/null @@ -1,18 +0,0 @@ -# Initializes block variables -INIT_BIICODE_BLOCK() - -# Actually create targets: EXEcutables and libraries. -ADD_BIICODE_TARGETS() - -target_include_directories(${BII_BLOCK_TARGET} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) - -if (HAVE_OPEN) - target_compile_definitions(${BII_BLOCK_TARGET} INTERFACE -DFMT_USE_FILE_DESCRIPTORS=1) -endif () - -if (CMAKE_COMPILER_IS_GNUCXX) - target_compile_options(${BII_BLOCK_TARGET} INTERFACE -Wall -Wextra -Wshadow -pedantic) -endif () -if (CPP11_FLAG AND FMT_PEDANTIC) - target_compile_options(${BII_BLOCK_TARGET} INTERFACE ${CPP11_FLAG}) -endif ()