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

Unified Diff: third_party/libc++-static/README.chromium

Issue 1415213004: mac: Pull a prebuilt libc++-static.a. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 ('k') | third_party/libc++-static/libc++-static.a.sha1 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libc++-static/README.chromium
diff --git a/third_party/libc++-static/README.chromium b/third_party/libc++-static/README.chromium
new file mode 100644
index 0000000000000000000000000000000000000000..95dcb1d22dfc03b05988b171d25b8c5640d93185
--- /dev/null
+++ b/third_party/libc++-static/README.chromium
@@ -0,0 +1,57 @@
+Short Name: libcxx
+Name: Descriptive name of the package
+Short Name: Name the package is distributed under (ex. libxml, openssl, etc)
+Security Critical: Yes
+License: MIT
+Version: r245965
+
+To upload:
+ python ~/depot_tools/upload_to_google_storage.py -b chromium-libcpp third_party/libc++-static.a
+
+To initialize gsutil's credentials:
+ python ~/depot_tools/third_party/gsutil/gsutil config
+
+ That will give a URL which you should log into with your web browser. The
+ username should be the one that is on the ACL for the "chromium-libcpp"
+ bucket (probably your @google.com address). Contact the build team for help
+ getting access if necessary.
+
+ Copy the code back to the command line util. Ignore the project ID (it's OK
+ to just leave blank when prompted).
+
+gsutil documentation:
+ https://developers.google.com/storage/docs/gsutil
+
+
+To build:
+
+cd /tmp/
Mark Mentovai 2015/10/22 21:54:27 This is basically a script. Can you make it a real
Nico 2015/10/22 22:05:41 Yeah, I really should. Will do.
+mkdir tmp
+cd tmp
+svn co --force https://llvm.org/svn/llvm-project/libcxx/trunk@245965 libcxx
+svn co --force https://llvm.org/svn/llvm-project/libcxxabi/trunk@245965 libcxxabi
+
+mkdir libcxxbuild
+cd libcxxbuild
+mkdir libcxx
+mkdir libcxxabi
+cd libcxx
+
+sed -i '' 's/"default"/"hidden"/g' ../../libcxx/include/__config
+
+c++ -c -nostdinc++ -I../../libcxx/include/ -O3 -std=c++11 -fstrict-aliasing ../../libcxx/src/*.cpp -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.6 -arch i386 -arch x86_64
Mark Mentovai 2015/10/22 21:54:27 Whose c++, Chrome’s or the system’s? Preferably Ch
Nico 2015/10/22 22:05:41 That'd be better, yes. Will change.
+
+cd ../libcxxabi
+sed -i '' 's/"default"/"hidden"/g' ../../libcxxabi/src/*
+sed -i '' 's/push(default)/push(hidden)/g' ../../libcxxabi/src/*
+
+c++ -c -nostdinc++ -I../../libcxx/include/ -I../../libcxxabi/include -O3 -std=c++11 -fstrict-aliasing ../../libcxxabi/src/*.cpp -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.6 -arch i386 -arch x86_64
Mark Mentovai 2015/10/22 21:54:27 Where do these object files go?
Nico 2015/10/22 22:05:41 Note the subtle first * in `libcxx*/*.o` in the li
Mark Mentovai 2015/10/22 22:57:45 Nico wrote:
+
+cd ..
+
+libtool -static -o libc++-static.a libcxx*/*.o
+
+And then:
+cp libc++-static.a path/to/chrome/src/third_party/libc++-static
+cd path/to/chrome/src
+python ~/depot_tools/upload_to_google_storage.py -b chromium-libcpp third_party/libc++-static.a
Mark Mentovai 2015/10/22 21:54:27 depot_tools should be in the PATH for most people,
« no previous file with comments | « DEPS ('k') | third_party/libc++-static/libc++-static.a.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698