aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/buildgen
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-01-23 02:27:06 +0100
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-01-23 02:31:46 +0100
commit9d9b805cb1e7ab2b9d052c9b5c41813a0718f85a (patch)
treea036f02714a5312424ccb4ccaa4f840cb2f50690 /tools/buildgen
parentb049ba8fc4792f283db410caf561d05c361d43d2 (diff)
Adressing comments.
Diffstat (limited to 'tools/buildgen')
-rwxr-xr-xtools/buildgen/plugins/generate_vsprojects.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/buildgen/plugins/generate_vsprojects.py b/tools/buildgen/plugins/generate_vsprojects.py
index 021b843868..982e6812e6 100755
--- a/tools/buildgen/plugins/generate_vsprojects.py
+++ b/tools/buildgen/plugins/generate_vsprojects.py
@@ -6,9 +6,6 @@ and "vsproject_dict", to be used by the visual studio generators.
"""
-import re
-
-
def mako_plugin(dictionary):
"""The exported plugin code for generate_vsprojeccts
@@ -27,10 +24,13 @@ def mako_plugin(dictionary):
projects = []
projects.extend(libs)
projects.extend(targets)
- projects = [project for project in projects if project.get('vs_project_guid', None)]
+ # Exclude projects without a visual project guid, such as the tests.
+ projects = [project for project in projects
+ if project.get('vs_project_guid', None)]
- ## Exclude C++ projects for now
- projects = [project for project in projects if not project.language == 'c++']
+ # Exclude C++ projects for now
+ projects = [project for project in projects
+ if not project['language'] == 'c++']
project_dict = dict([(p['name'], p) for p in projects])