-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrypto.lua
More file actions
85 lines (69 loc) · 1.93 KB
/
crypto.lua
File metadata and controls
85 lines (69 loc) · 1.93 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
gurlProject("crypto", "StaticLib")
useBaseLib()
useBoringSSL()
files {
"crypto/**.h",
"crypto/**.cc",
"crypto/**.cpp",
"crypto/**.c",
"crypto/**.mm"
}
excludes {
"crypto/**unittest.*",
"crypto/**perftest.*",
"crypto/scoped_test_system_nss_key_slot.cc",
"crypto/scoped_test_nss_db.cc",
}
defines {
"CRYPTO_IMPLEMENTATION",
}
filter {
"system:not macosx", "system:not ios",
"files:crypto/mock_apple_keychain.cc"
}
flags { "ExcludeFromBuild" }
filter {
"system:not macosx",
"files:crypto/cssm_init.cc or " ..
"files:crypto/mac_security_services_lock"
}
flags { "ExcludeFromBuild" }
filter {
"system:not windows",
"files:crypto/capi_util.cc"
}
flags { "ExcludeFromBuild" }
filter {
"options:not use-nss-certs",
"files:crypto/nss_key_util.cc or " ..
"files:crypto/nss_util.cc"
}
flags { "ExcludeFromBuild" }
excludeSysFilesFromBuild()
function useCryptoLib()
addBoringSSLDefinesAndIncludes()
useBaseLib()
-- We link against a library that's in the same workspace, so we can just
-- use the project name - premake is really smart and will handle everything for us.
links "crypto"
end
gurlProject("cypto_unittest", "ConsoleApp")
useGTestLib()
useGmockLib()
useBaseLib()
useBaseTestLib()
useCryptoLib()
files {
"crypto/**unittest.h",
"crypto/**unittest.cc",
"base/test/run_all_unittests.cc"
}
filter {
"options:not use-nss-certs",
"files:crypto/scoped_test_nss_db.cc or " ..
"files:crypto/nss_util_unittest.cc or " ..
"files:crypto/nss_key_util_unittest.cc"
}
flags { "ExcludeFromBuild" }
excludeSysFilesFromBuild()
linkSystemLibs()