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

Unified Diff: third_party/brotli/bro.gypi

Issue 1992703003: Added gyp build rules for brotli. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed double quotes and tabs Created 4 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 | « third_party/brotli/README.chromium ('k') | third_party/brotli/brotli.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/brotli/bro.gypi
diff --git a/third_party/brotli/bro.gypi b/third_party/brotli/bro.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..5daecda0f2c5331981100ca244d6ca2df3b29c6f
--- /dev/null
+++ b/third_party/brotli/bro.gypi
@@ -0,0 +1,46 @@
+# Copyright (c) 2016 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.
+
+# Usage:
+# {
+# 'target_name': 'your_target_name',
+# 'type': 'none',
+# 'actions': [
+# {
+# 'variables': {
+# 'input_file': 'file/to/compress',
+# 'output_file': 'file/to/put/compressed',
+# },
+# 'includes': ['../third_party/brotli/bro.gypi'],
+# }
+# ],
+# 'dependencies': [
+# 'path/to:builds_file_to_compress'
+# ],
+# },
+
+{
+ 'action_name': 'genbro',
+ 'variables': {
+ 'bro': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bro<(EXECUTABLE_SUFFIX)',
+ },
+ 'inputs': [
+ '<(bro)',
+ '<(input_file)',
+ ],
+ 'outputs': [
+ '<(output_file)',
+ ],
+ 'action': [
+ '<(bro)',
+ '--force',
+ '--input',
+ '<(input_file)',
+ '--output',
+ '<(output_file)',
+ ],
+ 'dependencies': [
+ '<(DEPTH)/third_party/brotli/brotli.gyp:bro',
+ ],
+}
« no previous file with comments | « third_party/brotli/README.chromium ('k') | third_party/brotli/brotli.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698