143feee13SJuergen Schmidt#/**************************************************************
243feee13SJuergen Schmidt# *
343feee13SJuergen Schmidt# * Licensed to the Apache Software Foundation (ASF) under one
443feee13SJuergen Schmidt# * or more contributor license agreements.  See the NOTICE file
543feee13SJuergen Schmidt# * distributed with this work for additional information
643feee13SJuergen Schmidt# * regarding copyright ownership.  The ASF licenses this file
743feee13SJuergen Schmidt# * to you under the Apache License, Version 2.0 (the
843feee13SJuergen Schmidt# * "License"); you may not use this file except in compliance
943feee13SJuergen Schmidt# * with the License.  You may obtain a copy of the License at
1043feee13SJuergen Schmidt# *
1143feee13SJuergen Schmidt# *   http://www.apache.org/licenses/LICENSE-2.0
1243feee13SJuergen Schmidt# *
1343feee13SJuergen Schmidt# * Unless required by applicable law or agreed to in writing,
1443feee13SJuergen Schmidt# * software distributed under the License is distributed on an
1543feee13SJuergen Schmidt# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1643feee13SJuergen Schmidt# * KIND, either express or implied.  See the License for the
1743feee13SJuergen Schmidt# * specific language governing permissions and limitations
1843feee13SJuergen Schmidt# * under the License.
1943feee13SJuergen Schmidt# *
2043feee13SJuergen Schmidt# *************************************************************/
2143feee13SJuergen Schmidt
2243feee13SJuergen Schmidtgb_Cxx_extension=cc
2343feee13SJuergen Schmidt
2443feee13SJuergen Schmidt$(eval $(call gb_Library_Library,gtest))
2543feee13SJuergen Schmidt
2643feee13SJuergen Schmidt$(eval $(call gb_Library_add_package_headers,gtest,gtest_inc))
2743feee13SJuergen Schmidt
2843feee13SJuergen Schmidt$(eval $(call gb_Library_set_include,gtest,\
2943feee13SJuergen Schmidt	$$(INCLUDE) \
3043feee13SJuergen Schmidt	-I. \
3143feee13SJuergen Schmidt	-I./include \
3243feee13SJuergen Schmidt))
3343feee13SJuergen Schmidt
3443feee13SJuergen Schmidt$(eval $(call gb_Library_set_defs,gtest,\
3543feee13SJuergen Schmidt	$$(DEFS) \
3643feee13SJuergen Schmidt	-DGTEST_CREATE_SHARED_LIBRARY=1 \
3743feee13SJuergen Schmidt))
3843feee13SJuergen Schmidt
3943feee13SJuergen Schmidt$(eval $(call gb_Library_set_ldflags,gtest,\
4043feee13SJuergen Schmidt	$$(LDFLAGS) \
4143feee13SJuergen Schmidt))
4243feee13SJuergen Schmidt
4343feee13SJuergen Schmidt$(eval $(call gb_Library_add_linked_libs,gtest,\
44*8af27df8SJuergen Schmidt    kernel32 msvcrt oldnames \
4543feee13SJuergen Schmidt    $(gb_Library_STLLIBS) \
4643feee13SJuergen Schmidt))
4743feee13SJuergen Schmidt
4843feee13SJuergen Schmidt$(eval $(call gb_Library_add_exception_objects,gtest, \
4943feee13SJuergen Schmidt	gtest/$(INPATH)/misc/build/gtest-1.7.0/src/gtest-all \
5043feee13SJuergen Schmidt))
51