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

Unified Diff: ports/libevent/build.sh

Issue 1289343005: Added Tor (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@pepper_44
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ports/libevent/build.sh
diff --git a/ports/libevent/build.sh b/ports/libevent/build.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a320f9bd126afad16d175012bb00bed287f38627
--- /dev/null
+++ b/ports/libevent/build.sh
@@ -0,0 +1,26 @@
+# Copyright 2015 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# following flag are needed only if you want to run samples in devenv
+NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main"
+export LIBS="${NACL_CLI_MAIN_LIB} \
+-lppapi_simple -lnacl_io -lppapi -l${NACL_CXX_LIB}"
+
+
+ConfigureStep() {
+ if [ "${NACL_LIBC}" = "newlib" ]; then
+ NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat"
+ export LIBS+=" -lglibc-compat"
+ # setitimer and getitimer not available in newlib, no plan to implement them
+ #TODO(dt) remove this flag once this issue is sorted.
+ EXTRA_CONFIGURE_ARGS+=" --disable-libevent-regress"
+ fi
+
+ # This flag is not required when NACL_SHARED != 0[default]
+ # however if you come across any problem while static linking,
+ # uncomment following line and try again
+ # EXTRA_CONFIGURE_ARGS+=" --enable-shared=no --enable-static=yes"
+
+ DefaultConfigureStep
+}

Powered by Google App Engine
This is Rietveld 408576698