summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-01-25 17:28:38 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-01-25 17:28:38 +0300
commitd9f372d7b1bc1abbff5fdf9735118290cd024d5e (patch)
tree49bc3160ea184e19cd5cb6a7404dee42311c0fd7 /build
parent55e14d8f9697adeeb05fcd23cf8f19c33452bb56 (diff)
Turn libodb-pgsql repository into package for muti-package repositorylibodb-pgsql
Diffstat (limited to 'build')
-rw-r--r--build/.gitignore3
-rw-r--r--build/bootstrap.build10
-rw-r--r--build/bootstrap.make70
-rw-r--r--build/export.build9
-rw-r--r--build/export/libodb-pgsql/stub.make8
-rw-r--r--build/import/cli/cli-cxx.make47
-rw-r--r--build/import/cli/configuration-rules.make13
-rwxr-xr-xbuild/import/cli/configure53
-rw-r--r--build/import/cli/stub.make28
-rw-r--r--build/import/libodb-pgsql/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb-pgsql/configure53
-rw-r--r--build/import/libodb-pgsql/stub.make28
-rw-r--r--build/import/libodb/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb/configure53
-rw-r--r--build/import/libodb/stub.make28
-rw-r--r--build/import/libpq/configuration-rules.make13
-rwxr-xr-xbuild/import/libpq/configure79
-rw-r--r--build/import/libpq/rules.make29
-rw-r--r--build/import/libpq/stub.make33
-rw-r--r--build/import/libpq/version1
-rw-r--r--build/root.build19
21 files changed, 0 insertions, 603 deletions
diff --git a/build/.gitignore b/build/.gitignore
deleted file mode 100644
index 4a730a3..0000000
--- a/build/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-config.build
-root/
-bootstrap/
diff --git a/build/bootstrap.build b/build/bootstrap.build
deleted file mode 100644
index fb6b7df..0000000
--- a/build/bootstrap.build
+++ /dev/null
@@ -1,10 +0,0 @@
-# file : build/bootstrap.build
-# license : GNU GPL v2; see accompanying LICENSE file
-
-project = libodb-pgsql
-
-using version
-using config
-using dist
-using test
-using install
diff --git a/build/bootstrap.make b/build/bootstrap.make
deleted file mode 100644
index 26da3c4..0000000
--- a/build/bootstrap.make
+++ /dev/null
@@ -1,70 +0,0 @@
-# file : build/bootstrap.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-project_name := libodb-pgsql
-
-# First try to include the bundled bootstrap.make if it exist. If that
-# fails, let make search for the external bootstrap.make.
-#
-build := build-0.3
-
--include $(dir $(lastword $(MAKEFILE_LIST)))../../$(build)/bootstrap.make
-
-ifeq ($(patsubst %build/bootstrap.make,,$(lastword $(MAKEFILE_LIST))),)
-include $(build)/bootstrap.make
-endif
-
-
-# Aliases
-#
-.PHONY: $(out_base)/ \
- $(out_base)/.test \
- $(out_base)/.dist \
- $(out_base)/.clean
-
-ifdef %interactive%
-
-.PHONY: test dist clean
-
-test: $(out_base)/.test
-dist: $(out_base)/.dist
-clean: $(out_base)/.clean
-
-ifneq ($(filter $(.DEFAULT_GOAL),test dist clean),)
-.DEFAULT_GOAL :=
-endif
-
-endif
-
-# Make sure the distribution prefix is set if the goal is dist.
-#
-ifneq ($(filter $(MAKECMDGOALS),dist),)
-ifeq ($(dist_prefix),)
-$(error dist_prefix is not set)
-endif
-endif
-
-# If we don't have dependency auto-generation then we need to manually
-# make sure that generated files are generated before C++ file are
-# compiler. To do this we make the object files ($2) depend in order-
-# only on generated files ($3).
-#
-ifeq ($(cxx_id),generic)
-
-define include-dep
-$(if $2,$(eval $2: | $3))
-endef
-
-else
-
-define include-dep
-$(call -include,$1)
-endef
-
-endif
-
-# Don't include dependency info for certain targets.
-#
-ifneq ($(filter $(MAKECMDGOALS),clean disfigure dist),)
-include-dep =
-endif
diff --git a/build/export.build b/build/export.build
deleted file mode 100644
index 80aba23..0000000
--- a/build/export.build
+++ /dev/null
@@ -1,9 +0,0 @@
-# file : build/export.build
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$out_root/
-{
- include odb/pgsql/
-}
-
-export $out_root/odb/pgsql/lib{odb-pgsql}
diff --git a/build/export/libodb-pgsql/stub.make b/build/export/libodb-pgsql/stub.make
deleted file mode 100644
index 9e646aa..0000000
--- a/build/export/libodb-pgsql/stub.make
+++ /dev/null
@@ -1,8 +0,0 @@
-# file : build/export/libodb-pgsql/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(src_root)/odb/pgsql/makefile,$(out_root))
-
-$(call export,\
- l: $(out_root)/odb/pgsql/odb-pgsql.l,\
- cpp-options: $(out_root)/odb/pgsql/odb-pgsql.l.cpp-options)
diff --git a/build/import/cli/cli-cxx.make b/build/import/cli/cli-cxx.make
deleted file mode 100644
index 9bdf238..0000000
--- a/build/import/cli/cli-cxx.make
+++ /dev/null
@@ -1,47 +0,0 @@
-# file : build/import/cli/cli-cxx.make
-# license : MIT; see accompanying LICENSE file
-
-# Here we are operating in the importing project's space, not in
-# cli's.
-#
-
-# Get the C++ file extensions.
-#
-$(call include,$(bld_root)/cxx/configuration-static.make)
-
-cli_pattern := \
-$(out_base)/%.$(cxx_s_suffix) \
-$(out_base)/%.$(cxx_h_suffix) \
-$(out_base)/%.$(cxx_i_suffix)
-
-$(cli_pattern): cli_options := \
---hxx-suffix .$(cxx_h_suffix) \
---ixx-suffix .$(cxx_i_suffix) \
---cxx-suffix .$(cxx_s_suffix)
-
-.PRECIOUS: $(cli_pattern)
-
-ifeq ($(out_base),$(src_base))
-
-$(cli_pattern): $(src_base)/%.cli
- $(call message,cli $<,$(cli) $(cli_options) --output-dir $(dir $@) $<)
-
-else
-
-$(cli_pattern): $(src_base)/%.cli | $$(dir $$@).
- $(call message,cli $<,$(cli) $(cli_options) --output-dir $(dir $@) $<)
-
-$(cli_pattern): $(out_base)/%.cli | $$(dir $$@).
- $(call message,cli $<,$(cli) $(cli_options) --output-dir $(dir $@) $<)
-endif
-
-.PHONY: $(out_base)/%.cxx.cli.clean
-
-$(out_base)/%.cxx.cli.clean: cxx_s_suffix := $(cxx_s_suffix)
-$(out_base)/%.cxx.cli.clean: cxx_h_suffix := $(cxx_h_suffix)
-$(out_base)/%.cxx.cli.clean: cxx_i_suffix := $(cxx_i_suffix)
-
-$(out_base)/%.cxx.cli.clean:
- $(call message,rm $$1,rm -f $$1,$(@:.cxx.cli.clean=.$(cxx_s_suffix)))
- $(call message,rm $$1,rm -f $$1,$(@:.cxx.cli.clean=.$(cxx_h_suffix)))
- $(call message,rm $$1,rm -f $$1,$(@:.cxx.cli.clean=.$(cxx_i_suffix)))
diff --git a/build/import/cli/configuration-rules.make b/build/import/cli/configuration-rules.make
deleted file mode 100644
index 6355000..0000000
--- a/build/import/cli/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/cli/configuration-rules.make
-# license : MIT; see accompanying LICENSE file
-
-$(dcf_root)/import/cli/configuration-dynamic.make: | $(dcf_root)/import/cli/.
- $(call message,,$(scf_root)/import/cli/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/cli/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/cli/configuration-dynamic.make)
-
-endif
diff --git a/build/import/cli/configure b/build/import/cli/configure
deleted file mode 100755
index 2a1fde4..0000000
--- a/build/import/cli/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/cli/configure
-# license : MIT; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'cli' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed "
-$echo "version of 'cli' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'cli'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'cli'."
-$eche
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo cli_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/cli/stub.make b/build/import/cli/stub.make
deleted file mode 100644
index 741b371..0000000
--- a/build/import/cli/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/cli/stub.make
-# license : MIT; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/cli/configuration-rules.make,$(dcf_root))
-
-cli_installed :=
-
-$(call -include,$(dcf_root)/import/cli/configuration-dynamic.make)
-
-ifdef cli_installed
-
-ifeq ($(cli_installed),y)
-
-$(call export,cli: cli,cli-rules: $(scf_root)/import/cli/cli-cxx.make)
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/cli/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libodb-pgsql/configuration-rules.make b/build/import/libodb-pgsql/configuration-rules.make
deleted file mode 100644
index 326a60c..0000000
--- a/build/import/libodb-pgsql/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb-pgsql/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb-pgsql/configuration-dynamic.make: | $(dcf_root)/import/libodb-pgsql/.
- $(call message,,$(scf_root)/import/libodb-pgsql/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb-pgsql/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb-pgsql/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb-pgsql/configure b/build/import/libodb-pgsql/configure
deleted file mode 100755
index 9d75cad..0000000
--- a/build/import/libodb-pgsql/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb-pgsql/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb-pgsql' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'libodb-pgsql' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb-pgsql'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb-pgsql'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_pgsql_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb-pgsql/stub.make b/build/import/libodb-pgsql/stub.make
deleted file mode 100644
index b770a63..0000000
--- a/build/import/libodb-pgsql/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb-pgsql/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb-pgsql/configuration-rules.make,$(dcf_root))
-
-libodb_pgsql_installed :=
-
-$(call -include,$(dcf_root)/import/libodb-pgsql/configuration-dynamic.make)
-
-ifdef libodb_pgsql_installed
-
-ifeq ($(libodb_pgsql_installed),y)
-
-$(call export,l: -lodb-pgsql -lodb -lpq,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb-pgsql/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libodb/configuration-rules.make b/build/import/libodb/configuration-rules.make
deleted file mode 100644
index 340c418..0000000
--- a/build/import/libodb/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb/configuration-dynamic.make: | $(dcf_root)/import/libodb/.
- $(call message,,$(scf_root)/import/libodb/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb/configure b/build/import/libodb/configure
deleted file mode 100755
index 261a202..0000000
--- a/build/import/libodb/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed "
-$echo "version of 'libodb' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb/stub.make b/build/import/libodb/stub.make
deleted file mode 100644
index 04dc786..0000000
--- a/build/import/libodb/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb/configuration-rules.make,$(dcf_root))
-
-libodb_installed :=
-
-$(call -include,$(dcf_root)/import/libodb/configuration-dynamic.make)
-
-ifdef libodb_installed
-
-ifeq ($(libodb_installed),y)
-
-$(call export,l: -lodb,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libpq/configuration-rules.make b/build/import/libpq/configuration-rules.make
deleted file mode 100644
index 3b43941..0000000
--- a/build/import/libpq/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libpq/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libpq/configuration-dynamic.make: | $(dcf_root)/import/libpq/.
- $(call message,,$(scf_root)/import/libpq/configure $@)
-
-ifndef %foreign%
-
-disfigure::
- $(call message,rm $(dcf_root)/import/libpq/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libpq/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libpq/configure b/build/import/libpq/configure
deleted file mode 100755
index 91b196f..0000000
--- a/build/import/libpq/configure
+++ /dev/null
@@ -1,79 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libpq/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out config file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'PostgreSQL library' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'PostgreSQL library' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-type=
-
-if [ "$installed" = "n" ]; then
-
- $echo
- $echo "Please enter the 'PostgreSQL' root directory."
- $echo
-
- root=`read_path --directory --exist`
-
- $echo
- $echo "Please select the library type you would like to use:"
- $echo
- $echo "(1) archive"
- $echo "(2) shared object"
- $echo
-
- type=`read_option "archive shared" "shared"`
-
-else
-
- libpq_libs=-lpq
-
- if pg_config --version > /dev/null 2>&1; then
-
- libpq_cppflags=-I`pg_config --includedir`
-
- else
- $echo
- $echo "Unable to discover installed 'PostgreSQL libraries' using pg_config."
- $echo "Assuming the C++ compiler will find them automatically."
- $echo
-
- libpq_cppflags=
-
- fi
-
-fi
-
-echo libpq_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
- echo libpq_root := $root >>$1
- echo libpq_type := $type >>$1
-
-else
-
- echo libpq_cppflags := $libpq_cppflags >>$1
- echo libpq_libs := $libpq_libs >>$1
-
-fi
diff --git a/build/import/libpq/rules.make b/build/import/libpq/rules.make
deleted file mode 100644
index 016a671..0000000
--- a/build/import/libpq/rules.make
+++ /dev/null
@@ -1,29 +0,0 @@
-# file : build/import/libpq/rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libpq/%: root := $(libpq_root)
-
-ifeq ($(libpq_type),archive)
-
-$(dcf_root)/import/libpq/pq.l: $(libpq_root)/libpq/.libs/libpq.a
- @echo $< >$@
-else
-
-$(dcf_root)/import/libpq/pq.l: $(libpq_root)/libpq/.libs/libpq.so
- @echo $< >$@
- @echo rpath:$(root)/libpq/.libs >>$@
-endif
-
-$(dcf_root)/import/libpq/pq.l.cpp-options:
- @ln -s $(root)/include $(dcf_root)/import/libpq/pq
- @echo include: -I$(dcf_root)/import/libpq >$@
-
-ifndef %foreign%
-
-disfigure::
- $(call message,rm $(dcf_root)/import/pq/pq.l,\
-rm -f $(dcf_root)/import/pq/pq.l)
- $(call message,,rm -f $(dcf_root)/import/libpq/pq)
- $(call message,,rm -f $(dcf_root)/import/libpq/pq.l.cpp-options)
-
-endif
diff --git a/build/import/libpq/stub.make b/build/import/libpq/stub.make
deleted file mode 100644
index 94ba269..0000000
--- a/build/import/libpq/stub.make
+++ /dev/null
@@ -1,33 +0,0 @@
-# file : build/import/libpq/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libpq/configuration-rules.make,$(dcf_root))
-
-libpq_installed :=
-
-$(call -include,$(dcf_root)/import/libpq/configuration-dynamic.make)
-
-ifdef libpq_installed
-
-ifeq ($(libpq_installed),y)
-
-$(call export,\
- l: $(libpq_libs),\
- cpp-options: ,\
- cpp-options-inline: $(libpq_cppflags))
-
-else
-
-$(call include-once,$(scf_root)/import/libpq/rules.make,$(dcf_root))
-
-$(call export,\
- l: $(dcf_root)/import/libpq/pq.l,\
- cpp-options: $(dcf_root)/import/libpq/pq.l.cpp-options)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libpq/version b/build/import/libpq/version
deleted file mode 100644
index 6e8bf73..0000000
--- a/build/import/libpq/version
+++ /dev/null
@@ -1 +0,0 @@
-0.1.0
diff --git a/build/root.build b/build/root.build
deleted file mode 100644
index 329cc45..0000000
--- a/build/root.build
+++ /dev/null
@@ -1,19 +0,0 @@
-# file : build/root.build
-# license : GNU GPL v2; see accompanying LICENSE file
-
-config [bool] config.libodb_pgsql.develop ?= false
-
-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