OLD | NEW |
1 ## | 1 ## |
2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 ## | 3 ## |
4 ## Use of this source code is governed by a BSD-style license | 4 ## Use of this source code is governed by a BSD-style license |
5 ## that can be found in the LICENSE file in the root of the source | 5 ## that can be found in the LICENSE file in the root of the source |
6 ## tree. An additional intellectual property rights grant can be found | 6 ## tree. An additional intellectual property rights grant can be found |
7 ## in the file PATENTS. All contributing project authors may | 7 ## in the file PATENTS. All contributing project authors may |
8 ## be found in the AUTHORS file in the root of the source tree. | 8 ## be found in the AUTHORS file in the root of the source tree. |
9 ## | 9 ## |
10 | 10 |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 | 435 |
436 PROJECTS-$(CONFIG_MSVS) += test_libvpx.$(VCPROJ_SFX) | 436 PROJECTS-$(CONFIG_MSVS) += test_libvpx.$(VCPROJ_SFX) |
437 | 437 |
438 LIBVPX_TEST_BINS := $(addprefix $(TGT_OS:win64=x64)/Release/,$(notdir $(LIBVPX_T
EST_BINS))) | 438 LIBVPX_TEST_BINS := $(addprefix $(TGT_OS:win64=x64)/Release/,$(notdir $(LIBVPX_T
EST_BINS))) |
439 endif | 439 endif |
440 else | 440 else |
441 | 441 |
442 include $(SRC_PATH_BARE)/third_party/googletest/gtest.mk | 442 include $(SRC_PATH_BARE)/third_party/googletest/gtest.mk |
443 GTEST_SRCS := $(addprefix third_party/googletest/src/,$(call enabled,GTEST_SRCS)
) | 443 GTEST_SRCS := $(addprefix third_party/googletest/src/,$(call enabled,GTEST_SRCS)
) |
444 GTEST_OBJS=$(call objs,$(GTEST_SRCS)) | 444 GTEST_OBJS=$(call objs,$(GTEST_SRCS)) |
| 445 $(GTEST_OBJS) $(GTEST_OBJS:.o=.d): CXXFLAGS += -DGTEST_HAS_PTHREAD=0 |
445 $(GTEST_OBJS) $(GTEST_OBJS:.o=.d): CXXFLAGS += -I$(SRC_PATH_BARE)/third_party/go
ogletest/src | 446 $(GTEST_OBJS) $(GTEST_OBJS:.o=.d): CXXFLAGS += -I$(SRC_PATH_BARE)/third_party/go
ogletest/src |
446 $(GTEST_OBJS) $(GTEST_OBJS:.o=.d): CXXFLAGS += -I$(SRC_PATH_BARE)/third_party/go
ogletest/src/include | 447 $(GTEST_OBJS) $(GTEST_OBJS:.o=.d): CXXFLAGS += -I$(SRC_PATH_BARE)/third_party/go
ogletest/src/include |
447 OBJS-$(BUILD_LIBVPX) += $(GTEST_OBJS) | 448 OBJS-$(BUILD_LIBVPX) += $(GTEST_OBJS) |
448 LIBS-$(BUILD_LIBVPX) += $(BUILD_PFX)libgtest.a $(BUILD_PFX)libgtest_g.a | 449 LIBS-$(BUILD_LIBVPX) += $(BUILD_PFX)libgtest.a $(BUILD_PFX)libgtest_g.a |
449 $(BUILD_PFX)libgtest_g.a: $(GTEST_OBJS) | 450 $(BUILD_PFX)libgtest_g.a: $(GTEST_OBJS) |
450 | 451 |
451 LIBVPX_TEST_OBJS=$(sort $(call objs,$(LIBVPX_TEST_SRCS))) | 452 LIBVPX_TEST_OBJS=$(sort $(call objs,$(LIBVPX_TEST_SRCS))) |
452 $(LIBVPX_TEST_OBJS) $(LIBVPX_TEST_OBJS:.o=.d): CXXFLAGS += -I$(SRC_PATH_BARE)/th
ird_party/googletest/src | 453 $(LIBVPX_TEST_OBJS) $(LIBVPX_TEST_OBJS:.o=.d): CXXFLAGS += -I$(SRC_PATH_BARE)/th
ird_party/googletest/src |
453 $(LIBVPX_TEST_OBJS) $(LIBVPX_TEST_OBJS:.o=.d): CXXFLAGS += -I$(SRC_PATH_BARE)/th
ird_party/googletest/src/include | 454 $(LIBVPX_TEST_OBJS) $(LIBVPX_TEST_OBJS:.o=.d): CXXFLAGS += -I$(SRC_PATH_BARE)/th
ird_party/googletest/src/include |
454 OBJS-$(BUILD_LIBVPX) += $(LIBVPX_TEST_OBJS) | 455 OBJS-$(BUILD_LIBVPX) += $(LIBVPX_TEST_OBJS) |
455 BINS-$(BUILD_LIBVPX) += $(LIBVPX_TEST_BINS) | 456 BINS-$(BUILD_LIBVPX) += $(LIBVPX_TEST_BINS) |
456 | 457 |
457 # Install test sources only if codec source is included | 458 # Install test sources only if codec source is included |
458 INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(patsubst $(SRC_PATH_BARE)/%,%,\ | 459 INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(patsubst $(SRC_PATH_BARE)/%,%,\ |
459 $(shell find $(SRC_PATH_BARE)/third_party/googletest -type f)) | 460 $(shell find $(SRC_PATH_BARE)/third_party/googletest -type f)) |
460 INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(LIBVPX_TEST_SRCS) | 461 INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(LIBVPX_TEST_SRCS) |
461 | 462 |
462 CODEC_LIB=$(if $(CONFIG_DEBUG_LIBS),vpx_g,vpx) | 463 CODEC_LIB=$(if $(CONFIG_DEBUG_LIBS),vpx_g,vpx) |
463 CODEC_LIB_SUF=$(if $(CONFIG_SHARED),.so,.a) | 464 CODEC_LIB_SUF=$(if $(CONFIG_SHARED),.so,.a) |
464 $(foreach bin,$(LIBVPX_TEST_BINS),\ | 465 $(foreach bin,$(LIBVPX_TEST_BINS),\ |
465 $(if $(BUILD_LIBVPX),$(eval $(bin): \ | 466 $(if $(BUILD_LIBVPX),$(eval $(bin): \ |
466 lib$(CODEC_LIB)$(CODEC_LIB_SUF) libgtest.a ))\ | 467 lib$(CODEC_LIB)$(CODEC_LIB_SUF) libgtest.a ))\ |
467 $(if $(BUILD_LIBVPX),$(eval $(call linkerxx_template,$(bin),\ | 468 $(if $(BUILD_LIBVPX),$(eval $(call linkerxx_template,$(bin),\ |
468 $(LIBVPX_TEST_OBJS) \ | 469 $(LIBVPX_TEST_OBJS) \ |
469 -L. -lvpx -lgtest -lpthread -lm)\ | 470 -L. -lvpx -lgtest $(extralibs) -lm)\ |
470 )))\ | 471 )))\ |
471 $(if $(LIPO_LIBS),$(eval $(call lipo_bin_template,$(bin))))\ | 472 $(if $(LIPO_LIBS),$(eval $(call lipo_bin_template,$(bin))))\ |
472 | 473 |
473 endif | 474 endif |
474 | 475 |
475 define test_shard_template | 476 define test_shard_template |
476 test:: test_shard.$(1) | 477 test:: test_shard.$(1) |
477 test_shard.$(1): $(LIBVPX_TEST_BINS) testdata | 478 test_shard.$(1): $(LIBVPX_TEST_BINS) testdata |
478 @set -e; \ | 479 @set -e; \ |
479 for t in $(LIBVPX_TEST_BINS); do \ | 480 for t in $(LIBVPX_TEST_BINS); do \ |
(...skipping 21 matching lines...) Expand all Loading... |
501 @echo "INPUT += $^" >> $@ | 502 @echo "INPUT += $^" >> $@ |
502 @echo "PREDEFINED = VPX_CODEC_DISABLE_COMPAT" >> $@ | 503 @echo "PREDEFINED = VPX_CODEC_DISABLE_COMPAT" >> $@ |
503 @echo "INCLUDE_PATH += ." >> $@; | 504 @echo "INCLUDE_PATH += ." >> $@; |
504 @echo "ENABLED_SECTIONS += $(sort $(CODEC_DOC_SECTIONS))" >> $@ | 505 @echo "ENABLED_SECTIONS += $(sort $(CODEC_DOC_SECTIONS))" >> $@ |
505 | 506 |
506 ## Generate rtcd.h for all objects | 507 ## Generate rtcd.h for all objects |
507 $(OBJS-yes:.o=.d): $(RTCD) | 508 $(OBJS-yes:.o=.d): $(RTCD) |
508 | 509 |
509 ## Update the global src list | 510 ## Update the global src list |
510 SRCS += $(CODEC_SRCS) $(LIBVPX_TEST_SRCS) $(GTEST_SRCS) | 511 SRCS += $(CODEC_SRCS) $(LIBVPX_TEST_SRCS) $(GTEST_SRCS) |
OLD | NEW |