Catch up 1.3-rel on resource scons reformats
[iotivity.git] / resource / oc_logger / SConscript
index 6ff9ee7..93ba01a 100644 (file)
@@ -31,45 +31,62 @@ liboc_logger_env = lib_env.Clone()
 ######################################################################
 # Build flags
 ######################################################################
-liboc_logger_env.PrependUnique(CPPPATH = ['include'])
+liboc_logger_env.PrependUnique(CPPPATH=['include'])
 
 target_os = env.get('TARGET_OS')
 if target_os == 'android':
-       liboc_logger_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions'])
-       liboc_logger_env.AppendUnique(LIBS = ['gnustl_shared', 'log'])
-       liboc_logger_env.AppendUnique(LINKFLAGS = ['-Wl,-soname,liboc_logger.so'])
+    liboc_logger_env.AppendUnique(CXXFLAGS=['-frtti', '-fexceptions'])
+    liboc_logger_env.AppendUnique(LIBS=['gnustl_shared', 'log'])
+    liboc_logger_env.AppendUnique(LINKFLAGS=['-Wl,-soname,liboc_logger.so'])
 
 if target_os not in ['arduino', 'windows']:
-       liboc_logger_env.AppendUnique(CFLAGS = ['-Wall', '-std=c99', '-fPIC'])
-       liboc_logger_env.AppendUnique(CXXFLAGS = ['-Wall', '-std=c++0x', '-fPIC'])
+    liboc_logger_env.AppendUnique(CFLAGS=['-Wall', '-std=c99', '-fPIC'])
+    liboc_logger_env.AppendUnique(CXXFLAGS=['-Wall', '-std=c++0x', '-fPIC'])
 
 if target_os not in ['darwin', 'ios', 'windows', 'msys_nt']:
-       liboc_logger_env.AppendUnique(LINKFLAGS = ['-Wl,--no-undefined'])
+    liboc_logger_env.AppendUnique(LINKFLAGS=['-Wl,--no-undefined'])
 
 ######################################################################
 # Source files and Targets
 ######################################################################
 
-oc_logger_libs = liboc_logger_env.StaticLibrary('oc_logger_internal',
-       ['c/oc_logger.c', 'c/oc_console_logger.c', 'cpp/oc_ostream_logger.cpp'])
+oc_logger_libs = liboc_logger_env.StaticLibrary('oc_logger_internal', [
+    'c/oc_logger.c',
+    'c/oc_console_logger.c',
+    'cpp/oc_ostream_logger.cpp'
+])
 
 if target_os in ['ios']:
-       oc_logger_libs += liboc_logger_env.StaticLibrary('oc_logger',
-               ['c/oc_logger.c', 'c/oc_console_logger.c', 'cpp/oc_ostream_logger.cpp'])
+    oc_logger_libs += liboc_logger_env.StaticLibrary('oc_logger', [
+        'c/oc_logger.c',
+        'c/oc_console_logger.c',
+        'cpp/oc_ostream_logger.cpp'
+    ])
 elif target_os not in ['windows', 'msys_nt']:
-       oc_logger_libs += Flatten(liboc_logger_env.SharedLibrary('oc_logger_core',
-               ['c/oc_logger.c'],  OBJPREFIX='core_'))
-       oc_logger_libs += Flatten(liboc_logger_env.SharedLibrary('oc_logger',
-               ['c/oc_logger.c', 'c/oc_console_logger.c', 'cpp/oc_ostream_logger.cpp']))
+    oc_logger_libs += Flatten(
+        liboc_logger_env.SharedLibrary(
+            'oc_logger_core', ['c/oc_logger.c'], OBJPREFIX='core_'))
+    oc_logger_libs += Flatten(
+        liboc_logger_env.SharedLibrary('oc_logger', [
+            'c/oc_logger.c',
+            'c/oc_console_logger.c',
+            'cpp/oc_ostream_logger.cpp'
+        ]))
 
 liboc_logger_env.InstallTarget(oc_logger_libs, 'oc_logger')
 liboc_logger_env.UserInstallTargetLib(oc_logger_libs, 'oc_logger')
-liboc_logger_env.UserInstallTargetHeader('include/oc_logger.hpp', 'resource', 'oc_logger.hpp')
-liboc_logger_env.UserInstallTargetHeader('include/oc_logger.h', 'resource', 'oc_logger.h')
-liboc_logger_env.UserInstallTargetHeader('include/oc_logger_types.h', 'resource', 'oc_logger_types.h')
-liboc_logger_env.UserInstallTargetHeader('include/oc_log_stream.hpp', 'resource', 'oc_log_stream.hpp')
-liboc_logger_env.UserInstallTargetHeader('include/targets/oc_console_logger.h', 'resource/targets', 'oc_console_logger.h')
-liboc_logger_env.UserInstallTargetHeader('include/targets/oc_ostream_logger.h', 'resource/targets', 'oc_ostream_logger.h')
+liboc_logger_env.UserInstallTargetHeader(
+    'include/oc_logger.hpp', 'resource', 'oc_logger.hpp')
+liboc_logger_env.UserInstallTargetHeader(
+    'include/oc_logger.h', 'resource', 'oc_logger.h')
+liboc_logger_env.UserInstallTargetHeader(
+    'include/oc_logger_types.h', 'resource', 'oc_logger_types.h')
+liboc_logger_env.UserInstallTargetHeader(
+    'include/oc_log_stream.hpp', 'resource', 'oc_log_stream.hpp')
+liboc_logger_env.UserInstallTargetHeader(
+    'include/targets/oc_console_logger.h', 'resource/targets', 'oc_console_logger.h')
+liboc_logger_env.UserInstallTargetHeader(
+    'include/targets/oc_ostream_logger.h', 'resource/targets', 'oc_ostream_logger.h')
 
 if target_os not in ['ios', 'android']:
-       SConscript('examples/SConscript')
+    SConscript('examples/SConscript')