-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcfpp.rb
49 lines (39 loc) · 1.77 KB
/
cfpp.rb
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
class Cfpp < Formula
homepage "https://github.com/macmade/CFPP"
# head "https://github.com/macmade/CFPP.git", :using => :git
# url "https://github.com/macmade/CFPP/archive/0.1.6.zip"
# sha256 "882500a4c2ea6189448e64df49633e41d17be0c84f04af0067f51cf6816f568a"
url "https://github.com/macmade/CFPP.git", :using => :git
version "0.1.6"
depends_on :xcode => :build
depends_on "git" => :build
def install
system 'git',
'submodule', 'update', '--init'
# xcodebuild 'SYMROOT=build',
# '-configuration', 'Release',
# '-target', 'CF++ Mac Framework (C++11)',
# '-scheme', 'CF++ Mac Framework (C++11)'
#
# xcodebuild 'SYMROOT=build',
# '-configuration', 'Release',
# '-target', 'CF++ Mac Static Library (C++11)',
# '-scheme', 'CF++ Mac Static Library (C++11)'
#
# xcodebuild 'SYMROOT=build',
# '-configuration', 'Release',
# '-target', 'CF++ Mac Dynamic Library (C++11)',
# '-scheme', 'CF++ Mac Dynamic Library (C++11)'
xcodebuild 'SYMROOT=build',
'-configuration', 'Release',
'-target', 'CF++ (C++11)',
'-scheme', 'CF++ (C++11)'
# bin.install 'build/Release/Unit-Tests' <=== errors out
frameworks.install 'build/Release/CF++.framework'
lib.install 'build/Release/libCF++.a'
lib.install 'build/Release/libCF++.dylib'
include.install 'build/Release/usr/local/include/CF++.hpp'
(include/"CF++").mkdir
(include/"CF++").install Dir['build/Release/usr/local/include/CFPP*.hpp']
end
end