add support for thread-local objects with destructors
Change-Id: I19d809fec90d6d2ac4f5d772e3ab5af30025fb2e
diff --git a/aos/linux_code/linux_code.gyp b/aos/linux_code/linux_code.gyp
index 74b788d..c34b42e 100644
--- a/aos/linux_code/linux_code.gyp
+++ b/aos/linux_code/linux_code.gyp
@@ -1,6 +1,30 @@
{
'targets': [
{
+ 'target_name': 'complex_thread_local',
+ 'type': 'static_library',
+ 'sources': [
+ 'complex_thread_local.cc',
+ ],
+ 'dependencies': [
+ '<(AOS)/common/common.gyp:once',
+ '<(AOS)/common/common.gyp:die',
+ ],
+ },
+ {
+ 'target_name': 'complex_thread_local_test',
+ 'type': 'executable',
+ 'sources': [
+ 'complex_thread_local_test.cc',
+ ],
+ 'dependencies': [
+ 'complex_thread_local',
+ '<(EXTERNALS):gtest',
+ '<(AOS)/common/util/util.gyp:thread',
+ '<(AOS)/build/aos.gyp:logging',
+ ],
+ },
+ {
'target_name': 'init',
'type': 'static_library',
'sources': [