blob: e8c1b42f1b700d6881539e51c80450af7c911878 [file] [log] [blame]
Mathias Raoul2e452382021-01-19 14:02:34 +00001# Copyright (c) 2021 Cisco and/or its affiliates.
Aloys Augustin7cae0032019-04-01 16:43:29 +02002# 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
Dave Wallace06bbab02022-11-30 22:29:07 -050014quicly_version := 0.1.4-vpp
Aloys Augustin7cae0032019-04-01 16:43:29 +020015quicly_tarball := quicly_$(quicly_version).tar.gz
Dave Wallace06bbab02022-11-30 22:29:07 -050016quicly_tarball_md5sum := 5419a0f340c5572bcf682c08acc84c77
Aloys Augustin7cae0032019-04-01 16:43:29 +020017quicly_tarball_strip_dirs := 1
18quicly_url := https://github.com/vpp-quic/quicly/releases/download/v$(quicly_version)/quicly_$(quicly_version).tar.gz
19
20picotls_build_dir := $(B)/build-picotls
21
Aloys Augustin7cae0032019-04-01 16:43:29 +020022define quicly_build_cmds
23 @cd $(quicly_build_dir) && \
Dave Wallace051579d2022-12-07 13:06:47 -050024 rm -f $(quicly_build_log) && \
Nathan Skrzypczakfd77f8c2021-05-12 18:47:12 +020025 $(CMAKE) -DWITH_DTRACE=OFF \
Mathias Raouldb36fda2021-04-02 18:02:24 +000026 -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \
Dave Wallace051579d2022-12-07 13:06:47 -050027 $(quicly_src_dir) >> $(quicly_build_log)
28 @$(MAKE) quicly $(MAKE_ARGS) -C $(quicly_build_dir) >> $(quicly_build_log)
Aloys Augustin7cae0032019-04-01 16:43:29 +020029
30 @mkdir -p $(picotls_build_dir)
31 @cd $(picotls_build_dir) && \
MathiasRaoul72c159e2019-10-02 14:56:15 +000032 $(CMAKE) -DWITH_DTRACE=OFF -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \
Dave Wallace051579d2022-12-07 13:06:47 -050033 $(quicly_src_dir)/deps/picotls >> $(quicly_build_log)
34 @$(MAKE) picotls-core picotls-openssl $(MAKE_ARGS) -C $(picotls_build_dir) >> $(quicly_build_log)
Aloys Augustin7cae0032019-04-01 16:43:29 +020035endef
36
37define quicly_config_cmds
38 @true
39endef
40
41define quicly_install_cmds
Dave Wallace051579d2022-12-07 13:06:47 -050042 @rm -f $(quicly_install_log)
43 @$(MAKE) $(MAKE_ARGS) -C $(quicly_build_dir) install >> $(quicly_install_log)
44 @$(MAKE) $(MAKE_ARGS) -C $(picotls_build_dir) install >> $(quicly_install_log)
Aloys Augustin7cae0032019-04-01 16:43:29 +020045endef
46
47
48$(eval $(call package,quicly))