Skip to content

Commit

Permalink
Remove deprecated buildrule
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Jan 12, 2025
1 parent baa0e37 commit 380b917
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 51 deletions.
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

0 comments on commit 380b917

Please sign in to comment.