user
07/15/2021, 5:53 AMbright-gpu-74537
07/15/2021, 5:54 AMbright-gpu-74537
07/15/2021, 5:55 AMuser
07/15/2021, 5:56 AMuser
07/15/2021, 6:01 AMbright-gpu-74537
07/15/2021, 6:02 AMuser
07/15/2021, 6:03 AMuser
07/15/2021, 6:03 AMnutritious-father-64388
07/16/2021, 4:55 PMnutritious-father-64388
07/16/2021, 4:57 PMbright-gpu-74537
07/16/2021, 5:58 PMnutritious-father-64388
07/16/2021, 6:03 PM<set name="lib_folder" value="gcc_lib" if="HXCPP_MINGW" />
<set name="lib_folder" value="gcc_dll" if="HXCPP_MINGW" />
Those are the folders the libraries get created at if you compile with GCC.
3. Changed this on the linker part of `Build.xml`:
<lib name="${WXWIN}\lib\${lib_folder}\*.lib" unless="HXCPP_MINGW"/>
<lib name="${WXWIN}\lib\${lib_folder}\*.a" if="HXCPP_MINGW" />
Change the extension if you're using mingw.
4. Changed these on the WXSTATIC section of the linker part:
<flag value="/NODEFAULTLIB:LIBCMT" unless="HXCPP_MINGW" /> <!-- should remove this if using /MT but couldnt see an easy way -->
<flag value="/MANIFEST:EMBED" unless="HXCPP_MINGW" />
<flag value="/SUBSYSTEM:windows" unless="debug||HXCPP_MINGW" />
<flag value="/ENTRY:mainCRTStartup" unless="debug||HXCPP_MINGW" />
Disable those if you're compiling with mingw.
Then you can compile with -D HXCPP_MINGW in your hxml and it just worksbright-gpu-74537
07/16/2021, 6:04 PMnutritious-father-64388
07/16/2021, 6:04 PMbright-gpu-74537
07/16/2021, 6:04 PMbright-gpu-74537
07/16/2021, 6:04 PMbright-gpu-74537
07/16/2021, 6:04 PMnutritious-father-64388
07/16/2021, 6:05 PMnutritious-father-64388
07/16/2021, 6:06 PMbright-gpu-74537
07/16/2021, 6:06 PMbright-gpu-74537
07/16/2021, 6:06 PMnutritious-father-64388
07/16/2021, 6:07 PMbright-gpu-74537
07/16/2021, 6:08 PMbright-gpu-74537
07/16/2021, 6:08 PMbright-gpu-74537
07/16/2021, 6:08 PMbright-gpu-74537
07/16/2021, 6:09 PMnutritious-father-64388
07/16/2021, 6:19 PMnutritious-father-64388
07/16/2021, 6:20 PMbright-gpu-74537
07/20/2021, 10:06 AMxml
<vbox style="padding: 5px;">
<style>
.button {
font-size: 24px;
}
</style>
<script>
var a = 1;
function testFunction1() {
a++;
trace("testFunction1 - " + a);
}
function testFunction2(param1) {
trace("testFunction2");
trace("param1: " + param1);
trace("button1.text: " + button1.text);
}
</script>
<hbox>
<button text="Click Me 1111!" id="button1" style="color: red;" />
<button text="Click Me!" id="button2" style="color: green;" />
<button text="Click Me!" onclick="trace('bob222');trace('tim');this.text=button1.text;" style="color: blue;" />
<button text="Click Me!" onclick="testFunction1();" style="color: blue;" />
<button text="Click Me!" onclick="testFunction2('something');" style="color: blue;" />
</hbox>
</vbox>
Turns into generated code like this: https://pastebin.com/4TasGGk3bright-gpu-74537
07/20/2021, 10:07 AM