Skip to content

Commit

Permalink
build: commit generated quicer_vsn.hrl
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Nov 7, 2023
1 parent 8d32f93 commit f7b66dc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 19 additions & 0 deletions include/quicer_vsn.hrl
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 1 addition & 2 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{erl_opts, [ debug_info
, {i, "priv/"} %% for generated quicer_vsn.hrl
]}.

{pre_hooks,
Expand Down Expand Up @@ -31,7 +30,7 @@
]
}.

{artifacts, [ "priv/quicer_vsn.hrl"
{artifacts, [ "include/quicer_vsn.hrl"
, "priv/libquicer_nif.so"
]}.

Expand Down

0 comments on commit f7b66dc

Please sign in to comment.