Aloys Augustin | 7cae003 | 2019-04-01 16:43:29 +0200 | [diff] [blame] | 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 | |
Aloys Augustin | ba123e1 | 2019-05-14 14:13:51 +0200 | [diff] [blame^] | 14 | quicly_version := 0.0.2-vpp |
Aloys Augustin | 7cae003 | 2019-04-01 16:43:29 +0200 | [diff] [blame] | 15 | quicly_tarball := quicly_$(quicly_version).tar.gz |
Aloys Augustin | ba123e1 | 2019-05-14 14:13:51 +0200 | [diff] [blame^] | 16 | quicly_tarball_md5sum := f370bdb69c607c0e863a8abd57adbe75 |
Aloys Augustin | 7cae003 | 2019-04-01 16:43:29 +0200 | [diff] [blame] | 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 | |
Aloys Augustin | 7cae003 | 2019-04-01 16:43:29 +0200 | [diff] [blame] | 22 | define quicly_build_cmds |
| 23 | @cd $(quicly_build_dir) && \ |
| 24 | $(CMAKE) -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \ |
| 25 | $(quicly_src_dir) > $(quicly_build_log) |
| 26 | @$(MAKE) $(MAKE_ARGS) -C $(quicly_build_dir) > $(quicly_build_log) |
| 27 | |
| 28 | @mkdir -p $(picotls_build_dir) |
| 29 | @cd $(picotls_build_dir) && \ |
| 30 | $(CMAKE) -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \ |
| 31 | $(quicly_src_dir)/deps/picotls > $(quicly_build_log) |
| 32 | endef |
| 33 | |
| 34 | define quicly_config_cmds |
| 35 | @true |
| 36 | endef |
| 37 | |
| 38 | define quicly_install_cmds |
| 39 | @$(MAKE) $(MAKE_ARGS) -C $(quicly_build_dir) install > $(quicly_install_log) |
| 40 | @$(MAKE) $(MAKE_ARGS) -C $(picotls_build_dir) install > $(quicly_install_log) |
| 41 | endef |
| 42 | |
| 43 | |
| 44 | $(eval $(call package,quicly)) |