File tree 4 files changed +42
-12
lines changed
4 files changed +42
-12
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ if premake.action.supports("None") then
355
355
{
356
356
" website/blog/**" ,
357
357
" website/community/**" ,
358
- " website/doc /**" ,
358
+ " website/docs /**" ,
359
359
" website/src/**" ,
360
360
" website/static/**" ,
361
361
" website/*"
Original file line number Diff line number Diff line change 1
- bindirs
1
+ Specifies extra paths to use when executing build commands
2
2
3
3
``` lua
4
- bindirs { " directory " }
4
+ bindirs { " directories " }
5
5
```
6
6
7
7
### Parameters ###
8
8
9
- ` directory ` - needs documentation .
9
+ ` directories ` - paths containing executable to run when building command .
10
10
11
11
### Applies To ###
12
12
@@ -19,6 +19,6 @@ Premake 5.0.0 alpha 12 or later.
19
19
### Examples ###
20
20
21
21
``` lua
22
- bindirs { " directory " }
22
+ bindirs { " bin/ " , " scripts/ " }
23
23
```
24
24
Original file line number Diff line number Diff line change 1
- compilebuildoutputs
1
+ Specify if generated file from [ ` buildcommands ` ] ( buildcommands.md ) should be compiled or not.
2
2
3
3
``` lua
4
4
compilebuildoutputs " value"
@@ -7,8 +7,8 @@ compilebuildoutputs "value"
7
7
### Parameters ###
8
8
9
9
` value ` one of:
10
- * ` on ` - needs documentation .
11
- * ` off ` - needs documentation .
10
+ * ` on ` - generated file should be compiled .
11
+ * ` off ` - generated file should not be compiled .
12
12
13
13
### Applies To ###
14
14
@@ -21,6 +21,19 @@ Premake 5.0.0 alpha 12 or later.
21
21
### Examples ###
22
22
23
23
``` lua
24
- compilebuildoutputs " value"
24
+ filter " files:**.cpp.in"
25
+ buildmessage " generate %{file.basename} from %{file.relpath}"
26
+ buildoutputs { " %{cfg.objdir}/%{file.basename}" ) }
27
+ buildcommands { " MyScript %[%{!file.abspath}] %[%{!cfg.objdir}/%{file.basename}]" }
28
+ compilebuildoutputs " on"
29
+ filter " files:**.h.in"
30
+ buildmessage " generate %{file.basename} from %{file.relpath}"
31
+ buildoutputs { " %{cfg.objdir}/%{file.basename}" ) }
32
+ buildcommands { " MyScript %[%{!file.abspath}] %[%{!cfg.objdir}/%{file.basename}]" }
33
+ compilebuildoutputs " off"
34
+ filter {}
25
35
```
26
36
37
+ ## See Also ##
38
+
39
+ * [ Custom Build Commands] ( Custom-Build-Commands.md )
Original file line number Diff line number Diff line change 1
- display
1
+ Text to display for rule or property definition
2
2
3
3
``` lua
4
4
display " value"
5
5
```
6
6
7
7
### Parameters ###
8
8
9
- ` value ` - needs documentation .
9
+ ` value ` - Text shown for the rule or property definition .
10
10
11
11
### Applies To ###
12
12
@@ -19,6 +19,23 @@ Premake 5.0.0 alpha 12 or later.
19
19
### Examples ###
20
20
21
21
``` lua
22
- display " value"
22
+ rule " myrule"
23
+ display " My custom rule"
24
+ fileextension " .in"
25
+
26
+ propertydefinition {
27
+ name = " myoption" ,
28
+ display = " My option" ,
29
+ description = " Select the option to use" ,
30
+ values = { [0 ] = " option1" , [1 ] = " option2" },
31
+ value = 1
32
+ }
33
+
34
+ buildmessage ' custom rule: {copy} %{file.relpath} %{file.basename}'
35
+ buildoutputs { " %{sln.location}/%{file.basename}" }
36
+ buildcommands { " MyScript {myoption} %[%{!file.abspath}] %[%{!sln.location}/%{file.basename}]" }
23
37
```
24
38
39
+ ## See Also ##
40
+
41
+ * [ Custom Rules] ( Custom-Rules.md )
You can’t perform that action at this time.
0 commit comments