Skip to content

jcmosc/Compute

Repository files navigation

Compute

An incremental computation library for Swift.

Compute is a reimplementation of the AttributeGraph framework on Apple platforms.

Building

Project setup

This project has a dependency on the Swift language codebase, which must be configured manually.

  1. Clone the swiftlang/swift repository to Checkouts/swift.

    From within the package directory:

    mkdir -p Checkouts
    cd Checkouts
    git clone [email protected]:swiftlang/swift.git swift
  2. Write the CMakeConfig.h file:

    From within the Swift repository:

    cat > include/swift/Runtime/CMakeConfig.h << EOF
    #ifndef SWIFT_RUNTIME_CMAKECONFIG_H
    #define SWIFT_RUNTIME_CMAKECONFIG_H
    #define SWIFT_VERSION_MAJOR "6"
    #define SWIFT_VERSION_MINOR "2"
    #endif
    EOF

Build as a Swift package

swift build

Build as a framework

This package can also be built as a XCFramework bundle using Xcode by running Scripts/create-xcframework.sh.

Acknowledgments

Thank you to OpenSwiftUIProject for providing much insight into AttributeGraph and the Swift runtime.

About

A reimplementation of the AttributeGraph framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published