env_macos.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. '***** MACOS DESKTOP TARGET *****
  2. 'Hacks for dylibs in app
  3. 'dylibs for in Contents/MacOS dir...
  4. MX2_APP_DIR_DYLIB=
  5. 'frameworks go in app Contents/Frameworks dir
  6. MX2_APP_DIR_FRAMEWORK=../Frameworks
  7. 'LD options
  8. MX2_LD_OPTS_MACOS=-mmacosx-version-min=10.9 -Wl,-rpath,@executable_path -Wl,-rpath,@executable_path/../Frameworks
  9. MX2_LD_OPTS_MACOS_DEBUG=
  10. MX2_LD_OPTS_MACOS_RELEASE=-O3
  11. 'C compiler options
  12. 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
  13. MX2_CC_OPTS_MACOS_DEBUG=
  14. MX2_CC_OPTS_MACOS_RELEASE=-O3 -DNDEBUG
  15. 'C++ compiler options
  16. MX2_CPP_OPTS_MACOS=-std=c++14 -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
  17. MX2_CPP_OPTS_MACOS_DEBUG=
  18. MX2_CPP_OPTS_MACOS_RELEASE=-O3 -DNDEBUG
  19. 'AS options
  20. MX2_AS_OPTS=
  21. '***** EMSCRIPTEN TARGET *****
  22. 'IMPORTANT:
  23. '
  24. 'Precompiled emscripten sdk packages appear to be completely broken on macos.
  25. '
  26. 'So you'll need to compile emscripten from source. Fortunately, this is quite easy to do as it's
  27. 'just like installing a precompiled package, ie:
  28. '
  29. './emsdk install sdk-incoming-64bit
  30. './emsdk activate sdk-incoming-64bit
  31. '
  32. 'then wait...
  33. '
  34. 'Also, change this to the location of your emsdk:
  35. '
  36. EMSDK=${HOME}/emsdk-portable
  37. PATH=${EMSDK}:${EMSDK}/clang/fastcomp/build_incoming_64/bin:${EMSDK}/node/4.1.1_64bit/bin:${EMSDK}/emscripten/incoming:${PATH}
  38. 'El Capitan broke my python...
  39. '
  40. PATH=/usr/local/bin:${PATH}
  41. 'To run emscripten apps you'll need the mserver mini-server.
  42. '
  43. MX2_MSERVER=open "${MX2_HOME}/devtools/mserver-v86c/mserver_macos.app" --args
  44. 'LD options
  45. MX2_LD_OPTS_EMSCRIPTEN=-s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISABLE_EXCEPTION_CATCHING=1
  46. MX2_LD_OPTS_EMSCRIPTEN_DEBUG=-O2 -s ASSERTIONS=2
  47. MX2_LD_OPTS_EMSCRIPTEN_RELEASE=-O3
  48. MX2_LD_OPTS_EMSCRIPTEN_WASM=-s BINARYEN=1
  49. 'C compiler options
  50. MX2_CC_OPTS_EMSCRIPTEN=-std=gnu99 -s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISABLE_EXCEPTION_CATCHING=1
  51. MX2_CC_OPTS_EMSCRIPTEN_DEBUG=-O2
  52. MX2_CC_OPTS_EMSCRIPTEN_RELEASE=-O3 -DNDEBUG
  53. 'C++ compiler options
  54. MX2_CPP_OPTS_EMSCRIPTEN=-std=c++14 -s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISABLE_EXCEPTION_CATCHING=1
  55. MX2_CPP_OPTS_EMSCRIPTEN_DEBUG=-O2
  56. MX2_CPP_OPTS_EMSCRIPTEN_RELEASE=-O3 -DNDEBUG
  57. '***** ANDROID TARGET *****
  58. 'Add path to android NDK
  59. '
  60. PATH=${HOME}/Library/Android/sdk/ndk-bundle:${PATH}
  61. 'Controls APP_ABI in Application.mk for NDK
  62. '
  63. MX2_ANDROID_APP_ABI=armeabi-v7a x86
  64. 'MX2_ANDROID_APP_ABI=all
  65. 'Controls APP_PLATFORM in Application.mk for NDK
  66. '
  67. MX2_ANDROID_APP_PLATFORM=android-14
  68. 'Android app compiler Compiler flags
  69. '
  70. MX2_ANDROID_APP_CFLAGS=-std=gnu99 -fno-stack-protector -w
  71. MX2_ANDROID_APP_CPPFLAGS=-std=c++11 -fno-stack-protector -frtti -fexceptions -w
  72. 'Controls version of STL used by android apps.
  73. '
  74. MX2_ANDROID_APP_STL=c++_static
  75. '***** IOS TARGET *****
  76. 'Note: must appear BEFORE first use of MX2_IOS_SDK
  77. '
  78. MX2_IOS_USE_SIMULATOR=0
  79. 'This is now set for you by mx2cc.
  80. '
  81. 'MX2_IOS_SDK=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk
  82. MX2_IOS_DEPLOYMENT_TARGET=8.0
  83. 'LD options
  84. MX2_LD_OPTS_IOS=${MX2_IOS_ARCHS} -isysroot ${MX2_IOS_SDK}
  85. MX2_LD_OPTS_IOS_DEBUG=
  86. MX2_LD_OPTS_IOS_RELEASE=-O3
  87. 'C compiler options
  88. '
  89. MX2_CC_OPTS_IOS=-std=gnu99 ${MX2_IOS_ARCHS} -miphoneos-version-min=${MX2_IOS_DEPLOYMENT_TARGET} -isysroot ${MX2_IOS_SDK} -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
  90. MX2_CC_OPTS_IOS_DEBUG=
  91. MX2_CC_OPTS_IOS_RELEASE=-O3 -DNDEBUG
  92. 'C++ compiler options
  93. '
  94. MX2_CPP_OPTS_IOS=-std=c++11 ${MX2_IOS_ARCHS} -miphoneos-version-min=${MX2_IOS_DEPLOYMENT_TARGET} -isysroot ${MX2_IOS_SDK} -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
  95. MX2_CPP_OPTS_IOS_DEBUG=-O0 -g
  96. MX2_CPP_OPTS_IOS_RELEASE=-O3 -DNDEBUG