IPSEC-GRE: fixes and API update to common types.
[vpp.git] / build / external / packages / quicly.mk
1 # 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
14 quicly_repository := https://github.com/h2o/quicly.git
15 quicly_version := f25b70d37f8974af9cc48a4a565d13a9cdc5fd75
16 quicly_patch_dir := $(CURDIR)/patches/quicly
17
18 picotls_build_dir := $(B)/build-picotls
19
20 define  quicly_build_cmds
21         @cd $(quicly_build_dir) && \
22                 cmake -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \
23                 $(quicly_src_dir) > $(quicly_build_log)
24         @$(MAKE) $(MAKE_ARGS) -C $(quicly_build_dir) > $(quicly_build_log)
25
26         @mkdir -p $(picotls_build_dir)
27         @cd $(picotls_build_dir) && \
28                 cmake -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \
29                 $(quicly_src_dir)/deps/picotls > $(quicly_build_log)
30 endef
31
32 define  quicly_config_cmds
33         @true
34 endef
35
36 define  quicly_install_cmds
37         @$(MAKE) $(MAKE_ARGS) -C $(quicly_build_dir) install > $(quicly_install_log)
38         @$(MAKE) $(MAKE_ARGS) -C $(picotls_build_dir) install > $(quicly_install_log)
39 endef
40
41
42 $(eval $(call package,quicly))