Package.instrument (5650B)
1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <instrument rootdir="../" 3 xmlns:ak="file://instrument/tasks/ak" 4 xmlns:wwise="file://instrument/tasks/wwise" 5 xmlns:scripts="file://instrument/tasks/scripts"> 6 7 <!-- Predefined filepaths. --> 8 <property name="PKG_DISTRIBUTE_PATH" value="ReaperWwiseTransfer/Package.distribute" /> 9 10 <target name="build_reaper_wwise_transfer"> 11 <fail message="Requires the 'WWISE_BUILD_NUMBER' property to be set." if="${WWISE_BUILD_NUMBER is None}" /> 12 <fail message="Requires the 'WWISE_VERSION' property to be set." if="${WWISE_VERSION is None}" /> 13 <fail message="Requires the 'VERSION' property to be set." if="${VERSION is None}" /> 14 <fail message="Requires the 'BUILD_NUMBER' property to be set." if="${BUILD_NUMBER is None}" /> 15 16 <exec path="mkdir" verbose="true" workingdir="${_ROOT_DIRECTORY_}/ReaperWwiseTransfer"> 17 <arg value="build"/> 18 </exec> 19 20 <setenv name="WWISESDK" value="${_ROOT_DIRECTORY_}/Wwise/SDK"/> 21 22 <if condition="${platform.is_darwin()}"> 23 <exec path="cmake" verbose="true" workingdir="${_ROOT_DIRECTORY_}/ReaperWwiseTransfer/build"> 24 <arg value='-GXcode'/> 25 <arg value='..'/> 26 </exec> 27 </if> 28 <if condition="${not platform.is_darwin()}"> 29 <exec path="cmake" verbose="true" workingdir="${_ROOT_DIRECTORY_}/ReaperWwiseTransfer/build"> 30 <arg value='-G'/> 31 <arg value='Visual Studio 16 2019'/> 32 <arg value='..'/> 33 </exec> 34 </if> 35 36 <property name="CONFIGS" value="Release Debug" /> 37 <foreach property="CONFIG" items="${CONFIGS.split(' ')}"> 38 <exec path="cmake" verbose="true" workingdir="${_ROOT_DIRECTORY_}/ReaperWwiseTransfer/build"> 39 <arg value='--build'/> 40 <arg value='.'/> 41 <arg value='--target'/> 42 <arg value='ReaWwise'/> 43 <arg value='--config'/> 44 <arg value='${CONFIG}'/> 45 </exec> 46 <exec path="cmake" verbose="true" workingdir="${_ROOT_DIRECTORY_}/ReaperWwiseTransfer/build"> 47 <arg value='--build'/> 48 <arg value='.'/> 49 <arg value='--target'/> 50 <arg value='WwiseTransfer_Test'/> 51 <arg value='--config'/> 52 <arg value='${CONFIG}'/> 53 </exec> 54 </foreach> 55 </target> 56 57 <target name="distribute_artifacts"> 58 <fail message="Requires the 'REAPER_WWISE_TRANSFER_PLATFORM' property to be set." if="${REAPER_WWISE_TRANSFER_PLATFORM is None}" /> 59 <fail message="Requires the 'WWISE_BUILD_NUMBER' property to be set." if="${WWISE_BUILD_NUMBER is None}" /> 60 <fail message="Requires the 'BUILD_NUMBER' property to be set." if="${BUILD_NUMBER is None}" /> 61 <fail message="Requires the 'WWISE_VERSION' property to be set." if="${WWISE_VERSION is None}" /> 62 <fail message="Requires the 'VERSION' property to be set." if="${VERSION is None}" /> 63 64 <property name="REAPER_WWISE_TRANSFER_VERSION" value="${WWISE_BUILD_NUMBER}.${BUILD_NUMBER}" /> 65 66 <property name="CONFIGS" value="Release Debug" /> 67 <foreach property="CONFIG" items="${CONFIGS.split(' ')}"> 68 <distribute 69 file="${PKG_DISTRIBUTE_PATH}" 70 override-rootpath="${_root_directory_}/ReaperWwiseTransfer/Build/src/extension/${CONFIG}" 71 tasks="ReaperWwiseTransfer.${REAPER_WWISE_TRANSFER_PLATFORM}" 72 tool="7z" 73 mode="export" 74 /> 75 </foreach> 76 </target> 77 78 <target name="distribute_bundles"> 79 <fail message="Requires the 'REAPER_WWISE_TRANSFER_PLATFORM' property to be set." if="${REAPER_WWISE_TRANSFER_PLATFORM is None}" /> 80 <fail message="Requires the 'WWISE_BUILD_NUMBER' property to be set." if="${WWISE_BUILD_NUMBER is None}" /> 81 <fail message="Requires the 'BUILD_NUMBER' property to be set." if="${BUILD_NUMBER is None}" /> 82 <fail message="Requires the 'WWISE_VERSION' property to be set." if="${WWISE_VERSION is None}" /> 83 <fail message="Requires the 'VERSION' property to be set." if="${VERSION is None}" /> 84 85 <property name="REAPER_WWISE_TRANSFER_VERSION" value="${WWISE_BUILD_NUMBER}.${BUILD_NUMBER}" /> 86 <property name="CONFIG" value="Release" /> 87 <distribute 88 file="${PKG_DISTRIBUTE_PATH}" 89 override-rootpath="${_root_directory_}/ReaperWwiseTransfer" 90 tasks="ReaperWwiseTransfer.${REAPER_WWISE_TRANSFER_PLATFORM}" 91 tool="7z" 92 mode="import" 93 /> 94 95 <distribute 96 file="${PKG_DISTRIBUTE_PATH}" 97 override-rootpath="${_root_directory_}/ReaperWwiseTransfer" 98 tasks="ReaperWwiseTransferBinaryBundles.${REAPER_WWISE_TRANSFER_PLATFORM}" 99 tool="7z" 100 mode="export" 101 /> 102 </target> 103 104 <target name="generate-bundle-json"> 105 <fail message="Requires the 'BUILD_NUMBER' property to be set." if="${BUILD_NUMBER == None}" /> 106 <fail message="Requires the 'WWISE_VERSION' property to be set." if="${WWISE_VERSION is None}" /> 107 <fail message="Requires the 'WWISE_BUILD_NUMBER' property to be set." if="${WWISE_BUILD_NUMBER is None}" /> 108 <fail message="Requires the 'VERSION' property to be set." if="${VERSION is None}" /> 109 <fail message="Requires the 'VERSION_MAJOR' property to be set." if="${VERSION_MAJOR is None}" /> 110 <fail message="Requires the 'VERSION_MINOR' property to be set." if="${VERSION_MINOR is None}" /> 111 <fail message="Requires the 'VERSION_SUBMINOR' property to be set." if="${VERSION_SUBMINOR is None}" /> 112 113 <property name="PKG_PATH" value="${BUILDS_LOCATION}\ReaperWwiseTransfer\${VERSION}\${WWISE_VERSION}.${WWISE_BUILD_NUMBER}.${BUILD_NUMBER}\Bundles" /> 114 115 <!-- Generate a bundle.json file in the release folder with version info. --> 116 <ak:generatebundlejson 117 wwise-branch="" 118 wwise-build="${BUILD_NUMBER}" 119 wwise-major="${VERSION_MAJOR}" 120 wwise-minor="${VERSION_MINOR}" 121 wwise-nickname="" 122 wwise-subminor="${VERSION_SUBMINOR}" 123 template-path="ReaperWwiseTransfer\bundle_template.json" 124 release-path="${PKG_PATH}" 125 product-dependent-data="" 126 /> 127 128 </target> 129 130 </instrument>