Skip to content

Commit 801e6a0

Browse files
Merge pull request #2412 from Jarod42/buildrule
Remove deprecated `buildrule`
2 parents 20ee427 + 380b917 commit 801e6a0

File tree

5 files changed

+0
-51
lines changed

5 files changed

+0
-51
lines changed

src/_premake_init.lua

-25
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,6 @@
9494
pathVars = false,
9595
}
9696

97-
api.register {
98-
name = "buildrule", -- DEPRECATED
99-
scope = "config",
100-
kind = "table",
101-
tokens = true,
102-
}
103-
10497
api.register {
10598
name = "characterset",
10699
scope = "config",
@@ -1204,24 +1197,6 @@
12041197
api.alias("propertydefinition", "propertyDefinition")
12051198
api.alias("removefiles", "excludes")
12061199

1207-
1208-
-----------------------------------------------------------------------------
1209-
--
1210-
-- Handlers for deprecated fields and values.
1211-
--
1212-
-----------------------------------------------------------------------------
1213-
1214-
-- 13 Apr 2017
1215-
1216-
api.deprecateField("buildrule", 'Use `buildcommands`, `buildoutputs`, and `buildmessage` instead.',
1217-
function(value)
1218-
if value.description then
1219-
buildmessage(value.description)
1220-
end
1221-
buildcommands(value.commands)
1222-
buildoutputs(value.outputs)
1223-
end)
1224-
12251200
-----------------------------------------------------------------------------
12261201
--
12271202
-- Install Premake's default set of command line arguments.

website/docs/Project-API.md

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
| [buildmessage](buildmessage.md) | |
2626
| [buildoptions](buildoptions.md) | Additional build options (passed directly to compiler) |
2727
| [buildoutputs](buildoutputs.md) | |
28-
| [buildrule](buildrule.md) | |
2928
| [callingconvention](callingconvention.md) | Sets the function calling convention |
3029
| [cdialect](cdialect.md) | |
3130
| [characterset](characterset.md) | Set the character encoding |

website/docs/Whats-New-in-5.0.md

-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ title: What's New in 5.0
146146

147147
## Deprecated Values and Functions ##
148148

149-
* [buildrule](buildrule.md)
150149
* [flags](flags.md):
151150
* Component
152151
* EnableSSE, EnableSSE2: use [vectorextensions](vectorextensions.md) instead

website/docs/buildrule.md

-23
This file was deleted.

website/sidebars.js

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ module.exports = {
7878
'buildmessage',
7979
'buildoptions',
8080
'buildoutputs',
81-
'buildrule',
8281
'buildstlmodules',
8382
'callingconvention',
8483
'cdialect',

0 commit comments

Comments
 (0)