7 Commits

Author SHA1 Message Date
Fletcher Dunn 91465451d0 vcpkg fixes
vcpkg manigest:
- Add vcpkg-cmake as dependency of this project
- Don't support bcrypt as vcpkg feature.  Nobody using vcpkg wants bcrypt,
  so this is just a trap.

Local/test overlay port:
- Fix how we are setting SOURCE_PATH
- Add symlink to out vcpkg.json manifest, since a port needs one

Chat example built using vcpkg:
- Add GNS_LINK_STATIC option to vcpkg_example_chat project so I can test
  an app linking against static or dynamic lib.
2026-05-28 14:41:44 -07:00
Fletcher Dunn f805421c70 vcpkg: Update baseline and local overlay portfile 2026-05-03 20:06:28 -07:00
Fletcher Dunn 6156255f4a Improvements to build scripts.
Windows/vcpkg:
- Move out vcpkg.json to the root of our project, which is the recommended
  best practice and allows us to use vcpkg in "manifest mode", instead
  of "overlay ports" mode.

General:
- Automatically initialize git submodules if needed.  Don't rely on the
 user doing it, and take it out of the build script.
- A bunch of tweaks to .gitignore
2022-01-26 14:32:04 -08:00
Fletcher Dunn 5c793b9f1a Got cert tool building
This is progress towards fixing #186.  However, I need some help
publishing/installing (or whatever it's called) properly, and
there is probably a better way to integrate with picojson than
using a git submodule.
2021-11-23 17:26:15 -08:00
Fletcher Dunn 39f481ea6f Improved vcpkg support
Moved instructions for building windows manually to a separate file
and marked that method as not supported.

- Deleted the vcpkg CONTROL file, upgrade to a modern vcpkg.json manifest.
- Added tests and examples as vcpkg "features".
- Make sure we obey static/shared from the vcpkg triplet (I believe this
  addresses #175)
- Split out the detailed instructions for how to build Windows dependencies
  manually to a separate document, so we don't clutter up the main doc.

Also:
- Examples will always link with shared lib
- Tests always link with the static lib

I'm doing my best here to obey vcpkg (and cmake in general) best
practices / conventions, but this is not really something I have
expertise in, and the documentation on all this is realy not good,
so feel free to make suggestions if you see something that could be
done better.

Possible future improvements (HELP WANTED):
- Don't select the crypto with a feature, that is explicitly listed
  in the vcpkg docs as an anti-pattern.
- Add a feature for the cert tool.
- Add more CI actions to build more platforms to make sure they
  are all working.
2021-11-17 17:25:21 -08:00
Andrew Simpson 34ead6c9e2 Fixes for WebRTC / vcpkg build
* Fixed installation with WebRTC is enabled
* Added vcpkg feature option for webrtc
* Try to detect abseil before using our own submodule copy (means we can use the one from vcpkg)
* Fixed standalone example build
* Shaved down abseil dependencies and use properly namespaced names
2020-10-06 16:28:48 -07:00
Andrew Simpson 74d822505e vcpkg port
Configuration for a vcpkg port. Ideally, this would be contributed upstream to vcpkg with the set(SOURCE_PATH) call replaced with vcpkg_from_github()
2020-08-28 17:21:40 -07:00