diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-06-09 17:13:54 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-06-09 17:19:31 +0200 |
commit | 0dfb3d4b770c60800d5ae75832bf32970f95e964 (patch) | |
tree | 3b13e1658d7bf08a8a88c13f6d0a37369cf604a3 /buildfile | |
parent | 248e5cbd7b1949964cbc458635acf088af3cc58f (diff) |
Initial take on vcpkg packaging
Diffstat (limited to 'buildfile')
-rw-r--r-- | buildfile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/buildfile b/buildfile new file mode 100644 index 0000000..9dde155 --- /dev/null +++ b/buildfile @@ -0,0 +1,39 @@ +./: vcpkg/ manifest + +vcpkg/ +{ + ./: toolsrc/ + + toolsrc/ + { + ./: vcpkg/exe{vcpkg} file{VERSION.txt} + + # @@ Specify extensions explicitly because of source file names like + # commands.edit.cpp. Failed that, we will end up treating, in this case + # .edit, as a specified extension (because the pattern machinery will + # remove .cpp from matches that it has added to the pattern). + # + # @@ Not clear what's the right place for the excutable. + # + vcpkg/exe{vcpkg}: cxx{src/vcpkg/**.cpp +src/vcpkg} \ + hxx{include/vcpkg/**.h +include/pch} \ + fsdir{vcpkg/} + + cxx.poptions =+ -DDISABLE_METRICS=1 "-I$src_base/include" + + # Currently upstream is full of warnings, so disable for now. + # + if ($cxx.class == 'gcc') + cxx.coptions += -Wno-all -Wno-extra + + # For some standard libraries std::filesystem is in a separate library. + # + if ($cxx.stdlib == 'libstdc++') + cxx.libs += -lstdc++fs + elif ($cxx.stdlib == 'libc++') + cxx.libs += -lc++experimental + + if ($cxx.target.class == 'windows') + cxx.libs += bcrypt.lib + } +} |