diff options
author | Jacob Marble <jacobmarble@google.com> | 2016-01-13 13:49:44 -0800 |
---|---|---|
committer | Jacob Marble <jacobmarble@google.com> | 2016-01-14 05:15:01 +0000 |
commit | e785ec900282ba09ffc7279630e2f935cbb508af (patch) | |
tree | 3879ee0527c562faa5c9a8dd132373ea560ba6ea /third_party | |
parent | f1ac1d45ebc33a6d61bb5e3041d7d403bac56fb6 (diff) | |
download | libweave-e785ec900282ba09ffc7279630e2f935cbb508af.tar.gz |
libweave: Remove gyp build files.
Also, added notes to examples/build.sh and examples/prerequisites.sh
so that folks know where to turn to.
BUG: 26508278
Change-Id: Ibc224916463383cd75089b9ef1c468bc12d150ca
Reviewed-on: https://weave-review.googlesource.com/2189
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/third_party.mk | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/third_party/third_party.mk b/third_party/third_party.mk new file mode 100644 index 0000000..638d8a7 --- /dev/null +++ b/third_party/third_party.mk @@ -0,0 +1,77 @@ +# Copyright 2015 The Weave Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +### +# third_party/chromium/ + +third_party_chromium_base_obj_files := $(THIRD_PARTY_CHROMIUM_BASE_SRC_FILES:%.cc=out/$(BUILD_MODE)/%.o) + +$(third_party_chromium_base_obj_files) : out/$(BUILD_MODE)/%.o : %.cc + mkdir -p $(dir $@) + $(CXX) $(DEFS_$(BUILD_MODE)) $(INCLUDES) $(CFLAGS) $(CFLAGS_$(BUILD_MODE)) $(CFLAGS_CC) -c -o $@ $< + +third_party_chromium_base_unittest_obj_files := $(THIRD_PARTY_CHROMIUM_BASE_UNITTEST_SRC_FILES:%.cc=out/$(BUILD_MODE)/%.o) + +# We don't need libgtest.a, but the headers files in third_party/include. +$(third_party_chromium_base_unittest_obj_files) : out/$(BUILD_MODE)/%.o : %.cc third_party/lib/libgtest.a + mkdir -p $(dir $@) + $(CXX) $(DEFS_$(BUILD_MODE)) $(INCLUDES) $(CFLAGS) $(CFLAGS_$(BUILD_MODE)) $(CFLAGS_CC) -c -o $@ $< + +third_party_chromium_crypto_obj_files := $(THIRD_PARTY_CHROMIUM_CRYPTO_SRC_FILES:%.cc=out/$(BUILD_MODE)/%.o) + +$(third_party_chromium_crypto_obj_files) : out/$(BUILD_MODE)/%.o : %.cc + mkdir -p $(dir $@) + $(CXX) $(DEFS_$(BUILD_MODE)) $(INCLUDES) $(CFLAGS) $(CFLAGS_$(BUILD_MODE)) $(CFLAGS_CC) -c -o $@ $< + +third_party_chromium_crypto_unittest_obj_files := $(THIRD_PARTY_CHROMIUM_CRYPTO_UNITTEST_SRC_FILES:%.cc=out/$(BUILD_MODE)/%.o) + +# We don't need libgtest.a, but the headers files in third_party/include. +$(third_party_chromium_crypto_unittest_obj_files) : out/$(BUILD_MODE)/%.o : %.cc third_party/lib/libgtest.a + mkdir -p $(dir $@) + $(CXX) $(DEFS_$(BUILD_MODE)) $(INCLUDES) $(CFLAGS) $(CFLAGS_$(BUILD_MODE)) $(CFLAGS_CC) -c -o $@ $< + +### +# third_party/modp_b64/ + +third_party_modp_b64_obj_files := $(THIRD_PARTY_MODP_B64_SRC_FILES:%.cc=out/$(BUILD_MODE)/%.o) + +$(third_party_modp_b64_obj_files) : out/$(BUILD_MODE)/%.o : %.cc + mkdir -p $(dir $@) + $(CXX) $(DEFS_$(BUILD_MODE)) $(INCLUDES) $(CFLAGS) $(CFLAGS_$(BUILD_MODE)) $(CFLAGS_CC) -c -o $@ $< + +### +# third_party/libuweave/ + +third_party_libuweave_obj_files := $(THIRD_PARTY_LIBUWEAVE_SRC_FILES:%.c=out/$(BUILD_MODE)/%.o) + +$(third_party_libuweave_obj_files) : out/$(BUILD_MODE)/%.o : %.c + mkdir -p $(dir $@) + $(CC) $(DEFS_$(BUILD_MODE)) $(INCLUDES) $(CFLAGS) $(CFLAGS_$(BUILD_MODE)) $(CFLAGS_C) -c -o $@ $< + +### +# libgtest and libgmock (third_party, downloaded on build) + +third_party/lib/libgtest.a : + @echo Downloading and building libgtest and libgmock... + third_party/get_gtest.sh + @echo Finished downloading and building libgtest and libgmock. + +clean-gtest : + rm -rf third_party/include/gtest third_party/include/gmock + rm -rf third_party/lib/libgmock* third_party/lib/libgtest* + rm -rf third_party/googletest + +### +# libevent (third_party, downloaded on build) + +third_party/lib/libevent.a : + @echo Downloading and building libevent... + DISABLE_LIBEVENT_TEST=1 third_party/get_libevent.sh + @echo Finished downloading and building libevent. + +clean-libevent : + rm -rf third_party/include/ev* third_party/include/event2 + rm -rf third_party/lib/libevent* + rm -rf third_party/libevent + |