quic: update quicly to v0.1.3
[vpp.git] / build / external / packages / quicly.mk
1 # Copyright (c) 2021 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 quicly_version := 0.1.3-vpp
15 quicly_tarball := quicly_$(quicly_version).tar.gz
16 quicly_tarball_md5sum := 195f156f311458f1bd4540765e62dd27
17 quicly_tarball_strip_dirs := 1
18 quicly_url := https://github.com/vpp-quic/quicly/releases/download/v$(quicly_version)/quicly_$(quicly_version).tar.gz
19
20 picotls_build_dir := $(B)/build-picotls
21
22 define  quicly_build_cmds
23         @cd $(quicly_build_dir) && \
24                 $(CMAKE) --target=quicly \
25                          -DWITH_DTRACE=OFF \
26                          -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \
27                 $(quicly_src_dir) > $(quicly_build_log)
28         @$(MAKE) quicly $(MAKE_ARGS) -C $(quicly_build_dir) > $(quicly_build_log)
29
30         @mkdir -p $(picotls_build_dir)
31         @cd $(picotls_build_dir) && \
32                 $(CMAKE) -DWITH_DTRACE=OFF -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \
33                 $(quicly_src_dir)/deps/picotls > $(quicly_build_log)
34         @$(MAKE) picotls-core picotls-openssl $(MAKE_ARGS) -C $(picotls_build_dir) > $(quicly_build_log)
35 endef
36
37 define  quicly_config_cmds
38         @true
39 endef
40
41 define  quicly_install_cmds
42         @$(MAKE) $(MAKE_ARGS) -C $(quicly_build_dir) install > $(quicly_install_log)
43         @$(MAKE) $(MAKE_ARGS) -C $(picotls_build_dir) install > $(quicly_install_log)
44 endef
45
46
47 $(eval $(call package,quicly))