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

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: 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..33c69c47f3423c217137fa850183fbef1a56e053
--- /dev/null
+++ b/third_party/brotli/bro.gypi
@@ -0,0 +1,49 @@
+# 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',
+# 'sources': [
+# 'path/to/file/you/wish/to/compress.anyextension',
+# ],
+# 'variables': {
+# 'output_file': 'path/to/compressed/destination.bro',
+# },
+# 'includes': ['../third_party/brotli/bro.gypi'],
+# 'dependencies': [
+# '../components/components_resources.gyp:about_credits'
+# ],
+# },
+
+{
+ 'variables': {
+ 'bro': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bro<(EXECUTABLE_SUFFIX)',
+ },
+ 'rules': [
+ {
+ 'rule_name': 'genbro',
+ 'extension': '',
+ 'inputs': [
+ '<(bro)',
+ ],
+ 'outputs': [
+ '<(output_file)',
+ ],
+ 'action': [
+ '<(bro)',
+ '--force',
+ '--input',
+ '<(RULE_INPUT_PATH)',
+ '--output',
+ '<(output_file)',
+ ],
+ }
+ ],
+ 'dependencies': [
+ '<(DEPTH)/third_party/brotli/brotli.gyp:bro',
+ ],
+}
+
brucedawson 2016/05/18 21:21:31 Please delete this blank line. "git cl patch" comp
« 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