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

Unified Diff: chrome/chrome_syzygy.gyp

Issue 8698009: Build a Syzygy-reordered mini_installer.exe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Works under fastbuild=1 Created 9 years, 1 month 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: chrome/chrome_syzygy.gyp
diff --git a/chrome/chrome_syzygy.gyp b/chrome/chrome_syzygy.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..3b7d57fc014fb4a4b0b0ba5217eb4e906633b2ba
--- /dev/null
+++ b/chrome/chrome_syzygy.gyp
@@ -0,0 +1,48 @@
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+{
+ 'conditions': [
+ ['OS=="win" & and fastbuild==0', {
Roger McFarlane (Chromium) 2011/11/28 15:09:27 & ?
Sigurður Ásgeirsson 2011/11/28 18:55:36 Yeah :(. Fixed.
+ # Reorder the initial chrome DLL executable, placing the optimized
+ # output and corresponding PDB file into the "syzygy" subdirectory.
+ # If there's a matching chrome.dll-ordering.json file present in
+ # the output directory, chrome.dll will be ordered according to that,
+ # otherwise it will be randomized.
+ # This target won't build in fastbuild, since there are no PDBs.
+ 'targets': [
+ {
+ 'target_name': 'chrome_dll_syzygy',
+ 'type': 'none',
+ 'sources' : [],
+ 'dependencies': [
+ '<(DEPTH)/chrome/chrome.gyp:chrome_dll',
+ ],
+ 'variables': {
+ 'dest_dir': '<(PRODUCT_DIR)\\syzygy',
+ },
+ 'actions': [
+ {
+ 'action_name': 'Reorder Chrome with Syzygy',
+ 'msvs_cygwin_shell': 0,
+ 'inputs': [
+ '<(PRODUCT_DIR)\\chrome.dll',
+ '<(PRODUCT_DIR)\\chrome_dll.pdb',
+ ],
+ 'outputs': [
+ '<(dest_dir)\\chrome.dll',
+ '<(dest_dir)\\chrome_dll.pdb',
+ ],
+ 'action': [
+ 'python',
+ '<(DEPTH)/chrome/tools/build/win/syzygy_reorder.py',
+ '--output_dir', '<(PRODUCT_DIR)',
+ '--destination_dir', '<(dest_dir)',
+ ],
+ },
+ ],
+ },
+ ],
+ }],
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698