Skip to content

Support building with platform specific commands #603

@ghost

Description

Corto's build system has become impressively stable and feature-rich supporting osx and linux projects. Several dependencies require platform dependent build flags such as macros or switch for variable size (-m32 or -m64). I propose we specify support for multiple platforms to ensure packages and applications are as portable as possible between build systems. I consider this functionality to be similar to the logic the build system employs to install packaged binaries from "Install" directory.

    "id": "oasys/core/dds/connext/factory",
    "type": "package",
    "value": {
        "description": "Factory for creating creating DDS entities",
        "author": "Alex Hendren",
        "version": "1.0.0",
        "language": "cpp",
        "managed": false,
        "noapi": true,
        "platforms": [
            {
                "linux": {
                    "name" : "linux-x64",
                    "include" : [
                        "$(CORTO_INCLUDE)/unix"
                    ],
                    "dependencies" : [
                        "oasys/core/common",
                        "oasys/core/dds/connext/vendor"
                    ],
                    "CXXFLAGS": ["-DRTI_UNIX -m64"]
                }
            },
            {
                "Darwin": {
                    "name" : "osx",
                    "include" : [
                        "$(CORTO_INCLUDE)/darwin"
                    ],
                    "dependencies" : [
                        "oasys/core/common",
                        "oasys/core/dds/connext/vendor"
                    ],
                    "CXXFLAGS": ["-DRTI_DARWIN"]
                }
            }
        ]
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions