diff options
Diffstat (limited to 'build/temp_gyp/googleurl_unittests.target.mk')
-rw-r--r-- | build/temp_gyp/googleurl_unittests.target.mk | 168 |
1 files changed, 168 insertions, 0 deletions
diff --git a/build/temp_gyp/googleurl_unittests.target.mk b/build/temp_gyp/googleurl_unittests.target.mk new file mode 100644 index 0000000..0f023ed --- /dev/null +++ b/build/temp_gyp/googleurl_unittests.target.mk @@ -0,0 +1,168 @@ +# This file is generated by gyp; do not edit. + +TOOLSET := target +TARGET := googleurl_unittests +DEFS_Debug := '-DNO_HEAPCHECKER' \ + '-DCHROMIUM_BUILD' \ + '-DENABLE_REMOTING=1' \ + '-DENABLE_GPU=1' \ + '-DUNIT_TEST' \ + '-DGTEST_HAS_RTTI=0' \ + '-DU_STATIC_IMPLEMENTATION' \ + '-D__STDC_FORMAT_MACROS' \ + '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ + '-D_DEBUG' + +# Flags passed to both C and C++ files. +CFLAGS_Debug := -Werror \ + -pthread \ + -fno-exceptions \ + -Wall \ + -Wno-unused-parameter \ + -Wno-missing-field-initializers \ + -D_FILE_OFFSET_BITS=64 \ + -fvisibility=hidden \ + -fno-strict-aliasing \ + -O0 \ + -g + +# Flags passed to only C (and not C++) files. +CFLAGS_C_Debug := + +# Flags passed to only C++ (and not C) files. +CFLAGS_CC_Debug := -fno-rtti \ + -fno-threadsafe-statics \ + -fvisibility-inlines-hidden + +INCS_Debug := -Ithird_party/icu/public/common \ + -I. \ + -Itesting/gtest/include + +DEFS_Release := '-DNO_HEAPCHECKER' \ + '-DCHROMIUM_BUILD' \ + '-DENABLE_REMOTING=1' \ + '-DENABLE_GPU=1' \ + '-DUNIT_TEST' \ + '-DGTEST_HAS_RTTI=0' \ + '-DU_STATIC_IMPLEMENTATION' \ + '-D__STDC_FORMAT_MACROS' \ + '-DNDEBUG' \ + '-DNVALGRIND' \ + '-DDYNAMIC_ANNOTATIONS_ENABLED=0' + +# Flags passed to both C and C++ files. +CFLAGS_Release := -Werror \ + -pthread \ + -fno-exceptions \ + -Wall \ + -Wno-unused-parameter \ + -Wno-missing-field-initializers \ + -D_FILE_OFFSET_BITS=64 \ + -fvisibility=hidden \ + -fno-strict-aliasing \ + -O2 \ + -fno-ident \ + -fdata-sections \ + -ffunction-sections + +# Flags passed to only C (and not C++) files. +CFLAGS_C_Release := + +# Flags passed to only C++ (and not C) files. +CFLAGS_CC_Release := -fno-rtti \ + -fno-threadsafe-statics \ + -fvisibility-inlines-hidden + +INCS_Release := -Ithird_party/icu/public/common \ + -I. \ + -Itesting/gtest/include + +OBJS := $(obj).target/$(TARGET)/googleurl/src/gurl_unittest.o \ + $(obj).target/$(TARGET)/googleurl/src/url_canon_unittest.o \ + $(obj).target/$(TARGET)/googleurl/src/url_parse_unittest.o \ + $(obj).target/$(TARGET)/googleurl/src/url_util_unittest.o \ + $(obj).target/$(TARGET)/googleurl/src/gurl_test_main.o + +# Add to the list of files we specially track dependencies for. +all_deps += $(OBJS) + +# Make sure our dependencies are built before any of us. +$(OBJS): | $(obj).target/build/temp_gyp/libgoogleurl.a $(obj).target/testing/libgtest.a $(obj).target/third_party/icu/libicuuc.a $(obj).target/base/allocator/liballocator.a $(obj).target/base/libbase.a $(obj).target/third_party/modp_b64/libmodp_b64.a $(obj).target/base/third_party/dynamic_annotations/libdynamic_annotations.a $(obj).target/base/libsymbolize.a $(obj).target/net/third_party/nss/libssl.a $(obj).target/third_party/zlib/libzlib.a $(obj).target/base/libxdg_mime.a $(obj).target/third_party/libevent/libevent.a $(obj).target/third_party/icu/libicudata.a $(obj).target/third_party/icu/libicui18n.a + +# CFLAGS et al overrides must be target-local. +# See "Target-specific Variable Values" in the GNU Make manual. +$(OBJS): TOOLSET := $(TOOLSET) +$(OBJS): GYP_CFLAGS := $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE)) $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) +$(OBJS): GYP_CXXFLAGS := $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE)) $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) + +# Suffix rules, putting all outputs into $(obj). + +$(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD + @$(call do_cmd,cxx,1) + +# Try building from generated source, too. + +$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD + @$(call do_cmd,cxx,1) + +$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD + @$(call do_cmd,cxx,1) + +# End of this set of suffix rules +### Rules for final target. +LDFLAGS_Debug := -pthread \ + -Wl,-z,noexecstack \ + -Wl,-uIsHeapProfilerRunning,-uProfilerStart \ + -Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi \ + -Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapPKvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl \ + -rdynamic + +LDFLAGS_Release := -pthread \ + -Wl,-z,noexecstack \ + -Wl,-uIsHeapProfilerRunning,-uProfilerStart \ + -Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi \ + -Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapPKvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl \ + -Wl,--gc-sections + +LIBS := -lrt \ + -ldl \ + -lgtk-x11-2.0 \ + -lgdk-x11-2.0 \ + -latk-1.0 \ + -lgio-2.0 \ + -lpangoft2-1.0 \ + -lgdk_pixbuf-2.0 \ + -lm \ + -lpangocairo-1.0 \ + -lcairo \ + -lpango-1.0 \ + -lfreetype \ + -lfontconfig \ + -lgobject-2.0 \ + -lgmodule-2.0 \ + -lgthread-2.0 \ + -lglib-2.0 \ + -lnss3 \ + -lnssutil3 \ + -lsmime3 \ + -lplds4 \ + -lplc4 \ + -lnspr4 \ + -lpthread \ + -lz + +$(builddir)/googleurl_unittests: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE)) +$(builddir)/googleurl_unittests: LIBS := $(LIBS) +$(builddir)/googleurl_unittests: TOOLSET := $(TOOLSET) +$(builddir)/googleurl_unittests: $(OBJS) $(obj).target/build/temp_gyp/libgoogleurl.a $(obj).target/testing/libgtest.a $(obj).target/third_party/icu/libicuuc.a $(obj).target/base/allocator/liballocator.a $(obj).target/base/libbase.a $(obj).target/third_party/modp_b64/libmodp_b64.a $(obj).target/base/third_party/dynamic_annotations/libdynamic_annotations.a $(obj).target/base/libsymbolize.a $(obj).target/net/third_party/nss/libssl.a $(obj).target/third_party/zlib/libzlib.a $(obj).target/base/libxdg_mime.a $(obj).target/third_party/libevent/libevent.a $(obj).target/third_party/icu/libicudata.a $(obj).target/third_party/icu/libicui18n.a FORCE_DO_CMD + $(call do_cmd,link) + +all_deps += $(builddir)/googleurl_unittests +# Add target alias +.PHONY: googleurl_unittests +googleurl_unittests: $(builddir)/googleurl_unittests + +# Add executable to "all" target. +.PHONY: all +all: $(builddir)/googleurl_unittests + |