Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated buildrule #2412

Merged
merged 1 commit into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions src/_premake_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,6 @@
pathVars = false,
}

api.register {
name = "buildrule", -- DEPRECATED
scope = "config",
kind = "table",
tokens = true,
}

api.register {
name = "characterset",
scope = "config",
Expand Down Expand Up @@ -1202,24 +1195,6 @@
api.alias("propertydefinition", "propertyDefinition")
api.alias("removefiles", "excludes")


-----------------------------------------------------------------------------
--
-- Handlers for deprecated fields and values.
--
-----------------------------------------------------------------------------

-- 13 Apr 2017

api.deprecateField("buildrule", 'Use `buildcommands`, `buildoutputs`, and `buildmessage` instead.',
function(value)
if value.description then
buildmessage(value.description)
end
buildcommands(value.commands)
buildoutputs(value.outputs)
end)

-----------------------------------------------------------------------------
--
-- Install Premake's default set of command line arguments.
Expand Down
1 change: 0 additions & 1 deletion website/docs/Project-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
| [buildmessage](buildmessage.md) | |
| [buildoptions](buildoptions.md) | Additional build options (passed directly to compiler) |
| [buildoutputs](buildoutputs.md) | |
| [buildrule](buildrule.md) | |
| [callingconvention](callingconvention.md) | Sets the function calling convention |
| [cdialect](cdialect.md) | |
| [characterset](characterset.md) | Set the character encoding |
Expand Down
1 change: 0 additions & 1 deletion website/docs/Whats-New-in-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ title: What's New in 5.0

## Deprecated Values and Functions ##

* [buildrule](buildrule.md)
* [flags](flags.md):
* Component
* EnableSSE, EnableSSE2: use [vectorextensions](vectorextensions.md) instead
Expand Down
23 changes: 0 additions & 23 deletions website/docs/buildrule.md

This file was deleted.

1 change: 0 additions & 1 deletion website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ module.exports = {
'buildmessage',
'buildoptions',
'buildoutputs',
'buildrule',
'buildstlmodules',
'callingconvention',
'cdialect',
Expand Down
Loading