More work on translating GYP build information to Bazel.
Change-Id: If770ebeb54ddc4ca1af2e971734ad243c608cd45
diff --git a/doc/TODO.bazel b/doc/TODO.bazel
index 379792a..e7d3020 100644
--- a/doc/TODO.bazel
+++ b/doc/TODO.bazel
@@ -4,12 +4,9 @@
//y2015:http_status needs to be finished.
-//aos/common:queue_types needs to be finished.
-
Actually write //aos:prime_binaries.
Contents come from aos/build/aos_all.gyp.
//aos/linux_code/starter needs to copy starter.sh.
-//aos/common:{condition,mutex,event} need their actual targets moved to
- //aos/linux_code/ipc_lib where they belong and everything expects them.
+Need to get tcmalloc hooked in.
diff --git a/doc/gyp_to_bazel.py b/doc/gyp_to_bazel.py
index 85f7835..aa30eb9 100755
--- a/doc/gyp_to_bazel.py
+++ b/doc/gyp_to_bazel.py
@@ -184,11 +184,15 @@
self.__tags.append(tag)
def attrs(self):
+ unique_deps = []
+ for dep in self.__deps:
+ if dep not in unique_deps:
+ unique_deps.append(dep)
r = super(CcBuildTarget, self).attrs();
r['srcs'] = self.__srcs
r['hdrs'] = self.__hdrs
r['tags'] = self.__tags
- r['deps'] = self.__deps
+ r['deps'] = unique_deps
return r
'''Represents a filegroup target.'''