2018-02-06 21:51:14 +03:00
|
|
|
#!/bin/bash
|
|
|
|
# script to build on mac
|
|
|
|
build=MinSizeRel
|
2018-08-18 00:46:38 +03:00
|
|
|
dataCompressionLib=libcompression
|
Merged PR 2308191: [MSIX SDK] add a c-make switch to exclude bundles from unpack
Enable the user to disable bundle support for the SDK by specifying -DSKIP_BUNDLES=on on CMake. If the user tries to unpack a bundle or create a bundle factory they will get 0x80070032 (E_NOTSUPPORTED). The binary size decreases ~60k.
Win x64
- bundle: 464 k
- no bundle: 413 k
Win x86
- bundle: 330 k
- no bundle: 293 k
Linux
- bundle: 5,424 k
- no bundle: 5,330 k
AOSP arm
- bundle: 4,381 k
- no bundle: 4,313 k
AOSP arm v7a
- bundle: 4,288 k
- no bundle: 4,220 k
MacOS
- bundle: 4,487 k
- no bundle: 4,413 k
iOS arm64
- bundle: 4,516 k
- no bundle: 4,458 k
Related work items: #18753331
2018-09-06 21:45:34 +03:00
|
|
|
bundle=off
|
2018-10-03 00:25:11 +03:00
|
|
|
xmlparserLib=applexml
|
|
|
|
xmlparser="-DXML_PARSER=applexml"
|
2018-02-06 21:51:14 +03:00
|
|
|
|
|
|
|
usage()
|
|
|
|
{
|
2018-10-03 00:25:11 +03:00
|
|
|
echo "usage: makemac [-b buildType] [-xzlib] [-parser-xerces]"
|
2018-02-06 21:51:14 +03:00
|
|
|
echo $'\t' "-b Build type. Default MinSizeRel"
|
2018-09-05 19:26:51 +03:00
|
|
|
echo $'\t' "-xzlib Use MSIX SDK Zlib instead of inbox libCompression api. Default on MacOS is libCompression."
|
Merged PR 2308191: [MSIX SDK] add a c-make switch to exclude bundles from unpack
Enable the user to disable bundle support for the SDK by specifying -DSKIP_BUNDLES=on on CMake. If the user tries to unpack a bundle or create a bundle factory they will get 0x80070032 (E_NOTSUPPORTED). The binary size decreases ~60k.
Win x64
- bundle: 464 k
- no bundle: 413 k
Win x86
- bundle: 330 k
- no bundle: 293 k
Linux
- bundle: 5,424 k
- no bundle: 5,330 k
AOSP arm
- bundle: 4,381 k
- no bundle: 4,313 k
AOSP arm v7a
- bundle: 4,288 k
- no bundle: 4,220 k
MacOS
- bundle: 4,487 k
- no bundle: 4,413 k
iOS arm64
- bundle: 4,516 k
- no bundle: 4,458 k
Related work items: #18753331
2018-09-06 21:45:34 +03:00
|
|
|
echo $'\t' "-sb Skip bundle support."
|
2018-10-03 00:25:11 +03:00
|
|
|
echo $'\t' "-parser-xerces Use xerces xml parser instead of default apple xml parser."
|
2018-02-06 21:51:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
printsetup()
|
|
|
|
{
|
|
|
|
echo "Build Type:" $build
|
2018-08-18 00:46:38 +03:00
|
|
|
echo "Data Compression library:" $dataCompressionLib
|
Merged PR 2308191: [MSIX SDK] add a c-make switch to exclude bundles from unpack
Enable the user to disable bundle support for the SDK by specifying -DSKIP_BUNDLES=on on CMake. If the user tries to unpack a bundle or create a bundle factory they will get 0x80070032 (E_NOTSUPPORTED). The binary size decreases ~60k.
Win x64
- bundle: 464 k
- no bundle: 413 k
Win x86
- bundle: 330 k
- no bundle: 293 k
Linux
- bundle: 5,424 k
- no bundle: 5,330 k
AOSP arm
- bundle: 4,381 k
- no bundle: 4,313 k
AOSP arm v7a
- bundle: 4,288 k
- no bundle: 4,220 k
MacOS
- bundle: 4,487 k
- no bundle: 4,413 k
iOS arm64
- bundle: 4,516 k
- no bundle: 4,458 k
Related work items: #18753331
2018-09-06 21:45:34 +03:00
|
|
|
echo "Skip bundle support:" $bundle
|
2018-10-03 00:25:11 +03:00
|
|
|
echo "parser:" $xmlparserLib
|
2018-02-06 21:51:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
while [ "$1" != "" ]; do
|
|
|
|
case $1 in
|
|
|
|
-b ) shift
|
|
|
|
build=$1
|
|
|
|
;;
|
2018-09-05 19:26:51 +03:00
|
|
|
-xzlib )dataCompressionLib=MSIX_SDK_zlib
|
|
|
|
zlib="-DUSE_MSIX_SDK_ZLIB=on"
|
2018-08-18 00:46:38 +03:00
|
|
|
;;
|
2018-10-03 00:25:11 +03:00
|
|
|
-parser-xerces ) xmlparserLib=xerces
|
|
|
|
xmlparser="-DXML_PARSER=xerces"
|
|
|
|
;;
|
Merged PR 2308191: [MSIX SDK] add a c-make switch to exclude bundles from unpack
Enable the user to disable bundle support for the SDK by specifying -DSKIP_BUNDLES=on on CMake. If the user tries to unpack a bundle or create a bundle factory they will get 0x80070032 (E_NOTSUPPORTED). The binary size decreases ~60k.
Win x64
- bundle: 464 k
- no bundle: 413 k
Win x86
- bundle: 330 k
- no bundle: 293 k
Linux
- bundle: 5,424 k
- no bundle: 5,330 k
AOSP arm
- bundle: 4,381 k
- no bundle: 4,313 k
AOSP arm v7a
- bundle: 4,288 k
- no bundle: 4,220 k
MacOS
- bundle: 4,487 k
- no bundle: 4,413 k
iOS arm64
- bundle: 4,516 k
- no bundle: 4,458 k
Related work items: #18753331
2018-09-06 21:45:34 +03:00
|
|
|
-sb ) bundle="on"
|
|
|
|
;;
|
2018-02-06 21:51:14 +03:00
|
|
|
-h ) usage
|
|
|
|
exit
|
|
|
|
;;
|
|
|
|
* ) usage
|
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
printsetup
|
|
|
|
|
|
|
|
mkdir .vs
|
|
|
|
cd .vs
|
|
|
|
|
2018-02-14 00:25:38 +03:00
|
|
|
# clean up any old builds of msix modules
|
|
|
|
find . -name *msix* -d | xargs rm -r
|
2018-02-06 21:51:14 +03:00
|
|
|
|
2018-10-03 00:25:11 +03:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=$build $zlib -DSKIP_BUNDLES=$bundle $xmlparser -DMACOS=on ..
|
2018-02-06 21:51:14 +03:00
|
|
|
make
|