1 | String getWin32ResParameter() {↵ | | 1 | String getResourceFileParameter() {↵
|
2 | if (win32res != null) {↵ | | 2 | if (resourceFile != null) {↵
|
3 | return "/win32res:" + win32res.toString();↵ | | 3 | return "/resource=" + resourceFile.toString();↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | return null;↵ | | 5 | return null;↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * If true, require all compiler output to be in UTF8 format.↵ | | 9 | * If true, fails if ilasm tool fails.↵
|
10 | *↵ | | 10 | *↵
|
11 | *@param enabled The new utf8Output value↵ | | 11 | *@param b The new failOnError value↵
|
12 | */↵ | | 12 | */↵
|
13 | public void setUtf8Output(boolean enabled) {↵ | | 13 | public void setFailOnError(boolean b) {↵
|
14 | utf8output = enabled↵ | | 14 | failOnError = b;↵
|
| | | 15 | }↵
|
|
|
| | | 16 | /**↵
|
| | | 17 | * query fail on error flag↵
|
| | | 18 | *↵
|
| | | 19 | *@return The failFailOnError value↵
|
| | | 20 | */↵
|
| | | 21 | public boolean getFailOnError() {↵
|
15 | ;↵ | | 22 | return failOnError;↵
|
16 | }↵ | | 23 | }↵
|
|
|
17 | /**↵ | | 24 | /**↵
|
18 | * Gets the utf8OutpuParameter attribute of the CSharp object↵ | | 25 | * set the debug flag on or off.↵
|
| | | 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↵
|
19 | *↵ | | 42 | *↵
|
20 | *@return The utf8OutpuParameter value↵ | | 43 | *@return The debugParameter value↵
|
21 | */↵ | | 44 | */↵
|
22 | protected String getUtf8OutputParameter() {↵ | | 45 | protected String getDebugParameter() {↵
|
23 | return utf8output ? "/utf8output" : null;↵ | | 46 | return debug ? "/debug" : null;↵
|
24 | } | | 47 | }
|