Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: ports/jsoncpp/build.sh

Issue 1057623004: Update upstream version of jsoncpp and run tests (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build_tools/XCompile-nacl.cmake ('k') | ports/jsoncpp/nacl.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 BUILD_DIR=${SRC_DIR} 5 # The NaCL SDK includes a version of jsoncpp conflicts with this one.
6 # Remove the SDK include path so that these headers don't get used
7 # during the build.
8 NACLPORTS_CPPFLAGS=${NACLPORTS_CPPFLAGS/-I${NACL_SDK_ROOT}\/include/}
6 9
7 BuildStep() { 10 EXECUTABLES=src/test_lib_json/jsoncpp_test
8 export CXXCMD="${NACLCC} -Iinclude -I."
9 LogExecute ${CXXCMD} -c src/lib_json/json_reader.cpp
10 LogExecute ${CXXCMD} -c src/lib_json/json_value.cpp
11 LogExecute ${CXXCMD} -c src/lib_json/json_writer.cpp
12 11
13 LogExecute ${NACLAR} rcs libjsoncpp.a \ 12 EXTRA_CMAKE_ARGS="-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF"
14 json_reader.o \
15 json_value.o \
16 json_writer.o
17 13
18 LogExecute ${NACLRANLIB} libjsoncpp.a 14 TestStep() {
15 if [ "${TOOLCHAIN}" = "pnacl" ]; then
16 return
17 fi
18 LogExecute src/test_lib_json/jsoncpp_test.sh
19 } 19 }
20
21
22 InstallStep() {
23 MakeDir ${DESTDIR_LIB}
24 MakeDir ${DESTDIR_INCLUDE}
25 LogExecute cp libjsoncpp.a ${DESTDIR_LIB}
26 LogExecute cp -R include/json ${DESTDIR_INCLUDE}
27 }
OLDNEW
« no previous file with comments | « build_tools/XCompile-nacl.cmake ('k') | ports/jsoncpp/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698