env_windows.txt 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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=-s -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/WASM *****
  28. 'To build emscripten apps, you'll need to download and install emscripten.
  29. '
  30. 'To build wasm apps, you'll to install/build emscripten 'icoming' branch.
  31. '
  32. 'To run emscripten/wasm apps, you'll need MonkeyXFree86c in your devtools directory.
  33. MX2_MSERVER="${MX2_HOME}\devtools\mserver-v86c\mserver_winnt.exe"
  34. 'Linker options
  35. MX2_LD_OPTS_EMSCRIPTEN=-s USE_SDL=2 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1
  36. MX2_LD_OPTS_EMSCRIPTEN_DEBUG=-O2
  37. MX2_LD_OPTS_EMSCRIPTEN_RELEASE=-O3
  38. 'C Compiler options
  39. MX2_CC_OPTS_EMSCRIPTEN=-std=gnu99 -s USE_SDL=2 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1
  40. MX2_CC_OPTS_EMSCRIPTEN_DEBUG=-O2
  41. MX2_CC_OPTS_EMSCRIPTEN_RELEASE=-O3
  42. 'C++ Compiler options
  43. MX2_CPP_OPTS_EMSCRIPTEN=-std=c++11 -s USE_SDL=2 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1
  44. MX2_CPP_OPTS_EMSCRIPTEN_DEBUG=-O2
  45. MX2_CPP_OPTS_EMSCRIPTEN_RELEASE=-O3
  46. '***** ANDROID *****
  47. 'This is where *my* ndk-bundle is located - yours is probably somewhere else!
  48. '
  49. 'For android builds, you need to either set this correctly or make sure 'ndk-build' is in your system PATH.
  50. 'PATH=D:\devtools\Android\sdk\ndk-bundle;${PATH}
  51. 'Uncomment below to build for ALL android architectures (slow). Defaults to armeabi-v7a.
  52. MX2_ANDROID_APP_ABI=armeabi-v7a x86
  53. 'MX2_ANDROID_APP_ABI=all
  54. '***** RASPBIAN *****
  55. MX2_RASPBIAN_TOOLS=${MX2_HOME}\devtools\SysGCC\Raspberry\bin
  56. 'Linker options
  57. MX2_LD_OPTS_RASPBIAN=-static
  58. MX2_LD_OPTS_RASPBIAN_DEBUG=
  59. MX2_LD_OPTS_RASPBIAN_RELEASE=-s ' -Wl,--gc-sections
  60. 'C Compiler options
  61. MX2_CC_OPTS_RASPBIAN=-std=gnu99
  62. MX2_CC_OPTS_RASPBIAN_DEBUG=
  63. MX2_CC_OPTS_RASPBIAN_RELEASE=-O3 -DNDEBUG ' -fdata-sections -ffunction-sections
  64. 'C++ Compiler options
  65. MX2_CPP_OPTS_RASPBIAN=-std=c++11
  66. MX2_CPP_OPTS_RASPBIAN_DEBUG=
  67. MX2_CPP_OPTS_RASPBIAN_RELEASE=-O3 -DNDEBUG ' -fvtable-gc -fdata-sections -ffunction-sections