File: build.sh

package info (click to toggle)
csound 1%3A6.18.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 63,220 kB
  • sloc: ansic: 192,643; cpp: 14,149; javascript: 9,654; objc: 9,181; python: 3,376; java: 3,337; sh: 1,840; yacc: 1,255; xml: 985; perl: 635; lisp: 411; tcl: 341; lex: 217; makefile: 128
file content (19 lines) | stat: -rwxr-xr-x 1,142 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -x
rm -rf cs6iOS
mkdir cs6iOS
cd cs6iOS
cmake ../.. -G Xcode -T buildsystem=1 -DUSE_GETTEXT=0 -DUSE_DOUBLE=0 -DBUILD_STATIC_LIBRARY=1 -DBUILD_RELEASE=1 -DCMAKE_BUILD_TYPE=Release -DUSE_CURL=0 -DUSE_SSE=0 -DIOS=1 -DCUSTOM_CMAKE="../custom.cmake.ios"
# CMake was adding -mfpmath=sse which makes the build fail. The project needs to be edited in XCode to remove it before
# the build for devices can continue.
# clearing the CMAKE_C_FLAGS on custom.cmake seems to have solved this

xcodebuild -sdk iphoneos -xcconfig ../device.xcconfig -target CsoundLib-static -configuration Release -verbose
# something goes wrong with the creation of the csound_prslex.c file and it fails to build so we
# run it again to succeed. TODO: see why the build is out of order causing this problem
# xcodebuild -sdk iphoneos -xcconfig ../device.xcconfig -target CsoundLib-static -configuration Release -verbose

cp Release/libCsoundLib.a ./libcsound-device.a
xcodebuild -sdk iphonesimulator -xcconfig ../simulator.xcconfig -target CsoundLib-static -configuration Release 
lipo -create libcsound-device.a Release/libCsoundLib.a -output ../libcsound.a