| OLD | NEW |
| 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 } | |
| OLD | NEW |