]>
git.proxmox.com Git - ceph.git/blob - ceph/src/arrow/cpp/examples/minimal_build/run_static.sh
2 # Licensed to the Apache Software Foundation (ASF) under one
3 # or more contributor license agreements. See the NOTICE file
4 # distributed with this work for additional information
5 # regarding copyright ownership. The ASF licenses this file
6 # to you under the Apache License, Version 2.0 (the
7 # "License"); you may not use this file except in compliance
8 # with the License. You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing,
13 # software distributed under the License is distributed on an
14 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 # KIND, either express or implied. See the License for the
16 # specific language governing permissions and limitations
21 : ${ARROW_DIR:=/arrow}
23 : ${ARROW_BUILD_DIR:=/build/arrow}
24 : ${EXAMPLE_BUILD_DIR:=/build/example}
26 : ${ARROW_DEPENDENCY_SOURCE:=BUNDLED}
30 echo "== Building Arrow C++ library"
34 mkdir
-p $ARROW_BUILD_DIR
35 pushd $ARROW_BUILD_DIR
39 cmake
$ARROW_DIR/cpp \
40 -DARROW_BUILD_SHARED=OFF \
41 -DARROW_BUILD_STATIC=ON \
45 -DARROW_DEPENDENCY_SOURCE=${ARROW_DEPENDENCY_SOURCE} \
46 -DARROW_DEPENDENCY_USE_SHARED=OFF \
47 -DARROW_FILESYSTEM=ON \
54 -DARROW_WITH_BROTLI=ON \
57 -DARROW_WITH_SNAPPY=ON \
58 -DARROW_WITH_ZLIB=ON \
59 -DARROW_WITH_ZSTD=ON \
60 -DORC_SOURCE=BUNDLED \
71 echo "== Building example project using Arrow C++ library"
75 rm -rf $EXAMPLE_BUILD_DIR
76 mkdir
-p $EXAMPLE_BUILD_DIR
77 pushd $EXAMPLE_BUILD_DIR
79 cmake
$EXAMPLE_DIR -DARROW_LINK_SHARED=OFF
87 echo "== Running example project"
93 $EXAMPLE_BUILD_DIR/arrow_example
98 echo "== Building example project using Arrow C++ library"
102 rm -rf $EXAMPLE_BUILD_DIR
103 mkdir
-p $EXAMPLE_BUILD_DIR
105 -o $EXAMPLE_BUILD_DIR/arrow_example \
106 $EXAMPLE_DIR/example.cc \
107 $
(PKG_CONFIG_PATH
=$ARROW_BUILD_DIR/lib
/pkgconfig \
108 pkg-config
--cflags --libs --static arrow
)
114 echo "== pkg-config:"
115 echo "== Running example project"
121 $EXAMPLE_BUILD_DIR/arrow_example