env_macos.txt 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. 'If you change anything in this file, you should rebuild all!
  2. 'Hacks for dylibs in app
  3. MX2_APP_DIR_DYLIB= 'ie: dylibs go in app Contents/MacOS dir
  4. MX2_APP_DIR_FRAMEWORK=../Frameworks 'ie: frameworks go in app Contents/Frameworks dir
  5. 'LD options
  6. MX2_LD_OPTS_MACOS=-mmacosx-version-min=10.9 -Wl,-rpath,@executable_path -Wl,-rpath,@executable_path/../Frameworks
  7. MX2_LD_OPTS_MACOS_DEBUG=
  8. MX2_LD_OPTS_MACOS_RELEASE=-O3
  9. 'C compiler options
  10. MX2_CC_OPTS_MACOS=-std=gnu99 -mmacosx-version-min=10.9 -Wno-deprecated-declarations -Wno-tautological-pointer-compare -Wno-undefined-bool-conversion -Wno-int-to-void-pointer-cast -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-parentheses-equality
  11. MX2_CC_OPTS_MACOS_DEBUG=
  12. MX2_CC_OPTS_MACOS_RELEASE=-O3 -DNDEBUG
  13. 'C++ compiler options
  14. MX2_CPP_OPTS_MACOS=-std=c++11 -mmacosx-version-min=10.9 -Wno-deprecated-declarations -Wno-tautological-pointer-compare -Wno-undefined-bool-conversion -Wno-int-to-void-pointer-cast -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-parentheses-equality
  15. MX2_CPP_OPTS_MACOS_DEBUG=
  16. MX2_CPP_OPTS_MACOS_RELEASE=-O3 -DNDEBUG
  17. '***** EMSCRIPTEN *****
  18. 'For emscripten builds, you need emcc, em++ and emar in your PATH.
  19. '
  20. 'Alas, modern macos apps no longer inherit PATH settings so we need to harccode some in.
  21. 'These may need to be changed depending on where you install emscripten.
  22. EMSCRIPTEN=${HOME}/emsdk/emscripten/1.35.0
  23. PATH=${HOME}/emsdk:${HOME}/emsdk/clang/e1.35.0_64bit:${HOME}/emsdk/node/0.12.2_64bit/bin:${HOME}/emsdk/emscripten/1.35.0:${PATH}
  24. 'El Capitan broke my python...
  25. PATH=/usr/local/bin:${PATH}
  26. 'To run emscripten apps, you'll need MonkeyXFree86c in your devtools dir.
  27. MX2_MSERVER=open "${MX2_HOME}/devtools/mserver-v86c/mserver_macos.app" --args
  28. 'LD options
  29. MX2_LD_OPTS_EMSCRIPTEN=-s USE_SDL=2 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1
  30. MX2_LD_OPTS_EMSCRIPTEN_DEBUG=-O2
  31. MX2_LD_OPTS_EMSCRIPTEN_RELEASE=-O3
  32. 'C compiler options
  33. MX2_CC_OPTS_EMSCRIPTEN=-std=gnu99 -s USE_SDL=2 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1
  34. MX2_CC_OPTS_EMSCRIPTEN_DEBUG=-O2
  35. MX2_CC_OPTS_EMSCRIPTEN_RELEASE=-O3
  36. 'C++ compiler options
  37. MX2_CPP_OPTS_EMSCRIPTEN=-std=c++11 -s USE_SDL=2 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1
  38. MX2_CPP_OPTS_EMSCRIPTEN_DEBUG=-O2
  39. MX2_CPP_OPTS_EMSCRIPTEN_RELEASE=-O3
  40. '***** ANDROID *****
  41. PATH=${HOME}/Library/Android/sdk/ndk-bundle:${PATH}
  42. '***** IOS *****
  43. MX2_SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk
  44. 'LD options
  45. MX2_LD_OPTS_IOS=-arch armv7 -isysroot ${MX2_SDKROOT}
  46. MX2_LD_OPTS_IOS_DEBUG=-O0 -g
  47. MX2_LD_OPTS_IOS_RELEASE=-O3
  48. 'C compiler options
  49. MX2_CC_OPTS_IOS=-std=gnu99 -arch armv7 -isysroot ${MX2_SDKROOT} -fobjc-arc -Wno-deprecated-declarations -Wno-tautological-pointer-compare -Wno-undefined-bool-conversion -Wno-int-to-void-pointer-cast -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-parentheses-equality
  50. MX2_CC_OPTS_IOS_DEBUG=-O0 -g
  51. MX2_CC_OPTS_IOS_RELEASE=-O3 -DNDEBUG
  52. 'C++ compiler options
  53. MX2_CPP_OPTS_IOS=-std=c++11 -arch armv7 -isysroot ${MX2_SDKROOT} -fobjc-arc -Wno-deprecated-declarations -Wno-tautological-pointer-compare -Wno-undefined-bool-conversion -Wno-int-to-void-pointer-cast -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-parentheses-equality
  54. MX2_CPP_OPTS_IOS_DEBUG=-O0 -g
  55. MX2_CPP_OPTS_IOS_RELEASE=-O3 -DNDEBUG