env_windows.txt 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. 'Hack: prevent code stripping for reflection based apps.
  2. '
  3. MX2_WHOLE_ARCHIVE=0
  4. 'If you change anything below, you should rebuild all!
  5. '***** WINDOWS TARGET *****
  6. '(Note: Don't use TDM GCC, as it uses SJLJ exceptions which are very slow)
  7. 'Need this to override installed mingws.
  8. GCC_EXEC_PREFIX=
  9. 'Mingw-64 for 32 bit apps.
  10. PATH=${MX2_HOME}\devtools\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;${PATH}
  11. PATH=${MX2_HOME}\devtools\i686-6.2.0-posix-dwarf-rt_v5-rev1\mingw32\bin;${PATH}
  12. 'Mingw-64 for 64 bit apps, but don't use 'coz no 64 bit angle lib yet.
  13. 'PATH=${MX2_HOME}\devtools\x86_64-5.3.0-posix-seh-rt_v4-rev0\mingw64\bin;${PATH}
  14. MX2_GCC_TOOLS_WINDOWS=${MX2_HOME}\devtools\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin
  15. 'Linker options
  16. MX2_LD_OPTS_WINDOWS=-static -m32
  17. MX2_LD_OPTS_WINDOWS_DEBUG=
  18. MX2_LD_OPTS_WINDOWS_RELEASE=-O3 ' -Wl,--gc-sections
  19. 'C Compiler options
  20. MX2_CC_OPTS_WINDOWS=-std=gnu99 -m32
  21. MX2_CC_OPTS_WINDOWS_DEBUG=
  22. MX2_CC_OPTS_WINDOWS_RELEASE=-O3 -DNDEBUG ' -fdata-sections -ffunction-sections
  23. 'C++ Compiler options
  24. MX2_CPP_OPTS_WINDOWS=-std=c++11 -m32
  25. MX2_CPP_OPTS_WINDOWS_DEBUG=
  26. MX2_CPP_OPTS_WINDOWS_RELEASE=-O3 -DNDEBUG ' -fvtable-gc -fdata-sections -ffunction-sections
  27. '***** EMSCRIPTEN *****
  28. 'Forbuild emscripten apps, you'll need to download and install emscripten.
  29. '
  30. 'To run emscripten apps, you'll need MonkeyXFree86c in your devtools directory.
  31. MX2_MSERVER="${MX2_HOME}\devtools\mserver-v86c\mserver_winnt.exe"
  32. 'Linker options
  33. MX2_LD_OPTS_EMSCRIPTEN=-s USE_SDL=2 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1
  34. MX2_LD_OPTS_EMSCRIPTEN_DEBUG=-O2
  35. MX2_LD_OPTS_EMSCRIPTEN_RELEASE=-O3
  36. 'C Compiler options
  37. MX2_CC_OPTS_EMSCRIPTEN=-std=gnu99 -s USE_SDL=2 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1
  38. MX2_CC_OPTS_EMSCRIPTEN_DEBUG=-O2
  39. MX2_CC_OPTS_EMSCRIPTEN_RELEASE=-O3
  40. 'C++ Compiler options
  41. MX2_CPP_OPTS_EMSCRIPTEN=-std=c++11 -s USE_SDL=2 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1
  42. MX2_CPP_OPTS_EMSCRIPTEN_DEBUG=-O2
  43. MX2_CPP_OPTS_EMSCRIPTEN_RELEASE=-O3
  44. '***** ANDROID *****
  45. 'This is where *my* ndk-bundle is located - yours is probably somewhere else!
  46. '
  47. 'For android builds, you need to either set this correctly or make sure 'ndk-build' is in your system PATH.
  48. 'PATH=D:\devtools\Android\sdk\ndk-bundle;${PATH}
  49. '***** RASPBIAN *****
  50. MX2_RASPBIAN_TOOLS=${MX2_HOME}\devtools\SysGCC\Raspberry\bin
  51. 'Linker options
  52. MX2_LD_OPTS_RASPBIAN=-static
  53. MX2_LD_OPTS_RASPBIAN_DEBUG=
  54. MX2_LD_OPTS_RASPBIAN_RELEASE=-s ' -Wl,--gc-sections
  55. 'C Compiler options
  56. MX2_CC_OPTS_RASPBIAN=-std=gnu99
  57. MX2_CC_OPTS_RASPBIAN_DEBUG=
  58. MX2_CC_OPTS_RASPBIAN_RELEASE=-O3 -DNDEBUG ' -fdata-sections -ffunction-sections
  59. 'C++ Compiler options
  60. MX2_CPP_OPTS_RASPBIAN=-std=c++11
  61. MX2_CPP_OPTS_RASPBIAN_DEBUG=
  62. MX2_CPP_OPTS_RASPBIAN_RELEASE=-O3 -DNDEBUG ' -fvtable-gc -fdata-sections -ffunction-sections