From f4e192564a6e048eef14f21ab4d269874b6bfba3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 23 May 2018 18:30:01 +0300 Subject: Adapt to inventing package_name type --- bdep/project.hxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'bdep/project.hxx') diff --git a/bdep/project.hxx b/bdep/project.hxx index 20d3cf7..612897d 100644 --- a/bdep/project.hxx +++ b/bdep/project.hxx @@ -7,6 +7,8 @@ #include +#include + #include #include @@ -38,6 +40,12 @@ namespace bdep to((?) ? (?)->string () : bdep::optional_string ()) \ from((?) ? bdep::dir_path (*(?)) : bdep::optional_dir_path ()) + // package_name + // + using bpkg::package_name; + + #pragma db value(package_name) type("TEXT") options("COLLATE NOCASE") + // State of a package in a configuration. // // Pretty much everything about the package can change (including location @@ -51,7 +59,7 @@ namespace bdep #pragma db value struct package_state { - string name; + package_name name; }; // Configuration associated with a project. @@ -162,8 +170,8 @@ namespace bdep // struct package_location { - string name; - dir_path path; + package_name name; + dir_path path; }; using package_locations = vector; -- cgit v1.1