#!/usr/bin/env python2 import sys from drake.tools.install.cpsutils import read_defs # Targets correct as of pybind11/pybind11@6d0b470. Ensure that SHA is taken # from pybind11/pybind11 and not RobotLocomotion/pybind11. defs = read_defs("#define PYBIND11_(VERSION[^\s]+)\s+([^\s]+)") if sys.platform.startswith('darwin'): defs["MODULE_LINK_FLAGS"] = '"Link-Flags": ["-undefined dynamic_lookup"],' else: defs["MODULE_LINK_FLAGS"] = "" content = """ { "Cps-Version": "0.8.0", "Name": "pybind11", "Description": "Seamless operability between C++11 and Python", "License": "BSD-3-Clause", "Version": "%(VERSION_MAJOR)s.%(VERSION_MINOR)s.%(VERSION_PATCH)s", "Requires": { "PythonInterp": { "Version": "2.7", "X-CMake-Find-Args": [ "EXACT", "MODULE" ] },
#!/usr/bin/env python2 from drake.tools.install.cpsutils import read_defs defs = read_defs("#define\s+EIGEN_(\w+_VERSION)\s+([0-9]+)") content = """ { "Cps-Version": "0.8.0", "Name": "Eigen3", "Description": "Lightweight C++ template library for vector and matrix math", "License": ["MPL-2.0", "LGPL-2.1+", "BSD-3-Clause"], "Version": "%(WORLD_VERSION)s.%(MAJOR_VERSION)s.%(MINOR_VERSION)s", "Default-Components": [":Eigen"], "Components": { "Eigen": { "Type": "interface", "Includes": ["@prefix@/include/eigen3"] } }, "X-CMake-Variables": { "EIGEN_FOUND": "ON", "EIGEN_INCLUDE_DIRS": "${CMAKE_CURRENT_LIST_DIR}/../../../include/eigen3" } } """ % defs print(content[1:])
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs defs = read_defs("#define\s+EIGEN_(\w+_VERSION)\s+([0-9]+)") content = """ { "Cps-Version": "0.8.0", "Name": "Eigen3", "Description": "Lightweight C++ template library for vector and matrix math", "License": ["MPL-2.0", "LGPL-2.1+", "BSD-3-Clause"], "Version": "%(WORLD_VERSION)s.%(MAJOR_VERSION)s.%(MINOR_VERSION)s", "Compat-Version": "%(WORLD_VERSION)s.0.0", "Default-Components": [ ":Eigen" ], "Components": { "Eigen": { "Type": "interface", "Includes": [ "@prefix@/include/eigen3" ] } } } """ % defs print(content[1:])
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs defs = read_defs("set\(YAML_CPP_(VERSION_.*)\s+\"([0-9]+)\"") content = """ { "Cps-Version": "0.8.0", "Name": "yaml-cpp", "Description": "A YAML parser and emitter in C++", "License": "MIT", "Version": "%(VERSION_MAJOR)s.%(VERSION_MINOR)s.%(VERSION_MINOR)s", "Compat-Version": "%(VERSION_MAJOR)s.0.0", "Default-Components": [ ":yaml-cpp" ], "Components": { "yaml-cpp": { "Type": "dylib", "Location": "@prefix@/lib/libyaml_cpp.so", "Includes": [ "@prefix@/include" ] } } } """ % defs print(content[1:])
#!/usr/bin/env python2 from drake.tools.install.cpsutils import read_defs defs = read_defs("#define LCM_(VERSION[^\s]+)\s+([^\s]+)") content = """ { "Cps-Version": "0.8.0", "Name": "lcm", "Description": "Lightweight Communications and Marshaling library", "License": "LGPL-2.1+", "Version": "%(VERSION_MAJOR)s.%(VERSION_MINOR)s.%(VERSION_PATCH)s", "Requires": { "jchart2d": { "Hints": ["@prefix@/lib/cmake/jchart2d"], "X-CMake-Find-Args": ["CONFIG"] } }, "Default-Components": [":lcm"], "Components": { "lcm-coretypes": { "Type": "interface", "Includes": ["@prefix@/include/lcm"] }, "lcm": { "Type": "dylib", "Includes": ["@prefix@/include/lcm"], "Location": "@prefix@/lib/libdrake_lcm.so", "Requires": [":lcm-coretypes"] },
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs defs = read_defs("set\(YAML_CPP_(VERSION_.*)\s+\"([0-9]+)\"") content = """ { "Cps-Version": "0.8.0", "Name": "yaml-cpp", "Description": "A YAML parser and emitter in C++", "License": "MIT", "Version": "%(VERSION_MAJOR)s.%(VERSION_MINOR)s.%(VERSION_MINOR)s", "Default-Components": [ ":yaml-cpp" ], "Components": { "yaml-cpp": { "Type": "dylib", "Location": "@prefix@/lib/libyaml_cpp.so", "Includes": [ "@prefix@/include" ] } } } """ % defs print(content[1:])
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs, read_requires defs = read_defs("set\s\(SDF_(.*VERSION)\s+([0-9]+)\)") defs.update(read_requires()) content = """ { "Cps-Version": "0.8.0", "Name": "SDFormat", "Description": "SDF is an XML file format that describes environments, objects, and robots in a manner suitable for robotic applications", "License": "Apache-2.0", "Version": "%(MAJOR_VERSION)s.%(MINOR_VERSION)s.%(PATCH_VERSION)s", "Requires": { "Boost": { "Version": "1.58", "X-CMake-Find-Args": ["MODULE"] }, "ignition-math3": { "Version": "%(ignition-math3_VERSION)s", "Hints": ["@prefix@/lib/cmake/ignition-math3"], "X-CMake-Find-Args": ["CONFIG"] } }, "Default-Components": [ ":sdformat" ], "Components": { "sdformat": { "Type": "dylib", "Location": "@prefix@/lib/libsdformat.so",
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs, read_requires defs = read_defs("set[\s]\(PROJECT_(.*_VERSION)\s+([^\s]+)\)") defs.update(read_requires()) content = """ { "Cps-Version": "0.8.0", "Name": "ignition-rndf0", "Description": "Ignition RNDF is a portable C++ library for parsing RNDF road network files", "License": "Apache-2.0", "Version": "%(MAJOR_VERSION)s.%(MINOR_VERSION)s.%(PATCH_VERSION)s", "Requires": { "ignition-math3": { "Version": "%(ignition-math3_VERSION)s", "Hints": ["@prefix@/lib/cmake/ignition-math3"], "X-CMake-Find-Args": [ "CONFIG" ] } }, "Default-Components": [ ":ignition-rndf0" ], "Components": { "ignition-rndf0": { "Type": "dylib", "Location": "@prefix@/lib/libignition_rndf.so", "Includes": [ "@prefix@/include" ], "Requires": [ "ignition-math3:ignition-math3" ] } }
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs, read_requires defs = read_defs("set[\s]\(PROJECT_(.*_VERSION)\s+([^\s]+)\)") defs.update(read_requires()) content = """ { "Cps-Version": "0.8.0", "Name": "ignition-rndf0", "Description": "Ignition RNDF is a portable C++ library for parsing RNDF road network files", "License": "Apache-2.0", "Version": "%(MAJOR_VERSION)s.%(MINOR_VERSION)s.%(PATCH_VERSION)s", "Requires": { "ignition-math4": { "Version": "%(ignition-math4_VERSION)s", "Hints": ["@prefix@/lib/cmake/ignition-math4"], "X-CMake-Find-Args": [ "CONFIG" ] } }, "Default-Components": [ ":ignition-rndf0" ], "Components": { "ignition-rndf0": { "Type": "dylib", "Location": "@prefix@/lib/libignition_rndf.so", "Includes": [ "@prefix@/include" ], "Requires": [ "ignition-math4:ignition-math4" ] } }
# This file is only used in cases when we need to rebuild spdlog from source. # See repository.bzl for the logic to select when that occurs. from drake.tools.install.cpsutils import read_defs, read_requires def_re = "#define\s+(\S+)\s+(\S+)" defs = read_defs(def_re) defs.update(read_requires()) content = """ { "Cps-Version": "0.8.0", "Name": "spdlog", "Description": "Fast C++ logging library", "License": "MIT", "Version": "%(SPDLOG_VER_MAJOR)s.%(SPDLOG_VER_MINOR)s.%(SPDLOG_VER_PATCH)s", "Requires": { "fmt": { "Version": "%(fmt_VERSION)s", "Hints": ["@prefix@/lib/cmake/fmt"], "X-CMake-Find-Args": ["CONFIG"] } }, "Default-Components": [":spdlog"], "Components": { "spdlog": { "Type": "dylib", "Includes": ["@prefix@/include/spdlog"], "Location": "@prefix@/lib/libdrake_spdlog.so", "Definitions": [
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs defs = read_defs("set\(OCTOMAP_(\w+_VERSION)\s([0-9]+)") content = """ { "Cps-Version": "0.8.0", "Name": "octomap", "Description": "An efficient probabilistic 3D mapping framework based on octrees.", "License": "BSD-3-Clause", "Version": "%(MAJOR_VERSION)s.%(MINOR_VERSION)s.%(PATCH_VERSION)s", "Default-Components": [ ":octomap", ":octomath" ], "Components": { "octomath": { "Type": "dylib", "Location": "@prefix@/lib/liboctomath.so", "Includes": [ "@prefix@/include" ] }, "octomap": { "Type": "dylib", "Location": "@prefix@/lib/liboctomap.so", "Includes": [ "@prefix@/include" ] } } } """ % defs print(content[1:])
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs defs = read_defs("#define ([^\s]+_VERSION)\s+([^\s]+)") content = """ { "Cps-Version": "0.8.0", "Name": "NLopt", "Description": "Nonlinear Optimizer", "License": [ "BSD-2-Clause", "BSD-3-Clause", "LGPL-2.1+", "MIT" ], "Version": "%(MAJOR_VERSION)s.%(MINOR_VERSION)s.%(BUGFIX_VERSION)s", "Default-Components": [":nlopt"], "Components": { "nlopt": { "Type": "dylib", "Location": "@prefix@/lib/libnlopt.so", "Includes": ["@prefix@/include/nlopt"] } } } """ % defs print(content[1:])
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs, read_requires defs = read_defs("set\s\(SDF_(.*VERSION)\s+([0-9]+)\)") defs.update(read_requires()) content = """ { "Cps-Version": "0.8.0", "Name": "SDFormat", "Description": "SDF is an XML file format that describes environments, objects, and robots in a manner suitable for robotic applications", "License": "Apache-2.0", "Version": "%(MAJOR_VERSION)s.%(MINOR_VERSION)s.%(PATCH_VERSION)s", "Requires": { "ignition-math3": { "Version": "%(ignition-math3_VERSION)s", "Hints": ["@prefix@/lib/cmake/ignition-math3"], "X-CMake-Find-Args": [ "CONFIG" ] } }, "Default-Components": [ ":sdformat" ], "Components": { "sdformat": { "Type": "dylib", "Location": "@prefix@/lib/libsdformat.so", "Includes": [ "@prefix@/include" ], "Link-Flags": [ "-ltinyxml" ], "Requires": [ "ignition-math3:ignition-math3" ] }
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs, read_requires defs = read_defs("set\(FCL_(\w+_VERSION)\s+([0-9]+)") defs.update(read_requires()) content = """ { "Cps-Version": "0.8.0", "Name": "fcl", "Description": "Flexible Collision Library", "License": ["BSD-3-Clause"], "Version": "%(MAJOR_VERSION)s.%(MINOR_VERSION)s.%(PATCH_VERSION)s", "Compat-Version": "%(MAJOR_VERSION)s.0.0", "Requires": { "ccd": { "Version": "%(ccd_VERSION)s", "Hints": ["@prefix@/lib/cmake/ccd"], "X-CMake-Find-Args": [ "CONFIG" ] }, "Eigen3": { "Version": "%(Eigen3_VERSION)s", "Hints": ["@prefix@/lib/cmake/eigen3"], "X-CMake-Find-Args": [ "CONFIG" ] }, "octomap": { "Version": "%(octomap_VERSION)s", "Hints": ["@prefix@/lib/cmake/octomap"], "X-CMake-Find-Args": [ "CONFIG" ] }
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs defs = read_defs("set\(CCD_(VERSION)\s\"([0-9\.]+)\"\)") content = """ { "Cps-Version": "0.8.0", "Name": "ccd", "Description": "Library for collision detection between two convex shapes", "License": "BSD-3-Clause", "Version": "%(VERSION)s", "Default-Components": [":ccd"], "Components": { "ccd": { "Type": "dylib", "Location": "@prefix@/lib/libccd.so", "Includes": ["@prefix@/include"] } } } """ % defs print(content[1:])
#!/usr/bin/env python from drake.tools.install.cpsutils import read_defs, read_requires defs = read_defs("set\(FCL_(\w+_VERSION)\s+([0-9]+)") defs.update(read_requires()) content = """ { "Cps-Version": "0.8.0", "Name": "fcl", "Description": "Flexible Collision Library", "License": ["BSD-3-Clause"], "Version": "%(MAJOR_VERSION)s.%(MINOR_VERSION)s.%(PATCH_VERSION)s", "Requires": { "ccd": { "Version": "%(ccd_VERSION)s", "Hints": ["@prefix@/lib/cmake/ccd"], "X-CMake-Find-Args": [ "CONFIG" ] }, "Eigen3": { "Version": "%(Eigen3_VERSION)s", "Hints": ["@prefix@/lib/cmake/eigen3"], "X-CMake-Find-Args": [ "CONFIG" ] }, "octomap": { "Version": "%(octomap_VERSION)s", "Hints": ["@prefix@/lib/cmake/octomap"], "X-CMake-Find-Args": [ "CONFIG" ] } },