File: generate_xcode.sh

package info (click to toggle)
p7zip 9.20.1~dfsg.1-4.1%2Bdeb8u3
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 13,368 kB
  • sloc: cpp: 104,670; ansic: 12,930; makefile: 1,899; sh: 1,031; asm: 159
file content (32 lines) | stat: -rwxr-xr-x 589 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

doit()
{
	cd ..
	rm -fr "$3.$1"
	mkdir "$3.$1"
	cd "$3.$1"
	cp ../CMAKE/$4 CMakeLists.txt
	
	mkdir 7za 7zFM 7zG Format7zFree
	
	cp ../CMAKE/CMakeLists_7za.txt  7za/CMakeLists.txt
	
	cp ../CMAKE/CMakeLists_7zFM.txt 7zFM/CMakeLists.txt
	
	cp ../CMAKE/CMakeLists_7zG.txt 7zG/CMakeLists.txt
	
	cp ../CMAKE/CMakeLists_Format7zFree.txt Format7zFree/CMakeLists.txt
	
	
	cmake -G "$2" -DCMAKE_BUILD_TYPE=Debug 
	#cmake -G "$2" -DCMAKE_BUILD_TYPE=Release 
}


CMAKE_OSX_ARCHITECTURES=i386
export CMAKE_OSX_ARCHITECTURES

CURDIR=$PWD

 cd $CURDIR
 doit "Xcode" "Xcode" "P7ZIP" "CMakeLists_ALL.txt"