lib/omnibus/project.rb [603:653]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def dependency(val)
      dependencies << val
      dependencies.dup
    end
    expose :dependency

    #
    # Add a build-only software dependency.
    #
    # This is a build time dependency that does not need to be installed at
    # runtime. If the software *also* needs to be present at runtime, see
    # {#dependency} instead.
    #
    # @example
    #   build_dependency 'foo'
    #   build_dependency 'bar'
    #
    # @param [String] val
    #   the name of a build-only dependency
    #
    # @return [Array<String>]
    #   the list of dependencies
    #
    def build_dependency(val)
      build_dependencies << val
      build_dependencies.dup
    end
    expose :build_dependency

    #
    # Declare a dependency on a system library.
    #
    # This is a runtime library dependency that is required to be present before
    # the build starts. It is used when linting the build and the produced
    # package to ensure that all dependencies are explicitly declared.
    #
    # @example
    #   system_dependency 'foo'
    #   system_dependency 'bar'
    #
    # @param [String] val
    #   the name of a system library dependency
    #
    # @return [Array<String>]
    #   the list of dependencies
    #
    def system_dependency(val)
      system_dependencies << val
      system_dependencies.dup
    end
    expose :system_dependency
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



lib/omnibus/software.rb [263:309]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def dependency(val)
      dependencies << val
      dependencies.dup
    end
    expose :dependency

    #
    # Add a build-only dependency to this software.
    #
    # @example
    #   build_dependency 'libxml2-dev'
    #   build_dependency 'libpng-dev'
    #
    # @param [String] val
    #   the name of a build-only dependency
    #
    # @return [Array<String>]
    #   the list of current build dependencies
    #
    def build_dependency(val)
      build_dependencies << val
      build_dependencies.dup
    end
    expose :build_dependency

    #
    # Declare a dependency on a system library.
    #
    # This is a runtime library dependency that is required to be present before
    # the build starts. It is used when linting the build and the produced
    # package to ensure that all dependencies are explicitly declared.
    #
    # @example
    #   system_dependency 'foo'
    #   system_dependency 'bar'
    #
    # @param [String] val
    #   the name of a system library dependency
    #
    # @return [Array<String>]
    #   the list of dependencies
    #
    def system_dependency(val)
      system_dependencies << val
      system_dependencies.dup
    end
    expose :system_dependency
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



