diff options
Diffstat (limited to 'libodb-mysql/build')
-rw-r--r-- | libodb-mysql/build/.gitignore | 3 | ||||
-rw-r--r-- | libodb-mysql/build/bootstrap.build | 10 | ||||
-rw-r--r-- | libodb-mysql/build/export.build | 9 | ||||
-rw-r--r-- | libodb-mysql/build/root.build | 45 |
4 files changed, 67 insertions, 0 deletions
diff --git a/libodb-mysql/build/.gitignore b/libodb-mysql/build/.gitignore new file mode 100644 index 0000000..4a730a3 --- /dev/null +++ b/libodb-mysql/build/.gitignore @@ -0,0 +1,3 @@ +config.build +root/ +bootstrap/ diff --git a/libodb-mysql/build/bootstrap.build b/libodb-mysql/build/bootstrap.build new file mode 100644 index 0000000..fb04583 --- /dev/null +++ b/libodb-mysql/build/bootstrap.build @@ -0,0 +1,10 @@ +# file : build/bootstrap.build +# license : GNU GPL v2; see accompanying LICENSE file + +project = libodb-mysql + +using version +using config +using dist +using test +using install diff --git a/libodb-mysql/build/export.build b/libodb-mysql/build/export.build new file mode 100644 index 0000000..459f96d --- /dev/null +++ b/libodb-mysql/build/export.build @@ -0,0 +1,9 @@ +# file : build/export.build +# license : GNU GPL v2; see accompanying LICENSE file + +$out_root/ +{ + include odb/mysql/ +} + +export $out_root/odb/mysql/lib{odb-mysql} diff --git a/libodb-mysql/build/root.build b/libodb-mysql/build/root.build new file mode 100644 index 0000000..c98d520 --- /dev/null +++ b/libodb-mysql/build/root.build @@ -0,0 +1,45 @@ +# file : build/root.build +# license : GNU GPL v2; see accompanying LICENSE file + +config [bool] config.libodb_mysql.develop ?= false + +# Configure which database client library to use for build2 versions greater +# than 0.12.0 and always use MySQL client library otherwise (due to the lack +# of the project configuration variables support). +# +if ($build.version.number > 12000000000) +{ + # Whether to use the MySQL or MariaDB client library. + # + config [string] config.libodb_mysql.client_lib ?= 'mysql' + + # Verify the config.libodb_mysql.client_lib configuration variable value and + # provide the short alias for it. + # + switch $config.libodb_mysql.client_lib + { + case 'mysql' + case 'mariadb' + client_lib = $config.libodb_mysql.client_lib + + default + fail "invalid config.libodb_mysql.client_lib value '$config.libodb_mysql.client_lib'" + } +} +else + client_lib = 'mysql' + +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 |