env_macos.txt 3.6 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=-Wl,-rpath,@executable_path -Wl,-rpath,@executable_path/../Frameworks
  7. MX2_LD_OPTS_MACOS_DEBUG=-O0 '-g
  8. MX2_LD_OPTS_MACOS_RELEASE=-O3
  9. 'C compiler options
  10. MX2_CC_OPTS_MACOS=-std=gnu99 -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=-O0 '-g
  12. MX2_CC_OPTS_MACOS_RELEASE=-O3 -DNDEBUG
  13. 'C++ compiler options
  14. MX2_CPP_OPTS_MACOS=-std=c++11 -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=-O0 '-g
  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 in 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 FULL_ES2=1 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1 ' -s USE_PTHREADS=1 -s PTHREAD_POOL_SIZE=1
  30. MX2_LD_OPTS_EMSCRIPTEN_DEBUG=-O0 '-O2
  31. MX2_LD_OPTS_EMSCRIPTEN_RELEASE=-O3
  32. 'C compiler options
  33. MX2_CC_OPTS_EMSCRIPTEN=-std=gnu99 -s USE_SDL=2 -s FULL_ES2=1 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1 ' -s USE_PTHREADS=1 -s PTHREAD_POOL_SIZE=1 -Wno-undefined-bool-conversion -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-warn-absolute-paths
  34. MX2_CC_OPTS_EMSCRIPTEN_DEBUG=-O0 '-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 FULL_ES2=1 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1 ' -s USE_PTHREADS=1 -s PTHREAD_POOL_SIZE=1 -Wno-undefined-bool-conversion
  38. MX2_CPP_OPTS_EMSCRIPTEN_DEBUG=-O0 '-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/iPhoneOS9.3.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