blob: 018ae7240ef0e8c2dfcda33ad23f22d81638c5dd [file] [log] [blame]
Aloys Augustin7cae0032019-04-01 16:43:29 +02001# Copyright (c) 2019 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
14quicly_version := 0.0.1-vpp
15quicly_tarball := quicly_$(quicly_version).tar.gz
16quicly_tarball_md5sum := 60367171ece669c620a12ad0ba65edd5
17quicly_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
22ifneq ($(shell which cmake3),)
23CMAKE?=cmake3
24else
25CMAKE?=cmake
26endif
27
28define quicly_build_cmds
29 @cd $(quicly_build_dir) && \
30 $(CMAKE) -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \
31 $(quicly_src_dir) > $(quicly_build_log)
32 @$(MAKE) $(MAKE_ARGS) -C $(quicly_build_dir) > $(quicly_build_log)
33
34 @mkdir -p $(picotls_build_dir)
35 @cd $(picotls_build_dir) && \
36 $(CMAKE) -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \
37 $(quicly_src_dir)/deps/picotls > $(quicly_build_log)
38endef
39
40define quicly_config_cmds
41 @true
42endef
43
44define quicly_install_cmds
45 @$(MAKE) $(MAKE_ARGS) -C $(quicly_build_dir) install > $(quicly_install_log)
46 @$(MAKE) $(MAKE_ARGS) -C $(picotls_build_dir) install > $(quicly_install_log)
47endef
48
49
50$(eval $(call package,quicly))