diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-12-18 18:58:47 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-12-27 20:06:12 +0400 |
commit | 96dffb12177570a1311e97df501142e56b606c02 (patch) | |
tree | 2e96cca47c14114f8dc69f65a93ecf91808763d9 /tools/gyp/pylib/gyp/generator/cmake.py | |
parent | 8c4b2c35a46b417867783393211a4870930fd342 (diff) | |
download | android-node-v8-96dffb12177570a1311e97df501142e56b606c02.tar.gz android-node-v8-96dffb12177570a1311e97df501142e56b606c02.tar.bz2 android-node-v8-96dffb12177570a1311e97df501142e56b606c02.zip |
deps: update gyp to 828ce09
Diffstat (limited to 'tools/gyp/pylib/gyp/generator/cmake.py')
-rw-r--r-- | tools/gyp/pylib/gyp/generator/cmake.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/gyp/pylib/gyp/generator/cmake.py b/tools/gyp/pylib/gyp/generator/cmake.py index 161189995b..10d015ee83 100644 --- a/tools/gyp/pylib/gyp/generator/cmake.py +++ b/tools/gyp/pylib/gyp/generator/cmake.py @@ -118,13 +118,6 @@ def NormjoinPath(base_path, rel_path): return os.path.normpath(os.path.join(base_path, rel_path)) -def EnsureDirectoryExists(path): - """Python version of 'mkdir -p'.""" - dirPath = os.path.dirname(path) - if dirPath and not os.path.exists(dirPath): - os.makedirs(dirPath) - - def CMakeStringEscape(a): """Escapes the string 'a' for use inside a CMake string. @@ -1041,7 +1034,7 @@ def GenerateOutputForConfig(target_list, target_dicts, data, toplevel_build = os.path.join(options.toplevel_dir, build_dir) output_file = os.path.join(toplevel_build, 'CMakeLists.txt') - EnsureDirectoryExists(output_file) + gyp.common.EnsureDirExists(output_file) output = open(output_file, 'w') output.write('cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)\n') |