Merge pull request #335 from ryandesign/script-cleanup
create_dylib.sh cleanup
This commit is contained in:
commit
976aa8cd47
@ -875,7 +875,7 @@
|
|||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "export MVK_OS=\"macosx\"\nexport MVK_ARCH=\"x86_64\"\nexport MVK_UX_FWK=\"AppKit\"\nexport MVK_MIN_OS_VERSION=${MACOSX_DEPLOYMENT_TARGET}\nexport MVK_IOSURFACE_FWK=\"-framework IOSurface\"\n\n\"${SRCROOT}/scripts/create_dylib.sh\"\n";
|
shellScript = "export MVK_OS=\"macosx\"\nexport MVK_UX_FWK=\"AppKit\"\nexport MVK_MIN_OS_VERSION=${MACOSX_DEPLOYMENT_TARGET}\nexport MVK_IOSURFACE_FWK=\"-framework IOSurface\"\n\n\"${SRCROOT}/scripts/create_dylib.sh\"\n";
|
||||||
};
|
};
|
||||||
A9731FAD1EDDAE39006B7298 /* Create Dynamic Library */ = {
|
A9731FAD1EDDAE39006B7298 /* Create Dynamic Library */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
@ -889,7 +889,7 @@
|
|||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "export MVK_OS=\"ios\"\nexport MVK_ARCH=\"arm64\"\nexport MVK_UX_FWK=\"UIKit\"\nexport MVK_MIN_OS_VERSION=${IPHONEOS_DEPLOYMENT_TARGET}\nexport MVK_IOSURFACE_FWK=\"-framework IOSurface\"\n\n# Do not link to IOSurface if deploying to iOS versions below 11.0, doing so will\n# link IOSurface as a private framework, which will trigger App Store rejection.\nif [ $(echo \"${MVK_MIN_OS_VERSION} < 11.0\" | bc) -eq 1 ]; then\n MVK_IOSURFACE_FWK=\"\"\nfi\n\n\"${SRCROOT}/scripts/create_dylib.sh\"\n";
|
shellScript = "export MVK_OS=\"ios\"\nexport MVK_UX_FWK=\"UIKit\"\nexport MVK_MIN_OS_VERSION=${IPHONEOS_DEPLOYMENT_TARGET}\nexport MVK_IOSURFACE_FWK=\"-framework IOSurface\"\n\n# Do not link to IOSurface if deploying to iOS versions below 11.0, doing so will\n# link IOSurface as a private framework, which will trigger App Store rejection.\nif [ $(echo \"${MVK_MIN_OS_VERSION} < 11.0\" | bc) -eq 1 ]; then\n MVK_IOSURFACE_FWK=\"\"\nfi\n\n\"${SRCROOT}/scripts/create_dylib.sh\"\n";
|
||||||
};
|
};
|
||||||
/* End PBXShellScriptBuildPhase section */
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
|
@ -10,9 +10,10 @@ if test x"${ENABLE_THREAD_SANITIZER}" = xYES; then
|
|||||||
MVK_TSAN="-fsanitize=thread"
|
MVK_TSAN="-fsanitize=thread"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clang \
|
clang++ \
|
||||||
|
-stdlib=${CLANG_CXX_LIBRARY} \
|
||||||
-dynamiclib ${MVK_TSAN} \
|
-dynamiclib ${MVK_TSAN} \
|
||||||
-arch ${MVK_ARCH} \
|
$(printf "-arch %s " ${ARCHS}) \
|
||||||
-m${MVK_OS}-version-min=${MVK_MIN_OS_VERSION} \
|
-m${MVK_OS}-version-min=${MVK_MIN_OS_VERSION} \
|
||||||
-compatibility_version 1.0.0 -current_version 1.0.0 \
|
-compatibility_version 1.0.0 -current_version 1.0.0 \
|
||||||
-install_name "@rpath/${MVK_DYLIB_NAME}" \
|
-install_name "@rpath/${MVK_DYLIB_NAME}" \
|
||||||
@ -21,6 +22,5 @@ clang \
|
|||||||
-iframework ${MVK_SYS_FWK_DIR} \
|
-iframework ${MVK_SYS_FWK_DIR} \
|
||||||
-framework Metal ${MVK_IOSURFACE_FWK} -framework ${MVK_UX_FWK} -framework QuartzCore -framework IOKit -framework Foundation \
|
-framework Metal ${MVK_IOSURFACE_FWK} -framework ${MVK_UX_FWK} -framework QuartzCore -framework IOKit -framework Foundation \
|
||||||
--library-directory ${MVK_USR_LIB_DIR} \
|
--library-directory ${MVK_USR_LIB_DIR} \
|
||||||
-lSystem -lc++ \
|
|
||||||
-o "${BUILT_PRODUCTS_DIR}/${MVK_DYLIB_NAME}" \
|
-o "${BUILT_PRODUCTS_DIR}/${MVK_DYLIB_NAME}" \
|
||||||
-force_load "${BUILT_PRODUCTS_DIR}/lib${PRODUCT_NAME}.a"
|
-force_load "${BUILT_PRODUCTS_DIR}/lib${PRODUCT_NAME}.a"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user