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

Unified Diff: tools/generate_shim_headers/generate_shim_headers.py

Issue 1964003002: unbundle: add GN files for flac, harfbuzz-ng, and libwebp (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 | « build/linux/unbundle/replace_gn_files.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/generate_shim_headers/generate_shim_headers.py
diff --git a/tools/generate_shim_headers/generate_shim_headers.py b/tools/generate_shim_headers/generate_shim_headers.py
index 81c531b2e6a0d55c5efa436954dfc016aa7b2eb6..1b8e27f76827f781aa5b4e1df450cd21b2c429c2 100755
--- a/tools/generate_shim_headers/generate_shim_headers.py
+++ b/tools/generate_shim_headers/generate_shim_headers.py
@@ -65,7 +65,11 @@ def GeneratorMain(argv):
if options.outputs:
yield os.path.join(target_directory, header_filename)
if options.generate:
- with open(os.path.join(target_directory, header_filename), 'w') as f:
+ header_path = os.path.join(target_directory, header_filename)
+ header_dir = os.path.dirname(header_path)
+ if not os.path.exists(header_dir):
+ os.makedirs(header_dir)
+ with open(header_path, 'w') as f:
f.write(SHIM_TEMPLATE)
if options.define:
« no previous file with comments | « build/linux/unbundle/replace_gn_files.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698