From f7b66dcc83ecfa08c66e49de889a0efff51a3e7b Mon Sep 17 00:00:00 2001 From: William Yang Date: Tue, 7 Nov 2023 16:17:42 +0100 Subject: [PATCH] build: commit generated quicer_vsn.hrl --- CMakeLists.txt | 2 +- build.sh | 1 + include/quicer_vsn.hrl | 19 +++++++++++++++++++ rebar.config | 3 +-- 4 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 include/quicer_vsn.hrl diff --git a/CMakeLists.txt b/CMakeLists.txt index 0105df31..706f2d62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,7 +83,7 @@ set(QUIC_TLS_SECRETS_SUPPORT "ON") configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/templates/quicer_vsn.hrl.in - ${CMAKE_CURRENT_SOURCE_DIR}/priv/quicer_vsn.hrl + ${CMAKE_CURRENT_SOURCE_DIR}/include/quicer_vsn.hrl ) configure_file( diff --git a/build.sh b/build.sh index 4115cdea..ba55f40e 100755 --- a/build.sh +++ b/build.sh @@ -96,4 +96,5 @@ fi if ([ -n $REBAR_DEPS_DIR ] && [ $(realpath -P "${REBAR_DEPS_DIR}/quicer/priv") != "${PWD}/priv" ]); then cp -r priv/* "${REBAR_DEPS_DIR}/quicer/priv/" + cp include/quicer_vsn.hrl "${REBAR_DEPS_DIR}/quicer/include/" fi diff --git a/include/quicer_vsn.hrl b/include/quicer_vsn.hrl new file mode 100644 index 00000000..d5eaca10 --- /dev/null +++ b/include/quicer_vsn.hrl @@ -0,0 +1,19 @@ +%%-------------------------------------------------------------------- +%% Copyright (c) 2023 EMQ Technologies Co., Ltd. All Rights Reserved. +%% +%% Licensed under the Apache License, Version 2.0 (the "License"); +%% you may not use this file except in compliance with the License. +%% You may obtain a copy of the License at +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%-------------------------------------------------------------------- +-ifndef(QUICER_VSN_HRL). +-define(QUICER_VSN_HRL, true). +-define(QUICER_ABI_VERSION, 1). +-endif. diff --git a/rebar.config b/rebar.config index 83d4f6cc..e817c7e2 100644 --- a/rebar.config +++ b/rebar.config @@ -1,5 +1,4 @@ {erl_opts, [ debug_info - , {i, "priv/"} %% for generated quicer_vsn.hrl ]}. {pre_hooks, @@ -31,7 +30,7 @@ ] }. -{artifacts, [ "priv/quicer_vsn.hrl" +{artifacts, [ "include/quicer_vsn.hrl" , "priv/libquicer_nif.so" ]}.