'***** MACOS DESKTOP TARGET ***** 'Hacks for dylibs in app 'dylibs for in Contents/MacOS dir... MX2_APP_DIR_DYLIB= 'frameworks go in app Contents/Frameworks dir MX2_APP_DIR_FRAMEWORK=../Frameworks 'LD options MX2_LD_OPTS_MACOS=-mmacosx-version-min=10.9 -Wl,-rpath,@executable_path -Wl,-rpath,@executable_path/../Frameworks MX2_LD_OPTS_MACOS_DEBUG= MX2_LD_OPTS_MACOS_RELEASE=-O3 'C compiler options 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 MX2_CC_OPTS_MACOS_DEBUG= MX2_CC_OPTS_MACOS_RELEASE=-O3 -DNDEBUG 'C++ compiler options 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 MX2_CPP_OPTS_MACOS_DEBUG= MX2_CPP_OPTS_MACOS_RELEASE=-O3 -DNDEBUG 'AS options MX2_AS_OPTS= '***** EMSCRIPTEN TARGET ***** 'IMPORTANT: ' 'Precompiled emscripten sdk packages appear to be completely broken on macos. ' 'So you'll need to compile emscripten from source. Fortunately, this is quite easy to do as it's 'just like installing a precompiled package, ie: ' './emsdk install sdk-incoming-64bit './emsdk activate sdk-incoming-64bit ' 'then wait... ' 'Also, change this to the location of your emsdk: ' EMSDK=${HOME}/emsdk-portable PATH=${EMSDK}:${EMSDK}/clang/fastcomp/build_incoming_64/bin:${EMSDK}/node/4.1.1_64bit/bin:${EMSDK}/emscripten/incoming:${PATH} 'El Capitan broke my python... ' PATH=/usr/local/bin:${PATH} 'To run emscripten apps you'll need the mserver mini-server. ' MX2_MSERVER=open "${MX2_HOME}/devtools/mserver-v86c/mserver_macos.app" --args 'LD options MX2_LD_OPTS_EMSCRIPTEN=-s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISABLE_EXCEPTION_CATCHING=1 MX2_LD_OPTS_EMSCRIPTEN_DEBUG=-O2 -s ASSERTIONS=2 MX2_LD_OPTS_EMSCRIPTEN_RELEASE=-O3 MX2_LD_OPTS_EMSCRIPTEN_WASM=-s BINARYEN=1 'C compiler options MX2_CC_OPTS_EMSCRIPTEN=-std=gnu99 -s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISABLE_EXCEPTION_CATCHING=1 MX2_CC_OPTS_EMSCRIPTEN_DEBUG=-O2 MX2_CC_OPTS_EMSCRIPTEN_RELEASE=-O3 -DNDEBUG 'C++ compiler options MX2_CPP_OPTS_EMSCRIPTEN=-std=c++14 -s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISABLE_EXCEPTION_CATCHING=1 MX2_CPP_OPTS_EMSCRIPTEN_DEBUG=-O2 MX2_CPP_OPTS_EMSCRIPTEN_RELEASE=-O3 -DNDEBUG '***** ANDROID TARGET ***** 'Add path to android NDK ' PATH=${HOME}/Library/Android/sdk/ndk-bundle:${PATH} 'Controls APP_ABI in Application.mk for NDK ' MX2_ANDROID_APP_ABI=armeabi-v7a x86 'MX2_ANDROID_APP_ABI=all 'Controls APP_PLATFORM in Application.mk for NDK ' MX2_ANDROID_APP_PLATFORM=android-14 'Android app compiler Compiler flags ' MX2_ANDROID_APP_CFLAGS=-std=gnu99 -fno-stack-protector -w MX2_ANDROID_APP_CPPFLAGS=-std=c++11 -fno-stack-protector -frtti -fexceptions -w 'Controls version of STL used by android apps. ' MX2_ANDROID_APP_STL=c++_static '***** IOS TARGET ***** 'Note: must appear BEFORE first use of MX2_IOS_SDK ' MX2_IOS_USE_SIMULATOR=0 'This is now set for you by mx2cc. ' 'MX2_IOS_SDK=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk MX2_IOS_DEPLOYMENT_TARGET=8.0 'LD options MX2_LD_OPTS_IOS=${MX2_IOS_ARCHS} -isysroot ${MX2_IOS_SDK} MX2_LD_OPTS_IOS_DEBUG= MX2_LD_OPTS_IOS_RELEASE=-O3 'C compiler options ' 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 MX2_CC_OPTS_IOS_DEBUG= MX2_CC_OPTS_IOS_RELEASE=-O3 -DNDEBUG 'C++ compiler options ' 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 MX2_CPP_OPTS_IOS_DEBUG=-O0 -g MX2_CPP_OPTS_IOS_RELEASE=-O3 -DNDEBUG