Provide `publish_libs` target
...which publishes the newly-built supporting libs to my S3 bucket, for future use by a Travis CI build. Progress towards #16
This commit is contained in:
parent
005d7a451f
commit
b8df4b720b
|
@ -43,10 +43,12 @@ CC = g++
|
|||
CPUS:=$(shell nproc)
|
||||
CFLAGS = -I $(SQLITE) -I $(PARQUET_CPP)/src -I $(ARROW)/cpp/src -O3 -std=c++11 -Wall -fPIC -g
|
||||
|
||||
ALL_LIBS = $(PARQUET_CPP_LIB) $(LZ4_LIB) $(ZSTD_LIB) $(THRIFT_LIB) $(SNAPPY_LIB) $(ARROW_LIB) \
|
||||
$(ICU_I18N_LIB) $(ICU_UC_LIB) $(ICU_DATA_LIB) \
|
||||
$(BROTLI_ENC_LIB) $(BROTLI_COMMON_LIB) $(BROTLI_DEC_LIB) $(BOOST_REGEX_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB)
|
||||
|
||||
LDFLAGS = -O3 \
|
||||
-Wl,--whole-archive $(PARQUET_CPP_LIB) $(LZ4_LIB) $(ZSTD_LIB) $(THRIFT_LIB) $(SNAPPY_LIB) $(ARROW_LIB) \
|
||||
$(ICU_I18N_LIB) $(ICU_UC_LIB) $(ICU_DATA_LIB) \
|
||||
$(BROTLI_ENC_LIB) $(BROTLI_COMMON_LIB) $(BROTLI_DEC_LIB) $(BOOST_REGEX_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) \
|
||||
-Wl,--whole-archive $(ALL_LIBS) \
|
||||
-Wl,--no-whole-archive -lz -lcrypto -lssl
|
||||
OBJ = parquet.o parquet_filter.o parquet_table.o parquet_cursor.o
|
||||
LIBS = $(ARROW_LIB) $(PARQUET_CPP_LIB) $(ICU_I18N_LIB)
|
||||
|
@ -95,7 +97,7 @@ $(PARQUET_CPP_LIB): $(ARROW_LIB)
|
|||
$(SQLITE3_LIB):
|
||||
cd $(ROOT) && ./build-sqlite
|
||||
|
||||
.PHONY: clean arrow icu parquet sqlite
|
||||
.PHONY: clean arrow icu parquet publish_libs sqlite
|
||||
|
||||
clean:
|
||||
rm -f *.o *.so
|
||||
|
@ -110,4 +112,9 @@ icu: $(ICU_I18N_LIB)
|
|||
|
||||
parquet: $(PARQUET_CPP_LIB)
|
||||
|
||||
publish_libs:
|
||||
for lib in $(ALL_LIBS); do \
|
||||
s3cmd put $$lib s3://cldellow/public/libparquet/$$(lsb_release -s -r)/; \
|
||||
done
|
||||
|
||||
sqlite: $(SQLITE3_LIB)
|
||||
|
|
Loading…
Reference in New Issue