diff options
-rw-r--r-- | buildfile | 3 | ||||
-rw-r--r-- | libprint/.gitignore | 5 | ||||
-rw-r--r-- | libprint/build/root.build | 8 | ||||
-rw-r--r-- | libprint/libprint/buildfile | 12 | ||||
-rw-r--r-- | libprint/manifest | 6 | ||||
-rw-r--r-- | libprint/tests/basics/driver.cxx | 4 | ||||
-rw-r--r-- | libprint/tests/build/root.build | 4 |
7 files changed, 32 insertions, 10 deletions
@@ -1,5 +1,6 @@ # Glue buildfile that "pulls" all the packages in the project. # -import pkgs = */ +import pkgs = [dir_paths] $process.run_regex(\ + cat $src_root/packages.manifest, '\s*location\s*:\s*(\S+)\s*', '\1') ./: $pkgs diff --git a/libprint/.gitignore b/libprint/.gitignore index cece09c..6435b97 100644 --- a/libprint/.gitignore +++ b/libprint/.gitignore @@ -3,9 +3,14 @@ *.d *.t *.i +*.i.* *.ii +*.ii.* *.o *.obj +*.gcm +*.pcm +*.ifc *.so *.dll *.a diff --git a/libprint/build/root.build b/libprint/build/root.build index 9c83a8a..ae3d2a6 100644 --- a/libprint/build/root.build +++ b/libprint/build/root.build @@ -1,3 +1,7 @@ +# Uncomment to suppress warnings coming from external libraries. +# +#cxx.internal.scope = current + cxx.std = latest using cxx @@ -7,6 +11,10 @@ ixx{*}: extension = ixx txx{*}: extension = txx cxx{*}: extension = cxx +# Assume headers are importable unless stated otherwise. +# +hxx{*}: cxx.importable = true + # The test target for cross-testing (running tests under Wine, etc). # test.target = $cxx.target diff --git a/libprint/libprint/buildfile b/libprint/libprint/buildfile index 3097c53..c66998c 100644 --- a/libprint/libprint/buildfile +++ b/libprint/libprint/buildfile @@ -1,6 +1,6 @@ intf_libs = # Interface dependencies. impl_libs = # Implementation dependencies. -#import impl_libs += libhello%lib{hello} +#import xxxx_libs += libhello%lib{hello} lib{print}: {hxx ixx txx cxx}{** -version} hxx{version} $impl_libs $intf_libs @@ -14,12 +14,14 @@ hxx{version}: in{version} $src_root/manifest clean = ($src_root != $out_root) } +hxx{export}@./: cxx.importable = false + # Build options. # cxx.poptions =+ "-I$out_root" "-I$src_root" -obja{*}: cxx.poptions += -DLIBPRINT_STATIC_BUILD -objs{*}: cxx.poptions += -DLIBPRINT_SHARED_BUILD +{hbmia obja}{*}: cxx.poptions += -DLIBPRINT_STATIC_BUILD +{hbmis objs}{*}: cxx.poptions += -DLIBPRINT_SHARED_BUILD # Export options. # @@ -37,9 +39,9 @@ libs{print}: cxx.export.poptions += -DLIBPRINT_SHARED # for details on the version.* variable values. # if $version.pre_release - lib{print}: bin.lib.version = @"-$version.project_id" + lib{print}: bin.lib.version = "-$version.project_id" else - lib{print}: bin.lib.version = @"-$version.major.$version.minor" + lib{print}: bin.lib.version = "-$version.major.$version.minor" # Install into the libprint/ subdirectory of, say, /usr/include/ # recreating subdirectories. diff --git a/libprint/manifest b/libprint/manifest index 8628e22..89b09f2 100644 --- a/libprint/manifest +++ b/libprint/manifest @@ -1,6 +1,6 @@ : 1 name: libprint -version: 1.0.0+7 +version: 1.0.0+8 project: hello summary: The "Hello World" example printer library license: MIT ; MIT License. @@ -13,5 +13,5 @@ src-url: https://git.build2.org/cgit/hello/libprint/tree/libprint email: users@build2.org build-warning-email: builds@build2.org builds: all -depends: * build2 >= 0.11.0 -depends: * bpkg >= 0.11.0 +depends: * build2 >= 0.14.0- +depends: * bpkg >= 0.14.0- diff --git a/libprint/tests/basics/driver.cxx b/libprint/tests/basics/driver.cxx index e4439f3..5a093dd 100644 --- a/libprint/tests/basics/driver.cxx +++ b/libprint/tests/basics/driver.cxx @@ -1,9 +1,11 @@ -#include <cassert> #include <sstream> #include <libprint/version.hxx> #include <libprint/print.hxx> +#undef NDEBUG +#include <cassert> + int main () { using namespace std; diff --git a/libprint/tests/build/root.build b/libprint/tests/build/root.build index a67b2fe..8fafbfe 100644 --- a/libprint/tests/build/root.build +++ b/libprint/tests/build/root.build @@ -7,6 +7,10 @@ ixx{*}: extension = ixx txx{*}: extension = txx cxx{*}: extension = cxx +# Assume headers are importable unless stated otherwise. +# +hxx{*}: cxx.importable = true + # Every exe{} in this subproject is by default a test. # exe{*}: test = true |