12c593315Sopenharmony_ci# nghttp2 - HTTP/2 C Library
22c593315Sopenharmony_ci
32c593315Sopenharmony_ci# Copyright (c) 2012 Tatsuhiro Tsujikawa
42c593315Sopenharmony_ci
52c593315Sopenharmony_ci# Permission is hereby granted, free of charge, to any person obtaining
62c593315Sopenharmony_ci# a copy of this software and associated documentation files (the
72c593315Sopenharmony_ci# "Software"), to deal in the Software without restriction, including
82c593315Sopenharmony_ci# without limitation the rights to use, copy, modify, merge, publish,
92c593315Sopenharmony_ci# distribute, sublicense, and/or sell copies of the Software, and to
102c593315Sopenharmony_ci# permit persons to whom the Software is furnished to do so, subject to
112c593315Sopenharmony_ci# the following conditions:
122c593315Sopenharmony_ci
132c593315Sopenharmony_ci# The above copyright notice and this permission notice shall be
142c593315Sopenharmony_ci# included in all copies or substantial portions of the Software.
152c593315Sopenharmony_ci
162c593315Sopenharmony_ci# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
172c593315Sopenharmony_ci# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
182c593315Sopenharmony_ci# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
192c593315Sopenharmony_ci# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
202c593315Sopenharmony_ci# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
212c593315Sopenharmony_ci# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
222c593315Sopenharmony_ci# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
232c593315Sopenharmony_ciSUBDIRS = lib third-party src bpf examples tests integration-tests \
242c593315Sopenharmony_ci	doc contrib script
252c593315Sopenharmony_ci
262c593315Sopenharmony_ciACLOCAL_AMFLAGS = -I m4
272c593315Sopenharmony_ci
282c593315Sopenharmony_cidist_doc_DATA = README.rst
292c593315Sopenharmony_ci
302c593315Sopenharmony_ciEXTRA_DIST = nghttpx.conf.sample proxy.pac.sample android-config android-env \
312c593315Sopenharmony_ci	Dockerfile.android \
322c593315Sopenharmony_ci	cmakeconfig.h.in \
332c593315Sopenharmony_ci	CMakeLists.txt \
342c593315Sopenharmony_ci	CMakeOptions.txt \
352c593315Sopenharmony_ci	cmake/ExtractValidFlags.cmake \
362c593315Sopenharmony_ci	cmake/FindJemalloc.cmake \
372c593315Sopenharmony_ci	cmake/FindLibev.cmake \
382c593315Sopenharmony_ci	cmake/FindCUnit.cmake \
392c593315Sopenharmony_ci	cmake/Version.cmake \
402c593315Sopenharmony_ci	cmake/FindLibevent.cmake \
412c593315Sopenharmony_ci	cmake/FindJansson.cmake \
422c593315Sopenharmony_ci	cmake/FindLibcares.cmake \
432c593315Sopenharmony_ci	cmake/FindSystemd.cmake \
442c593315Sopenharmony_ci	cmake/FindLibbpf.cmake \
452c593315Sopenharmony_ci	cmake/FindLibnghttp3.cmake \
462c593315Sopenharmony_ci	cmake/FindLibngtcp2.cmake \
472c593315Sopenharmony_ci	cmake/FindLibngtcp2_crypto_quictls.cmake \
482c593315Sopenharmony_ci	cmake/PickyWarningsC.cmake \
492c593315Sopenharmony_ci	cmake/PickyWarningsCXX.cmake
502c593315Sopenharmony_ci
512c593315Sopenharmony_ci.PHONY: clang-format
522c593315Sopenharmony_ci
532c593315Sopenharmony_ci# Format source files using clang-format.  Don't format source files
542c593315Sopenharmony_ci# under third-party directory since we are not responsible for their
552c593315Sopenharmony_ci# coding style.
562c593315Sopenharmony_ciclang-format:
572c593315Sopenharmony_ci	CLANGFORMAT=`git config --get clangformat.binary`; \
582c593315Sopenharmony_ci	test -z $${CLANGFORMAT} && CLANGFORMAT="clang-format"; \
592c593315Sopenharmony_ci	$${CLANGFORMAT} -i lib/*.{c,h} lib/includes/nghttp2/*.h \
602c593315Sopenharmony_ci	src/*.{c,cc,h} examples/*.c \
612c593315Sopenharmony_ci	tests/*.{c,h} bpf/*.c fuzz/*.cc
62