1 | String getResourceFileParameter() {↵ | | 1 | String getWin32ResParameter() {↵
|
2 | if (resourceFile != null) {↵ | | 2 | if (win32res != null) {↵
|
3 | return "/resource=" + resourceFile.toString();↵ | | 3 | return "/win32res:" + win32res.toString();↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | return null;↵ | | 5 | return null;↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * If true, fails if ilasm tool fails.↵ | | 9 | * If true, require all compiler output to be in UTF8 format.↵
|
10 | *↵ | | 10 | *↵
|
11 | *@param b The new failOnError value↵ | | 11 | *@param enabled The new utf8Output value↵
|
12 | */↵ | | 12 | */↵
|
13 | public void setFailOnError(boolean b) {↵ | | 13 | public void set↵
|
14 | failOnError = b;↵ | | |
|
15 | }↵ | | |
|
|
|
16 | /**↵ | | |
|
17 | * query fail on error flag↵ | | 14 | Utf8Output(boolean enabled) {↵
|
18 | *↵ | | 15 | ↵
|
19 | *@return The failFailOnError value↵ | | 16 | ↵
|
20 | */↵ | | |
|
21 | public boolean getFailOnError() {↵ | | |
|
22 | return failOnError;↵ | | 17 | utf8output = enabled;↵
|
23 | }↵ | | 18 | }↵
|
|
|
24 | /**↵ | | 19 | /**↵
|
25 | * set the debug flag on or off.↵ | | 20 | * Gets the ↵
|
26 | *↵ | | |
|
27 | *@param f on/off flag↵ | | |
|
28 | */↵ | | |
|
29 | public void setDebug(boolean f) {↵ | | |
|
30 | debug = f;↵ | | |
|
31 | }↵ | | |
|
|
|
32 | /**↵ | | |
|
33 | * query the debug flag↵ | | |
|
34 | *↵ | | |
|
35 | *@return true if debug is turned on↵ | | |
|
36 | */↵ | | |
|
37 | public boolean getDebug() {↵ | | |
|
38 | return debug;↵ | | |
|
39 | }↵ | | |
|
|
|
40 | /**↵ | | |
|
41 | * get the argument or null for no argument needed↵ | | 21 | utf8OutpuParameter attribute of the CSharp object↵
|
42 | *↵ | | 22 | *↵
|
43 | *@return The debugParameter value↵ | | 23 | *@return The utf8OutpuParameter value↵
|
44 | */↵ | | 24 | */↵
|
45 | protected String getDebugParameter() {↵ | | 25 | protected String getUtf8OutputParameter() {↵
|
46 | return debug ? "/debug" : null;↵ | | 26 | return utf8output ? "/utf8output" : null;↵
|
47 | | | 27 |
|