Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: Makefile.am

Issue 1638653002: test: allow use of system gmock/gtest libs (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Makefile.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ## Process this file with automake to produce Makefile.in 1 ## Process this file with automake to produce Makefile.in
2 2
3 # Copyright (c) 2011, Google Inc. 3 # Copyright (c) 2011, Google Inc.
4 # All rights reserved. 4 # All rights reserved.
5 # 5 #
6 # Redistribution and use in source and binary forms, with or without 6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions are 7 # modification, are permitted provided that the following conditions are
8 # met: 8 # met:
9 # 9 #
10 # * Redistributions of source code must retain the above copyright 10 # * Redistributions of source code must retain the above copyright
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 includec_HEADERS = $(top_srcdir)/src/common/*.h 106 includec_HEADERS = $(top_srcdir)/src/common/*.h
107 107
108 includepdir = $(includedir)/$(PACKAGE)/processor 108 includepdir = $(includedir)/$(PACKAGE)/processor
109 includep_HEADERS = $(top_srcdir)/src/processor/*.h 109 includep_HEADERS = $(top_srcdir)/src/processor/*.h
110 110
111 ## pkgconfig files 111 ## pkgconfig files
112 pkgconfigdir = $(libdir)/pkgconfig 112 pkgconfigdir = $(libdir)/pkgconfig
113 pkgconfig_DATA = 113 pkgconfig_DATA =
114 114
115 ## Common test logic 115 ## Common test logic
116 if SYSTEM_TEST_LIBS
117 TEST_CFLAGS = $(GTEST_CFLAGS) $(GMOCK_CFLAGS)
118 TEST_LIBS = $(GTEST_LIBS) -lgtest_main $(GMOCK_LIBS)
119 else
116 TEST_CFLAGS = \ 120 TEST_CFLAGS = \
117 -I$(top_srcdir)/src/testing/include \ 121 -I$(top_srcdir)/src/testing/include \
118 -I$(top_srcdir)/src/testing/gtest/include \ 122 -I$(top_srcdir)/src/testing/gtest/include \
119 -I$(top_srcdir)/src/testing/gtest \ 123 -I$(top_srcdir)/src/testing/gtest \
120 -I$(top_srcdir)/src/testing 124 -I$(top_srcdir)/src/testing
121 TEST_LIBS = src/testing/libtesting.a 125 TEST_LIBS = src/testing/libtesting.a
126 endif
122 127
123 ## Libraries 128 ## Libraries
124 check_LIBRARIES = 129 check_LIBRARIES =
125 noinst_LIBRARIES = 130 noinst_LIBRARIES =
126 lib_LIBRARIES = 131 lib_LIBRARIES =
127 bin_PROGRAMS = 132 bin_PROGRAMS =
128 check_PROGRAMS = 133 check_PROGRAMS =
129 EXTRA_PROGRAMS = 134 EXTRA_PROGRAMS =
130 CLEANFILES = 135 CLEANFILES =
131 136
132 check_LIBRARIES += src/testing/libtesting.a 137 check_LIBRARIES += src/testing/libtesting.a
133 138
139 if !SYSTEM_TEST_LIBS
134 src_testing_libtesting_a_SOURCES = \ 140 src_testing_libtesting_a_SOURCES = \
135 src/testing/gtest/src/gtest-all.cc \ 141 src/testing/gtest/src/gtest-all.cc \
136 src/testing/gtest/src/gtest_main.cc \ 142 src/testing/gtest/src/gtest_main.cc \
137 src/testing/src/gmock-all.cc 143 src/testing/src/gmock-all.cc
138 src_testing_libtesting_a_CPPFLAGS = \ 144 src_testing_libtesting_a_CPPFLAGS = \
139 $(AM_CPPFLAGS) $(TEST_CFLAGS) 145 $(AM_CPPFLAGS) $(TEST_CFLAGS)
146 endif
140 147
141 if !DISABLE_PROCESSOR 148 if !DISABLE_PROCESSOR
142 lib_LIBRARIES += src/libbreakpad.a 149 lib_LIBRARIES += src/libbreakpad.a
143 pkgconfig_DATA += breakpad.pc 150 pkgconfig_DATA += breakpad.pc
144 noinst_LIBRARIES += src/third_party/libdisasm/libdisasm.a 151 noinst_LIBRARIES += src/third_party/libdisasm/libdisasm.a
145 endif 152 endif
146 153
147 if LINUX_HOST 154 if LINUX_HOST
148 lib_LIBRARIES += src/client/linux/libbreakpad_client.a 155 lib_LIBRARIES += src/client/linux/libbreakpad_client.a
149 pkgconfig_DATA += breakpad-client.pc 156 pkgconfig_DATA += breakpad-client.pc
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 519
513 src_client_linux_linux_client_unittest_SOURCES = 520 src_client_linux_linux_client_unittest_SOURCES =
514 src_client_linux_linux_client_unittest_LDFLAGS = \ 521 src_client_linux_linux_client_unittest_LDFLAGS = \
515 -Wl,-rpath,'$$ORIGIN' 522 -Wl,-rpath,'$$ORIGIN'
516 if ANDROID_HOST 523 if ANDROID_HOST
517 src_client_linux_linux_client_unittest_LDFLAGS += \ 524 src_client_linux_linux_client_unittest_LDFLAGS += \
518 -llog 525 -llog
519 endif 526 endif
520 527
521 src_client_linux_linux_client_unittest_LDADD = \ 528 src_client_linux_linux_client_unittest_LDADD = \
522 » src/client/linux/linux_client_unittest_shlib 529 » src/client/linux/linux_client_unittest_shlib \
530 » $(TEST_LIBS)
523 531
524 src_client_linux_linux_client_unittest_DEPENDENCIES = \ 532 src_client_linux_linux_client_unittest_DEPENDENCIES = \
525 src/client/linux/linux_client_unittest_shlib 533 src/client/linux/linux_client_unittest_shlib
526 534
527 if !DISABLE_TOOLS 535 if !DISABLE_TOOLS
528 src_tools_linux_core2md_core2md_SOURCES = \ 536 src_tools_linux_core2md_core2md_SOURCES = \
529 src/tools/linux/core2md/core2md.cc 537 src/tools/linux/core2md/core2md.cc
530 538
531 src_tools_linux_core2md_core2md_LDADD = \ 539 src_tools_linux_core2md_core2md_LDADD = \
532 src/client/linux/libbreakpad_client.a 540 src/client/linux/libbreakpad_client.a
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 src/tools/windows/converter/ms_symbol_server_converter.h \ 1305 src/tools/windows/converter/ms_symbol_server_converter.h \
1298 src/tools/windows/converter/ms_symbol_server_converter.vcproj \ 1306 src/tools/windows/converter/ms_symbol_server_converter.vcproj \
1299 src/tools/windows/dump_syms/dump_syms.cc \ 1307 src/tools/windows/dump_syms/dump_syms.cc \
1300 src/tools/windows/dump_syms/dump_syms.vcproj \ 1308 src/tools/windows/dump_syms/dump_syms.vcproj \
1301 src/tools/windows/dump_syms/run_regtest.sh \ 1309 src/tools/windows/dump_syms/run_regtest.sh \
1302 src/tools/windows/dump_syms/testdata/dump_syms_regtest.cc \ 1310 src/tools/windows/dump_syms/testdata/dump_syms_regtest.cc \
1303 src/tools/windows/dump_syms/testdata/dump_syms_regtest.pdb \ 1311 src/tools/windows/dump_syms/testdata/dump_syms_regtest.pdb \
1304 src/tools/windows/dump_syms/testdata/dump_syms_regtest.sym \ 1312 src/tools/windows/dump_syms/testdata/dump_syms_regtest.sym \
1305 src/tools/windows/symupload/symupload.cc \ 1313 src/tools/windows/symupload/symupload.cc \
1306 src/tools/windows/symupload/symupload.vcproj 1314 src/tools/windows/symupload/symupload.vcproj
OLDNEW
« no previous file with comments | « no previous file | Makefile.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698