1# tscpp/util Makefile.am 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, software 14# distributed under the License is distributed on an "AS IS" BASIS, 15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16# See the License for the specific language governing permissions and 17# limitations under the License. 18 19include $(top_srcdir)/build/tidy.mk 20 21check_PROGRAMS = test_tscpputil 22 23TESTS = $(check_PROGRAMS) 24 25lib_LTLIBRARIES = libtscpputil.la 26 27AM_CPPFLAGS += -I$(abs_top_srcdir)/include 28 29libtscpputil_la_LDFLAGS = -no-undefined -version-info @TS_LIBTOOL_VERSION@ 30 31libtscpputil_la_SOURCES = \ 32 TextView.cc 33 34test_tscpputil_CPPFLAGS = $(AM_CPPFLAGS)\ 35 -I$(abs_top_srcdir)/tests/include 36 37test_tscpputil_CXXFLAGS = -Wno-array-bounds $(AM_CXXFLAGS) 38test_tscpputil_LDADD = libtscpputil.la 39test_tscpputil_SOURCES = \ 40 unit_tests/unit_test_main.cc \ 41 unit_tests/test_LocalBuffer.cc \ 42 unit_tests/test_MemSpan.cc \ 43 unit_tests/test_PostScript.cc \ 44 unit_tests/test_TextView.cc \ 45 unit_tests/test_ts_meta.cc 46 47clean-local: 48 rm -f ParseRulesCType ParseRulesCTypeToLower ParseRulesCTypeToUpper 49 50clang-tidy-local: $(DIST_SOURCES) 51 $(CXX_Clang_Tidy) 52