From 7f235e1d24ce525a2bd032cefa82d96ccfdc8a19 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 26 Dec 2019 23:05:57 +0300 Subject: Add implementation --- libicuio/build/.gitignore | 3 +++ libicuio/build/bootstrap.build | 18 ++++++++++++++++++ libicuio/build/export.build | 10 ++++++++++ libicuio/build/root.build | 19 +++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 libicuio/build/.gitignore create mode 100644 libicuio/build/bootstrap.build create mode 100644 libicuio/build/export.build create mode 100644 libicuio/build/root.build (limited to 'libicuio/build') diff --git a/libicuio/build/.gitignore b/libicuio/build/.gitignore new file mode 100644 index 0000000..4a730a3 --- /dev/null +++ b/libicuio/build/.gitignore @@ -0,0 +1,3 @@ +config.build +root/ +bootstrap/ diff --git a/libicuio/build/bootstrap.build b/libicuio/build/bootstrap.build new file mode 100644 index 0000000..fd58532 --- /dev/null +++ b/libicuio/build/bootstrap.build @@ -0,0 +1,18 @@ +# file : build/root.build +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : Unicode License; see accompanying LICENSE file + +project = libicuio + +using version +using config +using test +using install +using dist + +# Sync with the libicuuc library ABI version (see libicuuc's bootstrap.build +# for details). +# +abi_version_major = "$version.major" +abi_version_patch = ($version.patch != 0 ? ".$version.patch" : "") +abi_version = "$abi_version_major.$version.minor$abi_version_patch" diff --git a/libicuio/build/export.build b/libicuio/build/export.build new file mode 100644 index 0000000..2559f4e --- /dev/null +++ b/libicuio/build/export.build @@ -0,0 +1,10 @@ +# file : build/root.build +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : Unicode License; see accompanying LICENSE file + +$out_root/ +{ + include libicuio/ +} + +export $out_root/libicuio/$import.target diff --git a/libicuio/build/root.build b/libicuio/build/root.build new file mode 100644 index 0000000..aba4fb6 --- /dev/null +++ b/libicuio/build/root.build @@ -0,0 +1,19 @@ +# file : build/root.build +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : Unicode License; see accompanying LICENSE file + +# Note that upstream compiles with -std=c++11 but this ends up with the 'auto +# return without trailing return type' error for Clang targeting MSVC runtime. +# +cxx.std = latest + +using cxx + +hxx{*}: extension = h +cxx{*}: extension = cpp + +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 -- cgit v1.1