# file : brep/buildfile # copyright : Copyright (c) 2014-2015 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file using cli # @@ The target should actually be mod_brep.so, not libmod_brep.so. Such # customization is not supported yet. # .: libso{brep mod_brep} # brep library build rules. # import libs += libodb%lib{odb} import libs += libodb-pgsql%lib{odb-pgsql} import libs += libbpkg%lib{bpkg} brep = cxx{package package-traits package-odb} libso{brep}: $brep $libs libso{brep}: cxx.export.poptions = -I$out_root -I$src_root # mod_brep library build rules. # import libs += libstudxml%lib{studxml} brep = cxx{services diagnostics module repository-root package-search \ package-details package-version-details repository-details \ shared-database page types-parsers} \ cli.cxx{options} web = ../web/apache/cxx{request service} ../web/cxx{mime-url-encoding} libso{mod_brep}: $brep $web libso{brep} $libs # Set option prefix to the empty value to handle all unknown request parameters # uniformly with a single catch block. # cli.options += --std c++11 -I $src_root --include-with-brackets \ --include-prefix brep --guard-prefix BREP \ --cxx-prologue "#include " \ --cli-namespace brep::cli --generate-file-scanner --suppress-usage \ --generate-modifier --generate-description --option-prefix "" cli.cxx{options}: cli{options}