summaryrefslogtreecommitdiff
path: root/libpkgconf/build
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-07-09 22:02:41 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-07-11 15:45:23 +0300
commita0cb8991b2cb61e9c0f3d8075759939cc61d57f0 (patch)
tree07349d877ea962acc800bdad2695417d10c99330 /libpkgconf/build
parent6ef6c9d2da661bc315d4e690120db9079bfe0b9b (diff)
Add implementation
Diffstat (limited to 'libpkgconf/build')
-rw-r--r--libpkgconf/build/.gitignore3
-rw-r--r--libpkgconf/build/bootstrap.build30
-rw-r--r--libpkgconf/build/export.build10
-rw-r--r--libpkgconf/build/root.build16
4 files changed, 59 insertions, 0 deletions
diff --git a/libpkgconf/build/.gitignore b/libpkgconf/build/.gitignore
new file mode 100644
index 0000000..4a730a3
--- /dev/null
+++ b/libpkgconf/build/.gitignore
@@ -0,0 +1,3 @@
+config.build
+root/
+bootstrap/
diff --git a/libpkgconf/build/bootstrap.build b/libpkgconf/build/bootstrap.build
new file mode 100644
index 0000000..83258e5
--- /dev/null
+++ b/libpkgconf/build/bootstrap.build
@@ -0,0 +1,30 @@
+# file : build/bootstrap.build
+# copyright : Copyright (c) 2016-2019 Code Synthesis Ltd
+# license : ISC; see accompanying COPYING file
+
+project = libpkgconf
+
+using version
+using config
+using test
+using install
+using dist
+
+# The versioning scheme (after 0.9.12) assumes that each [major?] release has
+# it's own number (starting with 2). In any case, for the 1.3.90 to 1.4.0
+# release version increment the version in the library file name changed from
+# 2 to 3 (libpkgconf.so.2.0.0 -> libpkgconf.so.3.0.0). This probably means
+# that the first two release version components constitute a major version,
+# and the release number increments each time this version changes. So we just
+# need to watch their Makefile.am for any changes.
+#
+# See also: http://kaniini.dereferenced.org/2015/07/20/pkgconf-0-9-12-and-future.html
+#
+# Note that the upstream project didn't increment the release number (3) for
+# the 1.5 library version despite the ABI-breaking changes (issue #15 is
+# reported).
+#
+if ($version.major == 1 && $version.minor == 6)
+ release_num = 4
+else
+ fail "increment the release number?"
diff --git a/libpkgconf/build/export.build b/libpkgconf/build/export.build
new file mode 100644
index 0000000..dc19f45
--- /dev/null
+++ b/libpkgconf/build/export.build
@@ -0,0 +1,10 @@
+# file : build/export.build
+# copyright : Copyright (c) 2016-2019 Code Synthesis Ltd
+# license : ISC; see accompanying COPYING file
+
+$out_root/
+{
+ include libpkgconf/
+}
+
+export $out_root/libpkgconf/$import.target
diff --git a/libpkgconf/build/root.build b/libpkgconf/build/root.build
new file mode 100644
index 0000000..7e73ef0
--- /dev/null
+++ b/libpkgconf/build/root.build
@@ -0,0 +1,16 @@
+# file : build/root.build
+# copyright : Copyright (c) 2016-2019 Code Synthesis Ltd
+# license : ISC; see accompanying COPYING file
+
+c.std = 99
+
+using c
+
+h{*}: extension = h
+c{*}: extension = c
+
+if ($c.class == 'msvc')
+{
+ c.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
+ c.coptions += /wd4251 /wd4275 /wd4800
+}