This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
windows_32.yml
145 lines (136 loc) · 4.49 KB
/
windows_32.yml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
--- # ceedling project file for Windows
:release_build:
:output: libhelium.lib
:defines:
:test:
- WOLFSSL_USER_SETTINGS
:test_preprocess:
- WOLFSSL_USER_SETTINGS
- WOLFSSL_DTLS_ALLOW_FUTURE
- WOLFSSL_MIN_RSA_BITS=2048
- WOLFSSL_MIN_ECC_BITS=256
- HAVE_SECURE_RENEGOTIATION
#- USE_WINDOWS_API # avoids use of unistd.h
:release:
- WOLFSSL_USER_SETTINGS
- WOLFSSL_DTLS_ALLOW_FUTURE
- WOLFSSL_MIN_RSA_BITS=2048
- WOLFSSL_MIN_ECC_BITS=256
- HAVE_SECURE_RENEGOTIATION
:libraries:
:path_flag: /LIBPATH:${1}
:flag: ${1}.lib
:test:
- ws2_32
- advapi32
:cmock:
:when_ptr: :compare_ptr # build/test/mocks/mock_ssl.c(57818): error C2066: cast to function type is illegal
:environment:
- :path:
# mingw installs a link.exe too, try and avoid it...
- "#{ENV['VCToolsInstallDir']}bin\\\\Host#{ENV['Platform']}\\\\#{ENV['Platform']}"
- "#{ENV['PATH']}"
# Magic to override msvc project settings to use /MT instead of /MD, since -p:RuntimeLibrary=MultiThreaded doesn't work
# http://answers.flyppdevportal.com/MVC/Post/Thread/1a6dd13c-9f5c-430b-88ba-518bfcca00b1?category=vcgeneral
- _CL_: /MT
:dependencies:
:libraries:
- :name: WolfSSL
:source_path: third_party/wolfssl
:fetch:
:method: :git
:source: https://github.com/wolfSSL/wolfssl.git
:hash: d8dd69cf44825b8bf0364e1d8a1fea548b948e34
:build:
- "cp ../../windows/wolfssl-user_settings-32.h wolfssl/user_settings.h"
- "cp -f ../../windows/wolfssl-user_settings-32.h IDE/WIN/user_settings.h"
- "cp -f ../../windows/wolfssl.vcxproj ./wolfssl.vcxproj"
- "MSBuild.exe wolfssl.vcxproj -verbosity:detailed -t:Build -p:Configuration=Release -p:Platform=x86 -p:PlatformToolset=v142"
:artifacts:
:includes:
- /
- /wolfssl # needed e.g. for mock_ssl.h to find wolfssl/ssl.h
:static_libraries:
- Release/wolfssl.lib
:tools_test_file_preprocessor:
:arguments:
- /FI wolfssl/user_settings.h
- /FI wolfssl/wolfcrypt/settings.h
:tools_test_includes_preprocessor: # using gcc
:arguments:
- -include third_party/wolfssl/wolfssl/user_settings.h
- -include third_party/wolfssl/wolfssl/wolfcrypt/settings.h
# https://github.com/ThrowTheSwitch/Ceedling/issues/210 -> https://github.com/ThrowTheSwitch/Ceedling/files/1360977/project.txt
:tools:
# Ceedling defaults to using gcc for compiling, linking, etc.
# As [:tools] is blank, gcc will be used (so long as it's in your system path)
# See documentation to configure a given toolchain for use
:test_compiler:
:executable: cl
:name: 'msvc'
:arguments:
- /c
- /nologo
- /MT
- /GL
- /I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
- /I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE
- /D"$": COLLECTION_DEFINES_TEST_AND_VENDOR
- /Fo"${2}"
- "${1}"
:test_linker:
:executable: link
:name: 'msvc'
:arguments:
- /MACHINE:X86
- "${1}"
- /FORCE:MULTIPLE # /IGNORE:LNK4006 # mocks deliberatey duplicate symbols
- /LTCG
- "${5}"
- "${4}"
- /OUT:"${2}"
:test_file_preprocessor:
:executable: cl
:name: 'msvc'
:arguments:
- /P
- /C
- /I test_file_preprocessor
- /I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
- /I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE
- /D"$": COLLECTION_DEFINES_TEST_AND_VENDOR
- /D"$": DEFINES_TEST_PREPROCESS
- /Fi"${2}"
- "${1}"
# This is `gcc -E -MM -MG` which outputs a make dependency rule.
# Unsure how to coax cl.exe into doing this, so just stick with gcc.
#:test_includes_preprocessor:
# :executable: cl
# :name: 'msvc'
# :arguments:
# - /P
# - /I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
# - /I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE
# - /D"$": COLLECTION_DEFINES_TEST_AND_VENDOR
# - /D"$": DEFINES_TEST_PREPROCESS
# - "${1}"
:release_compiler:
:executable: cl
:name: 'msvc'
:arguments:
- /c
- /MT
- /I"$": COLLECTION_PATHS_SOURCE_INCLUDE_VENDOR
- /I"$": COLLECTION_PATHS_RELEASE_TOOLCHAIN_INCLUDE
- /D"$": COLLECTION_DEFINES_RELEASE_AND_VENDOR
- /Fo"${2}"
- "${1}"
:release_linker:
#:executable: link
:executable: lib
:name: 'msvc'
:arguments:
- /MACHINE:X86
- "${1}"
- /OUT:"${2}"
...