OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2015 The Native Client Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main" | |
6 export LIBS="${NACL_CLI_MAIN_LIB} \ | |
7 -lppapi_simple -lnacl_io -lppapi -l${NACL_CXX_LIB}" | |
binji
2015/08/24 22:28:01
nit: indent continued line by 4 spaces
here and e
deepankar-tyagi
2015/08/25 18:14:44
Done.
| |
8 | |
9 EXTRA_CONFIGURE_ARGS=" --disable-tool-name-check --disable-system-torrc \ | |
10 --disable-gcc-hardening --disable-unittests" | |
11 | |
12 ConfigureStep() { | |
13 | |
binji
2015/08/24 22:28:01
nit: remove extra line
deepankar-tyagi
2015/08/25 18:14:44
Done.
| |
14 # TODO(dt) fix the problem in (explicit) static linking of openssl | |
15 # and libevent when TOOLCHAIN=glibc | |
16 if [ "${NACL_LIBC}" = "newlib" ]; then | |
17 EXTRA_CONFIGURE_ARGS+=" --enable-static-tor \ | |
18 --enable-static-libevent --with-libevent-dir=${NACL_PREFIX} \ | |
19 --enable-static-openssl --with-openssl-dir=${NACL_PREFIX} \ | |
20 --enable-static-zlib --with-zlib-dir=${NACL_PREFIX}" | |
21 NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" | |
22 export LIBS+=" -lglibc-compat" | |
23 fi | |
24 | |
25 # building with NDEBUG not allowed | |
26 NACLPORTS_CFLAGS="${NACLPORTS_CFLAGS/-DNDEBUG/}" | |
27 DefaultConfigureStep | |
28 } | |
29 | |
30 PublishStep() { | |
31 MakeDir ${PUBLISH_DIR} | |
32 local platform_dir="${PUBLISH_DIR}/_platform_specific/${NACL_ARCH}" | |
33 MakeDir ${platform_dir} | |
34 local exe=${PUBLISH_DIR}/_platform_specific/${NACL_ARCH}/tor${NACL_EXEEXT} | |
35 LogExecute cp ${BUILD_DIR}/src/or/tor${NACL_EXEEXT} ${exe} | |
36 # LogExecute "${NACLSTRIP}" "${exe}" | |
binji
2015/08/24 22:28:01
remove
deepankar-tyagi
2015/08/25 18:14:44
Done.
| |
37 cd ${PUBLISH_DIR} | |
38 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ | |
39 _platform_specific/*/tor${NACL_EXEEXT} \ | |
40 -s . \ | |
41 -o tor.nmf | |
42 # LogExecute python ${TOOLS_DIR}/create_term.py tor.nmf | |
binji
2015/08/24 22:28:01
remove
deepankar-tyagi
2015/08/25 18:14:44
Done.
| |
43 InstallNaClTerm ${PUBLISH_DIR} | |
44 GenerateManifest ${START_DIR}/manifest.json ${PUBLISH_DIR} | |
45 LogExecute cp ${START_DIR}/background.js ${PUBLISH_DIR} | |
46 LogExecute cp ${START_DIR}/tor.js ${PUBLISH_DIR} | |
47 LogExecute cp ${START_DIR}/index.html ${PUBLISH_DIR} | |
48 LogExecute cp ${START_DIR}/torrc ${PUBLISH_DIR} | |
49 } | |
OLD | NEW |