Skip to content

Commit

Permalink
Add os-families and os-families-exclude configuration option
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Nov 28, 2024
1 parent 58e98c3 commit f9d9a55
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion composer-json-php-ext-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,26 @@
"example": "my-extension-source",
"default": null
},
"os-families": {
"type": "array",
"minItems": 1,
"description": "An array of OS families to mark as compatible with the extension. Specifying this property will mean this package is not installable with PIE on any OS family not listed here. Must not be specified alongside os-families-exclude.",
"items": {
"type": "string",
"enum": ["windows", "bsd", "darwin", "solaris", "linux", "unknown"],
"description": "The name of the OS family to mark as compatible."
}
},
"os-families-exclude": {
"type": "array",
"minItems": 1,
"description": "An array of OS families to mark as incompatible with the extension. Specifying this property will mean this package is installable on any OS family except those listed here. Must not be specified alongside os-families.",
"items": {
"type": "string",
"enum": ["windows", "bsd", "darwin", "solaris", "linux", "unknown"],
"description": "The name of the OS family to exclude."
}
},
"configure-options": {
"type": "array",
"description": "These configure options make up the flags that can be passed to ./configure when installing the extension.",
Expand Down Expand Up @@ -67,7 +87,14 @@
}
}
}
}
},
"allOf": [
{
"not": {
"required": ["os-families", "os-families-exclude"]
}
}
]
}
}
}

0 comments on commit f9d9a55

Please sign in to comment.