Commit 9d30ce3f by Jamie Madill Committed by Shannon Woods

Fix incorrect path usage in generate_projects.

We should use the cross-platform os.path.join() to support platforms other than Windows. BUG=angle:577 Change-Id: I9d96fc1b13731a57ffcd97469632f0acedb8e5c7 Reviewed-on: https://chromium-review.googlesource.com/188879Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org> Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Tested-by: 's avatarShannon Woods <shannonwoods@chromium.org>
parent e49d286e
...@@ -32,7 +32,7 @@ if __name__ == '__main__': ...@@ -32,7 +32,7 @@ if __name__ == '__main__':
gyp_cmd += ' -G msvs_version=' + msvs_version gyp_cmd += ' -G msvs_version=' + msvs_version
gyp_cmd += ' -D angle_build_tests=' + ('1' if build_tests else '0') gyp_cmd += ' -D angle_build_tests=' + ('1' if build_tests else '0')
gyp_cmd += ' -D angle_build_samples=' + ('1' if build_samples else '0') gyp_cmd += ' -D angle_build_samples=' + ('1' if build_samples else '0')
gyp_cmd += ' -D angle_relative_src_path=..\\..\\src\\' gyp_cmd += ' -D angle_relative_src_path=' + os.path.join('..', '..', 'src')
gyp_cmd += ' ' + os.path.join(script_dir, 'all.gyp') gyp_cmd += ' ' + os.path.join(script_dir, 'all.gyp')
print 'Generating projects to ' + generation_dir + ' from gyp files...' print 'Generating projects to ' + generation_dir + ' from gyp files...'
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{ {
'angle_code': 1, 'angle_code': 1,
'angle_post_build_script%': 0, 'angle_post_build_script%': 0,
'angle_relative_src_path%': '', 'angle_relative_src_path%': '.',
'angle_build_scripts_path': '..', 'angle_build_scripts_path': '..',
}, },
'includes': 'includes':
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
'message': 'Generating commit ID header...', 'message': 'Generating commit ID header...',
'inputs': [ 'commit_id.bat' ], 'inputs': [ 'commit_id.bat' ],
'outputs': ['<(SHARED_INTERMEDIATE_DIR)/commit.h'], 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/commit.h'],
'action': ['<(angle_relative_src_path)commit_id.bat', '<(SHARED_INTERMEDIATE_DIR)'], 'action': ['<(angle_relative_src_path)/commit_id.bat', '<(SHARED_INTERMEDIATE_DIR)'],
} }
] #actions ] #actions
}, },
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
'message': 'Copying D3D Compiler DLL...', 'message': 'Copying D3D Compiler DLL...',
'inputs': [ 'copy_compiler_dll.bat' ], 'inputs': [ 'copy_compiler_dll.bat' ],
'outputs': [ '<(PRODUCT_DIR)/D3DCompiler_46.dll' ], 'outputs': [ '<(PRODUCT_DIR)/D3DCompiler_46.dll' ],
'action': ["<(angle_relative_src_path)copy_compiler_dll.bat", "$(PlatformName)", "<(windows_sdk_path)", "<(PRODUCT_DIR)" ], 'action': ["<(angle_relative_src_path)/copy_compiler_dll.bat", "$(PlatformName)", "<(windows_sdk_path)", "<(PRODUCT_DIR)" ],
} }
] #actions ] #actions
}, },
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
'message': 'Generating commit ID header...', 'message': 'Generating commit ID header...',
'inputs': [ 'commit_id.py' ], 'inputs': [ 'commit_id.py' ],
'outputs': ['<(SHARED_INTERMEDIATE_DIR)/commit.h'], 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/commit.h'],
'action': ['python', '<(angle_relative_src_path)commit_id.py', '<(SHARED_INTERMEDIATE_DIR)/commit.h'], 'action': ['python', '<(angle_relative_src_path)/commit_id.py', '<(SHARED_INTERMEDIATE_DIR)/commit.h'],
} }
] #actions ] #actions
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment