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

Unified Diff: deps/third_party/ragel/build.sh

Issue 10383152: Add ragel to third_party. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/third_party/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « deps/third_party/ragel/README.nacl ('k') | deps/third_party/ragel/ragel.linux » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: deps/third_party/ragel/build.sh
===================================================================
--- deps/third_party/ragel/build.sh (revision 0)
+++ deps/third_party/ragel/build.sh (revision 0)
@@ -0,0 +1,38 @@
+#!/bin/bash
+# Copyright (c) 2012 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.
+
+set -x
+set -e
+set -u
+
+declare -r RAGEL_VERSION=6.7
+
+if [[ "$(uname -s)" = "Darwin" ]] ; then
+ PLATFORM=mac
+else
+ case "$(uname -o)" in
+ *cygwin* )
+ PLATFORM=cygwin ;;
+ *Linux* )
+ PLATFORM=linux ;;
+ esac
+fi
+
+cd "$(dirname "$0")"
+rm -rf ragel-${RAGEL_VERSION}
+tar xSvpf ragel-${RAGEL_VERSION}.tar.gz
+(
+ cd ragel-${RAGEL_VERSION}
+ for patch in ../??-ragel-${RAGEL_VERSION}.*.patch ; do
+ patch -p0 < $patch
+ done
+ ./configure
+ make -j16 \
+ CXXFLAGS="-m32 -O3" \
+ CXXLD='gcc -s' \
+ LIBS='-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic'
+ cp -fv ragel/ragel ../ragel.${PLATFORM}
+)
+rm -rf ragel-6.7
Property changes on: deps/third_party/ragel/build.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:eol-style
+ LF
« no previous file with comments | « deps/third_party/ragel/README.nacl ('k') | deps/third_party/ragel/ragel.linux » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698